Browse Source

Correcting according to the comments provided

GinoGinocchio 2 years ago
parent
commit
01bbc7d117
1 changed files with 1 additions and 6 deletions
  1. 1 6
      MediaBrowser.Providers/MediaInfo/AudioFileProber.cs

+ 1 - 6
MediaBrowser.Providers/MediaInfo/AudioFileProber.cs

@@ -259,18 +259,13 @@ namespace MediaBrowser.Providers.MediaInfo
                     }
                     }
 
 
                     _libraryManager.UpdatePeople(audio, people);
                     _libraryManager.UpdatePeople(audio, people);
-                    // audio.Artists = performers;
                     audio.Artists = audio.Artists != null ? audio.Artists : performers;
                     audio.Artists = audio.Artists != null ? audio.Artists : performers;
-                    // audio.AlbumArtists = albumArtists;
                     audio.AlbumArtists = audio.AlbumArtists != null ? audio.AlbumArtists : albumArtists;
                     audio.AlbumArtists = audio.AlbumArtists != null ? audio.AlbumArtists : albumArtists;
                 }
                 }
 
 
-                audio.Name = string.IsNullOrEmpty(audio.Name.ToString()) ? tags.Title : audio.Name;
-                // audio.Album = tags.Album;
+                audio.Name = string.IsNullOrEmpty(audio.Name) ? tags.Title : audio.Name;
                 audio.Album = audio.Album != null ? audio.Album : tags.Album;
                 audio.Album = audio.Album != null ? audio.Album : tags.Album;
-                // audio.IndexNumber = Convert.ToInt32(tags.Track);
                 audio.IndexNumber = audio.IndexNumber != null ? audio.IndexNumber : Convert.ToInt32(tags.Track);
                 audio.IndexNumber = audio.IndexNumber != null ? audio.IndexNumber : Convert.ToInt32(tags.Track);
-                // audio.ParentIndexNumber = Convert.ToInt32(tags.Disc);
                 audio.ParentIndexNumber = audio.ParentIndexNumber != null ? audio.ParentIndexNumber : Convert.ToInt32(tags.Disc);
                 audio.ParentIndexNumber = audio.ParentIndexNumber != null ? audio.ParentIndexNumber : Convert.ToInt32(tags.Disc);
 
 
                 if (tags.Year != 0)
                 if (tags.Year != 0)