Your ROOT_URL in app.ini is https://git.cloudchain.link/ but you are visiting https://dash.bss.nz/open-source-mirrors/Radarr/commit/d4a347b2bab54d2ca8b13f8d116914b3a77c1285
You should set ROOT_URL correctly, otherwise the web may not work correctly.
5 changed files with
9 additions and
6 deletions
@ -5,6 +5,7 @@ using System.Net.Http;
using FluentAssertions ;
using Moq ;
using NUnit.Framework ;
using NzbDrone.Common.EnvironmentInfo ;
using NzbDrone.Common.Http ;
using NzbDrone.Core.Indexers ;
using NzbDrone.Core.Indexers.Rarbg ;
@ -3,6 +3,7 @@ using System.Collections.Generic;
using System.Linq ;
using System.Net ;
using NLog ;
using NzbDrone.Common.EnvironmentInfo ;
using NzbDrone.Common.Extensions ;
using NzbDrone.Common.Http ;
using NzbDrone.Core.Configuration ;
@ -47,7 +48,7 @@ namespace NzbDrone.Core.Indexers.Rarbg
try
{
var request = new HttpRequestBuilder ( Settings . BaseUrl . Trim ( '/' ) )
. Resource ( "/pubapi_v2.php?get_token=get_token")
. Resource ( $ "/pubapi_v2.php?get_token=get_token&app_id={BuildInfo.AppName} ")
. Accept ( HttpAccept . Json )
. Build ( ) ;
@ -2,6 +2,7 @@ using System;
using System.Collections.Generic ;
using System.Net ;
using System.Text.RegularExpressions ;
using NzbDrone.Common.EnvironmentInfo ;
using NzbDrone.Common.Http ;
using NzbDrone.Core.Indexers.Exceptions ;
using NzbDrone.Core.Parser.Model ;
@ -66,7 +67,7 @@ namespace NzbDrone.Core.Indexers.Rarbg
torrentInfo . Title = torrent . title ;
torrentInfo . Size = torrent . size ;
torrentInfo . DownloadUrl = torrent . download ;
torrentInfo . InfoUrl = torrent . info_page + "&app_id=Radarr ";
torrentInfo . InfoUrl = $"{torrent.info_page}&app_id={BuildInfo.AppName} ";
torrentInfo . PublishDate = torrent . pubdate . ToUniversalTime ( ) ;
torrentInfo . Seeders = torrent . seeders ;
torrentInfo . Peers = torrent . leechers + torrent . seeders ;
@ -71,7 +71,7 @@ namespace NzbDrone.Core.Indexers.Rarbg
requestBuilder . AddQueryParam ( "limit" , "100" ) ;
requestBuilder . AddQueryParam ( "token" , _tokenProvider . GetToken ( Settings ) ) ;
requestBuilder . AddQueryParam ( "format" , "json_extended" ) ;
requestBuilder . AddQueryParam ( "app_id" , "Radarr" ) ;
requestBuilder . AddQueryParam ( "app_id" , BuildInfo . AppName ) ;
yield return new IndexerRequest ( requestBuilder . Build ( ) ) ;
}
@ -2,6 +2,7 @@ using System;
using Newtonsoft.Json.Linq ;
using NLog ;
using NzbDrone.Common.Cache ;
using NzbDrone.Common.EnvironmentInfo ;
using NzbDrone.Common.Extensions ;
using NzbDrone.Common.Http ;
@ -32,7 +33,7 @@ namespace NzbDrone.Core.Indexers.Rarbg
{
var requestBuilder = new HttpRequestBuilder ( settings . BaseUrl . Trim ( '/' ) )
. WithRateLimit ( 3.0 )
. Resource ( "/pubapi_v2.php?get_token=get_token&app_id=Radarr ")
. Resource ( $"/pubapi_v2.php?get_token=get_token&app_id={BuildInfo.AppName} ")
. Accept ( HttpAccept . Json ) ;
if ( settings . CaptchaToken . IsNotNullOrWhiteSpace ( ) )
@ -44,8 +45,7 @@ namespace NzbDrone.Core.Indexers.Rarbg
var response = _httpClient . Get < JObject > ( requestBuilder . Build ( ) ) ;
return response . Resource [ "token" ] . ToString ( ) ;
} ,
TimeSpan . FromMinutes ( 14.0 ) ) ;
} , TimeSpan . FromMinutes ( 14.0 ) ) ;
}
}
}