mirror of
https://github.com/lidarr/Lidarr
synced 2025-02-24 23:02:44 +00:00
Fixed: Parsing RSS with null values
Fixes #2187 Fixes #1730 (cherry picked from commit 8175f19442273e13517b2d507e7a4c33587f1b15)
This commit is contained in:
parent
0b60ca68fc
commit
6842c561ea
1 changed files with 3 additions and 3 deletions
|
@ -266,9 +266,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 a new issue