Merge pull request #294 from JigSawFr/providers/phxbit-fix

Download FIX for PhxBit
This commit is contained in:
JigSaw 2016-04-03 18:57:23 +02:00
commit d14717c88e
1 changed files with 4 additions and 4 deletions

View File

@ -26,7 +26,7 @@ namespace Jackett.Indexers
private string SearchUrl { get { return SiteLink + "sphinx.php"; } }
private string TorrentCommentUrl { get { return TorrentDescriptionUrl; } }
private string TorrentDescriptionUrl { get { return SiteLink + "torrent.php?id="; } }
private string TorrentDownloadUrl { get { return SiteLink + "get.php?action=torrent&id={id}&passkey={passkey}"; } }
private string TorrentDownloadUrl { get { return SiteLink + "get.php?action=private&id={id}&passkey={passkey}"; } }
private bool Latency { get { return ConfigData.Latency.Value; } }
private bool DevMode { get { return ConfigData.DevMode.Value; } }
private bool CacheMode { get { return ConfigData.HardDriveCache.Value; } }
@ -51,7 +51,7 @@ namespace Jackett.Indexers
client: w,
logger: l,
p: ps,
downloadBase: "https://phxbit.com/torrents.php?action=download&id=",
downloadBase: "https://phxbit.com/get.php?action=private",
configData: new ConfigurationDataPhxBit())
{
// Clean capabilities
@ -332,8 +332,8 @@ namespace Jackett.Indexers
long size = ReleaseInfo.GetBytes(sizeStr);
output("Size: " + sizeStr + " (" + size + " bytes)");
// Health
int percent = ParseUtil.CoerceInt(Regex.Match(tRow.Find("td:eq(8) > img").Attr("alt").ToString(), @"\d+").Value);
// Health
int percent = ParseUtil.CoerceInt(Regex.Match(tRow.Find("td:eq(8) > img").Attr("alt").ToString(), @"\d+").Value);
output("Health: " + percent + "%");
// Publish DateToString