mirror of
https://github.com/Radarr/Radarr.git
synced 2024-10-05 15:47:20 +02:00
Fixed: Don't die if Plex watchlist guid node is missing or null
Fixes #7213
This commit is contained in:
parent
36119facf0
commit
c2328e4b79
@ -35,6 +35,11 @@
|
|||||||
"title": "Avengers: Endgame",
|
"title": "Avengers: Endgame",
|
||||||
"year": 2019,
|
"year": 2019,
|
||||||
"Guid": []
|
"Guid": []
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"type": "movie",
|
||||||
|
"title": "Avengers",
|
||||||
|
"year": 2005
|
||||||
}
|
}
|
||||||
]
|
]
|
||||||
}
|
}
|
||||||
|
@ -73,7 +73,7 @@ private string FindGuid(List<PlexSectionItemGuid> guids, string prefix)
|
|||||||
{
|
{
|
||||||
var scheme = $"{prefix}://";
|
var scheme = $"{prefix}://";
|
||||||
|
|
||||||
return guids.FirstOrDefault((guid) => guid.Id.StartsWith(scheme))?.Id.Replace(scheme, "");
|
return guids?.FirstOrDefault((guid) => guid.Id.StartsWith(scheme))?.Id.Replace(scheme, "");
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user