🎧 Your Personal Streaming Service
Go airsonicmadsonicmedia-servermusicmusic-servernavidromeopensubsonicraspberry-piself-hostedstreamerstreaming-apistreaming-audiosubsonicsubsonic-server
Silly bug... Where are the tests?!?
Deluan56e9ad3def36
diff --git a/scanner/itunes_scanner.go b/scanner/itunes_scanner.goindex 2da9c87af..6f2de7bbc 100644--- a/scanner/itunes_scanner.go+++ b/scanner/itunes_scanner.go@@ -43,8 +43,6 @@ func (s *ItunesScanner) ScanLibrary(lastModifiedSince time.Time, path string) (iar := s.collectArtists(&t)mf := s.collectMediaFiles(&t)s.collectAlbums(&t, mf, ar)- } else {- beego.Trace("Skipped", t.Location, " - kind:", t.Kind)}i++if i%1000 == 0 {@@ -94,13 +92,13 @@ func (s *ItunesScanner) collectMediaFiles(t *itl.Track) *domain.MediaFile {mf.Path = pathmf.Suffix = strings.TrimPrefix(filepath.Ext(path), ".")+ mf.CreatedAt = t.DateAdded+ mf.UpdatedAt = t.DateModified+if mf.UpdatedAt.After(s.lastModifiedSince) {mf.HasCoverArt = hasCoverArt(path)}- mf.CreatedAt = t.DateAdded- mf.UpdatedAt = t.DateModified-s.mediaFiles[mf.Id] = mfreturn mf