Fixed: Parsing RSS with null values (#6220)

pull/6225/head
Robin Dadswell 4 years ago committed by GitHub
parent ce6f52552a
commit c66f7abea5
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

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