Fixed: Parsing RSS with null values

pull/4459/head
cicomalieran 3 years ago committed by GitHub
parent 55752a6c62
commit 8175f19442
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

@ -259,9 +259,9 @@ namespace NzbDrone.Core.Indexers
{
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…
Cancel
Save