From 896df261518835291774b1d89df6253d6aa994fb Mon Sep 17 00:00:00 2001 From: Garfield69 Date: Thu, 21 Mar 2019 12:26:07 +1300 Subject: [PATCH] rarbg: fix details link not working apparently ALL requests to the API server need to include the app_id --- src/Jackett.Common/Indexers/Rarbg.cs | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/Jackett.Common/Indexers/Rarbg.cs b/src/Jackett.Common/Indexers/Rarbg.cs index 72c3ac8a5..295104ec8 100644 --- a/src/Jackett.Common/Indexers/Rarbg.cs +++ b/src/Jackett.Common/Indexers/Rarbg.cs @@ -18,7 +18,7 @@ namespace Jackett.Common.Indexers { public class Rarbg : BaseWebIndexer { - // API doc: https://torrentapi.org/apidocs_v2.txt + // API doc: https://torrentapi.org/apidocs_v2.txt?app_id=Jackett private static readonly string defaultSiteLink = "https://torrentapi.org/"; private Uri BaseUri @@ -232,8 +232,8 @@ namespace Jackett.Common.Indexers release.MagnetUri = new Uri(item.Value("download")); release.InfoHash = release.MagnetUri.ToString().Split(':')[3].Split('&')[0]; - - release.Comments = new Uri(item.Value("info_page")); + // append app_id to prevent api server returning 403 forbidden + release.Comments = new Uri(item.Value("info_page") + "&app_id=" + app_id); if (provideTorrentLink) release.Link = release.Comments; // in case of a torrent download we grab the link from the details page in Download() release.Guid = release.MagnetUri;