1
0
mirror of https://github.com/vikstrous/pirate-get synced 2025-01-10 10:04:21 +01:00

Merge pull request #37 from gdmsl/issue-36

Fixed issue #36 wrong url for proxy list
This commit is contained in:
Viktor Stanchev 2014-11-12 09:15:28 -08:00
commit 85d2fdf3a7

View File

@ -264,7 +264,7 @@ def main():
mirrors = ["http://thepiratebay.se"] mirrors = ["http://thepiratebay.se"]
try: try:
opener = urllib2.build_opener(NoRedirection) opener = urllib2.build_opener(NoRedirection)
f = opener.open("http://proxybay.info/list.txt") f = opener.open("https://proxybay.info/list.txt")
if f.getcode() != 200: if f.getcode() != 200:
raise Exception("The pirate bay responded with an error.") raise Exception("The pirate bay responded with an error.")
res = f.read() res = f.read()