mirror of
https://github.com/Readarr/Readarr.git
synced 2026-04-21 22:04:31 -04:00
Fixed: Size parsing of empty description from torrent RSS feeds
This commit is contained in:
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user