Fixed: Size parsing of empty description from torrent RSS feeds

This commit is contained in:
Qstick
2017-10-29 17:07:55 -04:00
parent c222b7acf1
commit be6f89cd76
5 changed files with 70 additions and 3 deletions
+5
View File
@@ -344,6 +344,11 @@ namespace NzbDrone.Core.Indexers
public static long ParseSize(string sizeString, bool defaultToBinaryPrefix)
{
if (sizeString.IsNullOrWhiteSpace())
{
return 0;
}
if (sizeString.All(char.IsDigit))
{
return long.Parse(sizeString);