mirror of
https://github.com/Radarr/Radarr
synced 2026-01-02 21:52:49 +01:00
Fixed: Parsing RSS with null values (#6220)
This commit is contained in:
parent
ce6f52552a
commit
c66f7abea5
1 changed files with 5 additions and 5 deletions
|
|
@ -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)
|
||||
{
|
||||
|
|
|
|||
Loading…
Reference in a new issue