Remove TorrentReactor search

Torrentreactor no longer provides direct torrent download links in their
RSS feeds.
This commit is contained in:
Correl Roush 2014-06-03 23:10:48 -04:00
parent 0bfbd7c6b5
commit 3f5d1e7ef8
5 changed files with 0 additions and 21 deletions

View file

@ -23,7 +23,6 @@
<string id="200">Browse for torrent file</string>
<string id="202">Search ThePirateBay.org</string>
<string id="203">Search Mininova.org</string>
<string id="204">Search Torrentreactor.net</string>
<string id="290">Searching...</string>
<string id="291">No results found</string>
<string id="292">Could not connect to search site</string>

View file

@ -23,7 +23,6 @@
<string id="200">Выбрать торрент-файл</string>
<string id="202">Искать на ThePirateBay.org</string>
<string id="203">Искать на Mininova.org</string>
<string id="204">Искать на Torrentreactor.net</string>
<string id="290">Поиск...</string>
<string id="291">Ничего не найдено</string>
<string id="292">Не удалось соединиться с поисковым сайтом</string>

View file

@ -23,7 +23,6 @@
<string id="200">Buscar un archivo torrent</string>
<string id="202">Buscar en ThePirateBay.org</string>
<string id="203">Buscar en Mininova.org</string>
<string id="204">Buscar en Torrentreactor.net</string>
<string id="290">Buscando...</string>
<string id="291">No se han encontrado resultados</string>
<string id="292">No se puede conectar con el buscador</string>

View file

@ -115,7 +115,6 @@ class TransmissionGUI(xbmcgui.WindowXMLDialog):
(_(200), None),
(_(202), search.TPB),
(_(203), search.Mininova),
(_(204), search.TorrentReactor),
]
selected = xbmcgui.Dialog().select(_(0), [i[0] for i in engines])
if selected < 0:

View file

@ -50,23 +50,6 @@ class TPB(Search):
'leechers': leechers,
})
return torrents
class TorrentReactor(Search):
def __init__(self):
self.search_uri = 'http://www.torrentreactor.net/rss.php?search=%s'
def search(self, terms):
torrents = []
url = self.search_uri % '+'.join(terms.split(' '))
f = urlopen(url)
soup = BeautifulStoneSoup(f.read())
for item in soup.findAll('item'):
(seeds, leechers) = re.findall('Status: (\d+) seeders, (\d+) leecher', item.description.text)[0]
torrents.append({
'url': item.enclosure['url'],
'name': item.title.text,
'seeds': int(seeds),
'leechers': int(leechers),
})
return torrents
if __name__ == '__main__':
s = TPB()