diff --git a/MediaBrowser.Providers/Music/MusicBrainzAlbumProvider.cs b/MediaBrowser.Providers/Music/MusicBrainzAlbumProvider.cs index 13e341f955..db5a1b18c1 100644 --- a/MediaBrowser.Providers/Music/MusicBrainzAlbumProvider.cs +++ b/MediaBrowser.Providers/Music/MusicBrainzAlbumProvider.cs @@ -262,8 +262,6 @@ namespace MediaBrowser.Providers.Music public static List Parse(XmlReader reader) { - var list = new List(); - reader.MoveToContent(); reader.Read(); @@ -278,9 +276,8 @@ namespace MediaBrowser.Providers.Music { using (var subReader = reader.ReadSubtree()) { - list.AddRange(ParseReleaseList(subReader)); + return ParseReleaseList(subReader); } - break; } default: { @@ -295,7 +292,7 @@ namespace MediaBrowser.Providers.Music } } - return list; + return new List(); } private static List ParseReleaseList(XmlReader reader) @@ -384,9 +381,7 @@ namespace MediaBrowser.Providers.Music case "release-group": { result.ReleaseGroupId = reader.GetAttribute("id"); - using (var subtree = reader.ReadSubtree()) - { - } + reader.Skip(); break; } default: