diff --git a/images/icon128cw.png b/images/icon128cw.png new file mode 100644 index 0000000..2d3ec5b Binary files /dev/null and b/images/icon128cw.png differ diff --git a/images/icon128cw.psd b/images/icon128cw.psd new file mode 100644 index 0000000..ad72c1b Binary files /dev/null and b/images/icon128cw.psd differ diff --git a/images/icon16cw.png b/images/icon16cw.png new file mode 100644 index 0000000..2c9c350 Binary files /dev/null and b/images/icon16cw.png differ diff --git a/images/icon19cw.png b/images/icon19cw.png new file mode 100644 index 0000000..02f20d7 Binary files /dev/null and b/images/icon19cw.png differ diff --git a/images/icon48cw.png b/images/icon48cw.png new file mode 100644 index 0000000..b28c49c Binary files /dev/null and b/images/icon48cw.png differ diff --git a/manifest.json b/manifest.json index a87aecf..b4589e6 100644 --- a/manifest.json +++ b/manifest.json @@ -3,16 +3,16 @@ "manifest_version": 2, "version": "0.1.22", "permissions": [ "http://*/*", "https://*/*", "tabs", "notifications" ], - "description": "SickBeard extension for Google Chrome.", + "description": "SickBeard (CW) extension for Google Chrome. (Edited to enable SickRage Compatibility)", "background": { "page": "background.html" }, "options_page": "options.html", "default_locale": "en", "browser_action": { - "default_icon": "images/icon19.png", + "default_icon": "images/icon19cw.png", "default_popup": "popup.html", - "default_title": "Sick Beard Connect" + "default_title": "Sick Beard Connect (CW)" }, "content_scripts": [ { @@ -21,12 +21,12 @@ } ], "icons": { - "128": "images/icon128.png", - "16": "images/icon16.png", - "48": "images/icon48.png" + "128": "images/icon128cw.png", + "16": "images/icon16cw.png", + "48": "images/icon48cw.png" }, "web_accessible_resources": [ - "images/icon48.png", + "images/icon48cw.png", "images/no16.png", "css/sbconnect_content.css", "images/bg.gif", diff --git a/scripts/helpers.js b/scripts/helpers.js index ed95249..fd6fb8a 100644 --- a/scripts/helpers.js +++ b/scripts/helpers.js @@ -58,7 +58,9 @@ function getRefreshRate() { function getUrl(profileName) { var url = getUrlObj(profileName); + //alert(url.full); return url.full; + //return 'http://10.0.0.2:8081/sickrage/' } function getUrlObj(profileName){ @@ -101,6 +103,8 @@ function getHTTPLoginUrl() { } function getApiUrl(profileName) { + //return "http://10.0.0.2:8081/sickrage/api/8c858f2614cfb95ea79a30accc1c67c6"; + if(typeof profileName === "undefined") return getUrl() + "api/" + settings.getItem("sb_api_key"); else{ @@ -131,7 +135,7 @@ function genericRequest(params, succes_callback, error_callback, timeout, timeou } var apiUrl = getApiUrl(profileName); - $.ajax( { type : "POST", url : apiUrl, data : params, dataType : 'json', success : function(data) { + $.ajax( { type : "GET", url : apiUrl, data : params, dataType : 'json', success : function(data) { age.setItem("json_" + params, $.now()); // time of last successful call cache.setItem("json_" + params, data); // json string of last response checkForError(data, params, succes_callback, error_callback); diff --git a/scripts/options.js b/scripts/options.js index 051e523..eef0c2a 100644 --- a/scripts/options.js +++ b/scripts/options.js @@ -284,7 +284,7 @@ function deleteActiveProfile(){ function loadProfile(settings, profileName){ - console.log("loading profile: '"+profileName+"'"); + //console.log("loading profile: '"+profileName+"'"); profile = profiles.getProfile(profileName); settings.manifest.profile_name.element.value = profile.name;