mirror of
https://github.com/jellyfin/jellyfin.git
synced 2024-06-26 08:58:07 +02:00
#r1208107071 move null check into if-condition
This commit is contained in:
parent
430a53d5cd
commit
ff469399fb
|
@ -258,9 +258,9 @@ public class MusicBrainzAlbumProvider : IRemoteMetadataProvider<MusicAlbum, Albu
|
||||||
|
|
||||||
if (Plugin.Instance != null && Plugin.Instance.Configuration.GetMissingTrackInfo)
|
if (Plugin.Instance != null && Plugin.Instance.Configuration.GetMissingTrackInfo)
|
||||||
{
|
{
|
||||||
if (result.Item.Children.Any(s => s is Audio && s.IndexNumber == null))
|
if (result.Item.Children.Any(s => s is Audio && s.IndexNumber == null) && releaseId != null)
|
||||||
{
|
{
|
||||||
var rspobj = _musicBrainzQuery.LookupRelease(Guid.Parse(releaseId ?? string.Empty), Include.Recordings);
|
var rspobj = _musicBrainzQuery.LookupRelease(Guid.Parse(releaseId), Include.Recordings);
|
||||||
|
|
||||||
IList<ITrack> tracks = new List<ITrack>();
|
IList<ITrack> tracks = new List<ITrack>();
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue