1
0
mirror of https://github.com/Radarr/Radarr.git synced 2024-09-11 03:52:33 +02:00

Fixed: Parsing RSS with null values (#6220)

This commit is contained in:
Robin Dadswell 2021-04-24 18:43:06 +01:00 committed by GitHub
parent ce6f52552a
commit c66f7abea5
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -261,11 +261,11 @@ protected virtual RssEnclosure[] GetEnclosures(XElement item)
try
{
return new RssEnclosure
{
Url = v.Attribute("url").Value,
Type = v.Attribute("type").Value,
Length = (long)v.Attribute("length")
};
{
Url = v.Attribute("url")?.Value,
Type = v.Attribute("type")?.Value,
Length = v.Attribute("length")?.Value?.ParseInt64() ?? 0
};
}
catch (Exception e)
{