From c01ce35f0494843499b86cebde944748de8c172a Mon Sep 17 00:00:00 2001 From: Deluan Date: Sun, 13 Mar 2016 22:11:44 -0400 Subject: [PATCH] ignoring iTunesU and Podcasts (for now) --- scanner/itunes_scanner.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/scanner/itunes_scanner.go b/scanner/itunes_scanner.go index 685fa2c7..16ffdc51 100644 --- a/scanner/itunes_scanner.go +++ b/scanner/itunes_scanner.go @@ -103,7 +103,7 @@ func (s *ItunesScanner) Playlists() map[string]*domain.Playlist { } func (s *ItunesScanner) skipTrack(t *itl.Track) bool { - if !strings.HasPrefix(t.Location, "file://") { + if !strings.HasPrefix(t.Location, "file://") || t.Podcast { return true } @@ -115,7 +115,7 @@ func (s *ItunesScanner) skipTrack(t *itl.Track) bool { func (s *ItunesScanner) skipPlaylist(p *itl.Playlist, ignFolders bool, ignPatterns []string, fullPath string) bool { // Skip all "special" iTunes playlists, and also ignored patterns - if p.Master || p.Music || p.Audiobooks || p.Movies || p.TVShows || p.Podcasts || (ignFolders && p.Folder) { + if p.Master || p.Music || p.Audiobooks || p.Movies || p.TVShows || p.Podcasts || p.ITunesU || (ignFolders && p.Folder) { return true }