Your ROOT_URL in app.ini is https://git.cloudchain.link/ but you are visiting https://dash.bss.nz/open-source-mirrors/Readarr/commit/6ea1a56b505e9760f679075a19eabb80b17447b5
You should set ROOT_URL correctly, otherwise the web may not work correctly.
2 changed files with
14 additions and
5 deletions
@ -50,7 +50,7 @@ namespace NzbDrone.Core.ImportLists.Goodreads
{
try
{
GetUser ( ) ;
GetUser ( Settings . UserId ) ;
return null ;
}
catch ( Common . Http . HttpException ex )
@ -106,7 +106,7 @@ namespace NzbDrone.Core.ImportLists.Goodreads
Settings . AccessToken = qscoll [ "oauth_token" ] ;
Settings . AccessTokenSecret = qscoll [ "oauth_token_secret" ] ;
var user = GetUser ( ) ;
var user = GetUser ( Settings . UserId ) ;
return new
{
@ -165,9 +165,18 @@ namespace NzbDrone.Core.ImportLists.Goodreads
return HttpUtility . ParseQueryString ( response . Content ) ;
}
private Tuple < string , string > GetUser ( )
private Tuple < string , string > GetUser ( string id )
{
var builder = RequestBuilder ( ) . SetSegment ( "route" , $"api/auth_user" ) ;
var builder = RequestBuilder ( ) ;
if ( id = = null )
{
builder . SetSegment ( "route" , "api/auth_user" ) ;
}
else
{
builder . SetSegment ( "route" , $"user/show/{id}.xml" ) ;
}
var httpResponse = OAuthGet ( builder ) ;
@ -38,7 +38,7 @@ namespace NzbDrone.Core.ImportLists.Goodreads
[FieldDefinition(0, Label = "Request Token Secret", Type = FieldType.Textbox, Hidden = HiddenType.Hidden)]
public string RequestTokenSecret { get ; set ; }
[FieldDefinition(0, Label = "User Id", Type = FieldType.Textbox, Hidden = HiddenType.Hidden )]
[FieldDefinition(0, Label = "User Id", HelpText = "User Id to import from. Leave blank to use the authenticated Goodreads user.", Type = FieldType.Textbox, Advanced = true )]
public string UserId { get ; set ; }
[FieldDefinition(0, Label = "User Name", Type = FieldType.Textbox, Hidden = HiddenType.Hidden)]