Use secure connections when available.

This commit is contained in:
Ruud
2012-10-22 22:22:52 +02:00
parent a432ad4f5a
commit b71f003ad8
10 changed files with 16 additions and 17 deletions
@@ -2,7 +2,6 @@ from couchpotato.core.helpers.rss import RSS
from couchpotato.core.helpers.variable import md5, tryInt from couchpotato.core.helpers.variable import md5, tryInt
from couchpotato.core.logger import CPLog from couchpotato.core.logger import CPLog
from couchpotato.core.providers.automation.base import Automation from couchpotato.core.providers.automation.base import Automation
from couchpotato.environment import Env
import xml.etree.ElementTree as XMLTree import xml.etree.ElementTree as XMLTree
log = CPLog(__name__) log = CPLog(__name__)
@@ -10,7 +10,7 @@ config = [{
'tab': 'searcher', 'tab': 'searcher',
'subtab': 'nzb_providers', 'subtab': 'nzb_providers',
'name': 'Mysterbin', 'name': 'Mysterbin',
'description': 'Free provider, less accurate. See <a href="http://www.mysterbin.com/">Mysterbin</a>', 'description': 'Free provider, less accurate. See <a href="https://www.mysterbin.com/">Mysterbin</a>',
'options': [ 'options': [
{ {
'name': 'enabled', 'name': 'enabled',
@@ -11,7 +11,7 @@ config = [{
'subtab': 'nzb_providers', 'subtab': 'nzb_providers',
'name': 'newznab', 'name': 'newznab',
'order': 10, 'order': 10,
'description': 'Enable multiple NewzNab providers such as <a href="http://nzb.su" target="_blank">NZB.su</a> and <a href="http://nzbs.org" target="_blank">nzbs.org</a>', 'description': 'Enable multiple NewzNab providers such as <a href="https://nzb.su" target="_blank">NZB.su</a> and <a href="https://nzbs.org" target="_blank">nzbs.org</a>',
'wizard': True, 'wizard': True,
'options': [ 'options': [
{ {
@@ -10,7 +10,7 @@ config = [{
'tab': 'searcher', 'tab': 'searcher',
'subtab': 'nzb_providers', 'subtab': 'nzb_providers',
'name': 'nzbindex', 'name': 'nzbindex',
'description': 'Free provider, less accurate. See <a href="http://www.nzbindex.nl/">NZBIndex</a>', 'description': 'Free provider, less accurate. See <a href="https://www.nzbindex.com/">NZBIndex</a>',
'options': [ 'options': [
{ {
'name': 'enabled', 'name': 'enabled',
@@ -19,8 +19,8 @@ log = CPLog(__name__)
class NzbIndex(NZBProvider, RSS): class NzbIndex(NZBProvider, RSS):
urls = { urls = {
'download': 'http://www.nzbindex.nl/download/', 'download': 'https://www.nzbindex.com/download/',
'api': 'http://www.nzbindex.nl/rss/', 'api': 'https://www.nzbindex.com/rss/',
} }
http_time_between_calls = 1 # Seconds http_time_between_calls = 1 # Seconds
@@ -10,7 +10,7 @@ config = [{
'tab': 'searcher', 'tab': 'searcher',
'subtab': 'torrent_providers', 'subtab': 'torrent_providers',
'name': 'PassThePopcorn', 'name': 'PassThePopcorn',
'description': 'See <a href="http://passthepopcorn.me">PassThePopcorn.me</a>', 'description': 'See <a href="https://passthepopcorn.me">PassThePopcorn.me</a>',
'options': [ 'options': [
{ {
'name': 'enabled', 'name': 'enabled',
@@ -10,7 +10,7 @@ config = [{
'tab': 'searcher', 'tab': 'searcher',
'subtab': 'torrent_providers', 'subtab': 'torrent_providers',
'name': 'PublicHD', 'name': 'PublicHD',
'description': 'Public Torrent site with only HD content. See <a href="http://publichd.eu/">PublicHD</a>', 'description': 'Public Torrent site with only HD content. See <a href="https://publichd.eu/">PublicHD</a>',
'options': [ 'options': [
{ {
'name': 'enabled', 'name': 'enabled',
@@ -14,9 +14,9 @@ log = CPLog(__name__)
class PublicHD(TorrentProvider): class PublicHD(TorrentProvider):
urls = { urls = {
'test': 'http://publichd.eu', 'test': 'https://publichd.eu',
'detail': 'http://publichd.eu/index.php?page=torrent-details&id=%s', 'detail': 'https://publichd.eu/index.php?page=torrent-details&id=%s',
'search': 'http://publichd.eu/index.php', 'search': 'https://publichd.eu/index.php',
} }
http_time_between_calls = 0 http_time_between_calls = 0
@@ -10,7 +10,7 @@ config = [{
'tab': 'searcher', 'tab': 'searcher',
'subtab': 'torrent_providers', 'subtab': 'torrent_providers',
'name': 'SceneHD', 'name': 'SceneHD',
'description': 'See <a href="http://scenehd.org">SceneHD</a>', 'description': 'See <a href="https://scenehd.org">SceneHD</a>',
'options': [ 'options': [
{ {
'name': 'enabled', 'name': 'enabled',
@@ -12,11 +12,11 @@ log = CPLog(__name__)
class SceneHD(TorrentProvider): class SceneHD(TorrentProvider):
urls = { urls = {
'test': 'http://scenehd.org/', 'test': 'https://scenehd.org/',
'login' : 'http://scenehd.org/takelogin.php', 'login' : 'https://scenehd.org/takelogin.php',
'detail': 'http://scenehd.org/details.php?id=%s', 'detail': 'https://scenehd.org/details.php?id=%s',
'search': 'http://scenehd.org/browse.php?ajax', 'search': 'https://scenehd.org/browse.php?ajax',
'download': 'http://scenehd.org/download.php?id=%s', 'download': 'https://scenehd.org/download.php?id=%s',
} }
http_time_between_calls = 1 #seconds http_time_between_calls = 1 #seconds