Fixed: Parsing RSS with null values

This commit is contained in:
cicomalieran 2021-04-22 19:38:26 -04:00 committed by GitHub
parent 55752a6c62
commit 8175f19442
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 3 additions and 3 deletions

View File

@ -259,9 +259,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)