mirror of
https://github.com/Radarr/Radarr.git
synced 2024-11-09 04:22:30 +01:00
Fixed: Parsing RSS with null values (#6220)
This commit is contained in:
parent
ce6f52552a
commit
c66f7abea5
@ -262,9 +262,9 @@ protected virtual RssEnclosure[] GetEnclosures(XElement item)
|
|||||||
{
|
{
|
||||||
return new RssEnclosure
|
return new RssEnclosure
|
||||||
{
|
{
|
||||||
Url = v.Attribute("url").Value,
|
Url = v.Attribute("url")?.Value,
|
||||||
Type = v.Attribute("type").Value,
|
Type = v.Attribute("type")?.Value,
|
||||||
Length = (long)v.Attribute("length")
|
Length = v.Attribute("length")?.Value?.ParseInt64() ?? 0
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
catch (Exception e)
|
catch (Exception e)
|
||||||
|
Loading…
Reference in New Issue
Block a user