From 0c663a99dc617869f591e97dd2e4ca6f3bd8b207 Mon Sep 17 00:00:00 2001 From: Luke Pulverenti Date: Thu, 27 Oct 2016 18:55:56 -0400 Subject: [PATCH] update Music/MusicBrainzAlbumProvider.cs --- .../Music/MusicBrainzAlbumProvider.cs | 26 ++++--------------- 1 file changed, 5 insertions(+), 21 deletions(-) diff --git a/MediaBrowser.Providers/Music/MusicBrainzAlbumProvider.cs b/MediaBrowser.Providers/Music/MusicBrainzAlbumProvider.cs index 7a42bd52a..6bda0278c 100644 --- a/MediaBrowser.Providers/Music/MusicBrainzAlbumProvider.cs +++ b/MediaBrowser.Providers/Music/MusicBrainzAlbumProvider.cs @@ -307,8 +307,7 @@ namespace MediaBrowser.Providers.Music { case "release": { - //var releaseId = reader.GetAttribute("id"); - string releaseId = null; + var releaseId = reader.GetAttribute("id"); using (var subReader = reader.ReadSubtree()) { @@ -375,31 +374,16 @@ namespace MediaBrowser.Providers.Music case "release-group": { result.ReleaseGroupId = reader.GetAttribute("id"); - //explicitly consume these to avoid grabbing data from child nodes - //reader.Skip(); using (var subtree = reader.ReadSubtree()) { } break; } - //explicitly consume these to avoid grabbing data from child nodes - //case "text-representation": - //case "artist-credit": - //case "medium-list": - //case "tag-list": - //case "label-info-list": - //case "release-event-list": - // { - // using (var subtree = reader.ReadSubtree()) - // { - // } - // break; - // } default: - { - reader.Skip(); - break; - } + { + reader.Skip(); + break; + } } } else