Private GIT

Skip to content
Snippets Groups Projects
Commit d4ebe11e authored by Patrick Vos's avatar Patrick Vos
Browse files

Change to https://github.com when used with urllib2.urlopen

When accessing http://github.com the url gets redirected to https.
Urllib2.urlopen intermittently results in
Errno 104 Connection reset by peer
parent 7a4287df
No related branches found
No related tags found
No related merge requests found
...@@ -244,7 +244,7 @@ for __t in (t for t in globals().values() if hasattr(t, 'parses')): ...@@ -244,7 +244,7 @@ for __t in (t for t in globals().values() if hasattr(t, 'parses')):
class BaseEndpoint(object): class BaseEndpoint(object):
BASE_URL = 'http://github.com/api/v2/xml/' BASE_URL = 'https://github.com/api/v2/xml/'
def __init__(self, user, token, fetcher): def __init__(self, user, token, fetcher):
self.user = user self.user = user
... ...
......
...@@ -431,7 +431,7 @@ class SourceUpdateManager(GitUpdateManager): ...@@ -431,7 +431,7 @@ class SourceUpdateManager(GitUpdateManager):
Downloads the latest source tarball from github and installs it over the existing version. Downloads the latest source tarball from github and installs it over the existing version.
""" """
tar_download_url = 'http://github.com/midgetspy/Sick-Beard/tarball/'+version.SICKBEARD_VERSION tar_download_url = 'https://github.com/midgetspy/Sick-Beard/tarball/'+version.SICKBEARD_VERSION
sb_update_dir = os.path.join(sickbeard.PROG_DIR, 'sb-update') sb_update_dir = os.path.join(sickbeard.PROG_DIR, 'sb-update')
version_path = os.path.join(sickbeard.PROG_DIR, 'version.txt') version_path = os.path.join(sickbeard.PROG_DIR, 'version.txt')
... ...
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please to comment