1
0
mirror of https://github.com/vikstrous/pirate-get synced 2025-01-09 09:59:51 +01:00

new tpd tld, blacklist thebay.tv

This commit is contained in:
Viktor Stanchev 2015-08-29 21:53:50 -07:00
parent 9e227aecfa
commit 398614704d

View File

@ -165,7 +165,7 @@ def main():
sizes, uploaded = [], []
else:
mags, mirrors = [], {'https://thepiratebay.se'}
mags, mirrors = [], {'https://thepiratebay.mn'}
try:
req = request.Request('https://proxybay.co/list.txt',
headers=pirate.data.default_headers)
@ -177,6 +177,8 @@ def main():
raise IOError('The proxy bay responded with an error.')
mirrors = mirrors.union([i.decode('utf-8').strip()
for i in f.readlines()][3:])
# This mirror messes up links in the search results page - you need to load a second page to get the magnet link
mirrors.discard('https://thebay.tv')
for mirror in mirrors:
try: