From d8ff110d8b7b7daf4f05a60a354dd0b981918ab8 Mon Sep 17 00:00:00 2001 From: JigSawFr Date: Sun, 3 Apr 2016 18:46:46 +0200 Subject: [PATCH] DownloadBase & DownloadUrl FIX for PHX --- src/Jackett/Indexers/PhxBit.cs | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/src/Jackett/Indexers/PhxBit.cs b/src/Jackett/Indexers/PhxBit.cs index 008adf2bb..a29e6dfc2 100644 --- a/src/Jackett/Indexers/PhxBit.cs +++ b/src/Jackett/Indexers/PhxBit.cs @@ -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