mirror of
https://github.com/vikstrous/pirate-get
synced 2025-01-10 10:04:21 +01:00
new tpd tld, blacklist thebay.tv
This commit is contained in:
parent
9e227aecfa
commit
398614704d
@ -165,7 +165,7 @@ def main():
|
|||||||
sizes, uploaded = [], []
|
sizes, uploaded = [], []
|
||||||
|
|
||||||
else:
|
else:
|
||||||
mags, mirrors = [], {'https://thepiratebay.se'}
|
mags, mirrors = [], {'https://thepiratebay.mn'}
|
||||||
try:
|
try:
|
||||||
req = request.Request('https://proxybay.co/list.txt',
|
req = request.Request('https://proxybay.co/list.txt',
|
||||||
headers=pirate.data.default_headers)
|
headers=pirate.data.default_headers)
|
||||||
@ -177,6 +177,8 @@ def main():
|
|||||||
raise IOError('The proxy bay responded with an error.')
|
raise IOError('The proxy bay responded with an error.')
|
||||||
mirrors = mirrors.union([i.decode('utf-8').strip()
|
mirrors = mirrors.union([i.decode('utf-8').strip()
|
||||||
for i in f.readlines()][3:])
|
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:
|
for mirror in mirrors:
|
||||||
try:
|
try:
|
||||||
|
Loading…
Reference in New Issue
Block a user