1
0
mirror of https://github.com/Radarr/Radarr.git synced 2026-04-19 21:46:50 -04:00

an updated radarrAPI has been deployed --> this commit makes

trakt authentication ready to be merged to the develop branch
This commit is contained in:
geogolem
2017-03-04 21:45:22 -05:00
parent aa977eb2d5
commit f138d4f677
2 changed files with 8 additions and 18 deletions
@@ -27,7 +27,7 @@ var view = Marionette.ItemView.extend({
onShow : function() {
var params = new URLSearchParams(window.location.search);
var oauth = params.get('oauth');
var oauth = params.get('access');
var refresh=params.get('refresh');
if (oauth && refresh){
history.pushState('object', 'title', callback_url);
@@ -111,8 +111,7 @@ var view = Marionette.ItemView.extend({
_resetTraktTokens : function() {
if (window.confirm("Proceed to trakt.tv for authentication?\nYou will then be redirected back here.")){
window.location='https://api.couchpota.to/authorize/trakt/?target='+callback_url; //this eventually can be removed and replaced with the line below
//window.location='https://radarr.aeonlucid.com/authorize/trakt?target='+callback_url;
window.location='http://radarr.aeonlucid.com/v1/trakt/redirect?target='+callback_url;
//this.ui.resetTokensButton.hide();
}
},