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 235a2f4f40
commit 3b4b8ab902
21 changed files with 34 additions and 60 deletions

View File

@@ -138,8 +138,7 @@ namespace Jackett.Indexers
release.Link = new Uri(SiteLink + "/" + qRow.Find(".td_dl > a").Attr("href"));
var sizeStr = qRow.Find(".ttr_size").Contents()[0].NodeValue;
var sizeParts = sizeStr.Split(' ');
release.Size = ReleaseInfo.GetBytes(sizeParts[1], ParseUtil.CoerceFloat(sizeParts[0]));
release.Size = ReleaseInfo.GetBytes(sizeStr);
var timeStr = qRow.Find(".ttr_added").Text();
DateTime time;