Replaced most indexers' byte size string parsing with shared helper function

This commit is contained in:
unknown
2015-07-25 21:53:53 -06:00
parent abdca8cee8
commit 01dc9cb0a5
21 changed files with 34 additions and 60 deletions

View File

@@ -185,8 +185,8 @@ namespace Jackett.Indexers
release.MinimumRatio = 1;
var size = qRow.Find(".size").First().Text().Split(' ');
release.Size = ReleaseInfo.GetBytes(size[1], ParseUtil.CoerceFloat(size[0]));
var size = qRow.Find(".size").First().Text();
release.Size = ReleaseInfo.GetBytes(size);
//22 Jul 15
var dateStr = qRow.Find(".added . datetime").First().Text().Replace("'", string.Empty);