From 86ecd20b19a068554e7217858bab7dac0a4ae96c Mon Sep 17 00:00:00 2001 From: Luke Pulverenti Date: Thu, 3 Nov 2016 22:33:47 -0400 Subject: [PATCH] update Music/MusicBrainzAlbumProvider.cs --- .../Music/MusicBrainzAlbumProvider.cs | 11 +++-------- 1 file changed, 3 insertions(+), 8 deletions(-) diff --git a/MediaBrowser.Providers/Music/MusicBrainzAlbumProvider.cs b/MediaBrowser.Providers/Music/MusicBrainzAlbumProvider.cs index 13e341f95..db5a1b18c 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: