Permalink
Browse files

remove remote debugger fix ssl

  • Loading branch information...
1 parent b8e40c9 commit 75837996da2c3ba6fa9f34ed09784867b4df23be @pietervanh pietervanh committed Jan 3, 2012
Showing with 1 addition and 17 deletions.
  1. +0 −1 README.md
  2. +0 −14 default.py
  3. +1 −2 xbmcsc/client.py
View
@@ -11,7 +11,6 @@ It also supports basic login (no facebook authentication) for viewing your favor
Third-party Libraries
---------------------
The XBMC SoundCloud plugin makes use of the following third-party Python libraries:
- * parseDOM
* httplib2
* simplejson
View
@@ -28,20 +28,6 @@
from xbmcsc.client import SoundCloudClient
-REMOTE_DBG = False
-# append pydev remote debugger
-if REMOTE_DBG:
- # Make pydev debugger works for auto reload.
- # Note pydevd module need to be copied in XBMC\system\python\Lib\pysrc
- try:
- import pysrc.pydevd as pydevd
- # stdoutToServer and stderrToServer redirect stdout and stderr to eclipse console
- pydevd.settrace('localhost', stdoutToServer=True, stderrToServer=True)
- except ImportError:
- sys.stderr.write("Error: " +
- "You must add org.python.pydev.debug.pysrc to your PYTHONPATH.")
- sys.exit(1)
-
# plugin related constants
PLUGIN_URL = u'plugin://music/SoundCloud/'
PLUGIN_ID = u'plugin.audio.soundcloud'
View
@@ -122,7 +122,6 @@ def getlogintoken(self,url):
USERNAME_KEY: self.username,
PASSWORD_KEY: self.password}
urldata = urllib.urlencode(urlparams)
-
h = httplib2.Http(disable_ssl_certificate_validation=True)
response, content = h.request(url, 'POST', urldata,
headers={'Content-type': 'application/x-www-form-urlencoded'})
@@ -281,7 +280,7 @@ def _build_users_query_url(self, user_permalink, resource_type, parameters, base
return url
def _http_get_json(self, url):
- h = httplib2.Http()
+ h = httplib2.Http(disable_ssl_certificate_validation=True)
resp, content = h.request(url, 'GET')
if resp.status == 401:
raise RuntimeError('Authentication error')

0 comments on commit 7583799

Please sign in to comment.