[rhythmbox] [ipod] skip non-audio non-podcast tracks
- From: Christophe Fergeau <teuf src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [rhythmbox] [ipod] skip non-audio non-podcast tracks
- Date: Sat, 2 Oct 2010 11:47:14 +0000 (UTC)
commit 3c2d462c356102fe211120a77392b94cf5544ff3
Author: Christophe Fergeau <teuf gnome org>
Date: Tue Mar 23 17:23:06 2010 +0100
[ipod] skip non-audio non-podcast tracks
iPods can contains videos, movies, ... We don't want all of these to show
up in rhythmbox, so hide them.
plugins/ipod/rb-ipod-source.c | 6 ++++++
1 files changed, 6 insertions(+), 0 deletions(-)
---
diff --git a/plugins/ipod/rb-ipod-source.c b/plugins/ipod/rb-ipod-source.c
index e060b0e..8e94c7f 100644
--- a/plugins/ipod/rb-ipod-source.c
+++ b/plugins/ipod/rb-ipod-source.c
@@ -640,6 +640,12 @@ add_ipod_song_to_db (RBiPodSource *source, RhythmDB *db, Itdb_Track *song)
return;
}
+ if ((song->mediatype != ITDB_MEDIATYPE_AUDIO)
+ && (song->mediatype != ITDB_MEDIATYPE_PODCAST)) {
+ rb_debug ("iPod track is neither an audio track nor a podcast, skipping");
+ return;
+ }
+
rb_debug ("Adding %s from iPod", pc_path);
g_free (pc_path);
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]