From d4ebe11e7774fcf0d7a7054886fbfc2e55e725cf Mon Sep 17 00:00:00 2001
From: Patrick Vos <itofzo@gmail.com>
Date: Thu, 15 Mar 2012 11:46:59 +0100
Subject: [PATCH] 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
---
 lib/pygithub/github.py      | 2 +-
 sickbeard/versionChecker.py | 2 +-
 2 files changed, 2 insertions(+), 2 deletions(-)

diff --git a/lib/pygithub/github.py b/lib/pygithub/github.py
index bd9f40776..c0bfad778 100644
--- a/lib/pygithub/github.py
+++ b/lib/pygithub/github.py
@@ -244,7 +244,7 @@ for __t in (t for t in globals().values() if hasattr(t, 'parses')):
 
 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):
         self.user = user
diff --git a/sickbeard/versionChecker.py b/sickbeard/versionChecker.py
index 763552988..f4f040f80 100644
--- a/sickbeard/versionChecker.py
+++ b/sickbeard/versionChecker.py
@@ -431,7 +431,7 @@ class SourceUpdateManager(GitUpdateManager):
         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')
         version_path = os.path.join(sickbeard.PROG_DIR, 'version.txt')
 
-- 
GitLab