From 398614704d40a83c01f668d3fdbc503d7fcb167d Mon Sep 17 00:00:00 2001 From: Viktor Stanchev Date: Sat, 29 Aug 2015 21:53:50 -0700 Subject: [PATCH] new tpd tld, blacklist thebay.tv --- pirate/pirate.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/pirate/pirate.py b/pirate/pirate.py index 26d4211..77413f8 100755 --- a/pirate/pirate.py +++ b/pirate/pirate.py @@ -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: