mirror of
https://github.com/correl/Transmission-XBMC.git
synced 2024-11-22 03:00:15 +00:00
Remove TorrentReactor search
Torrentreactor no longer provides direct torrent download links in their RSS feeds.
This commit is contained in:
parent
0bfbd7c6b5
commit
3f5d1e7ef8
5 changed files with 0 additions and 21 deletions
|
@ -23,7 +23,6 @@
|
||||||
<string id="200">Browse for torrent file</string>
|
<string id="200">Browse for torrent file</string>
|
||||||
<string id="202">Search ThePirateBay.org</string>
|
<string id="202">Search ThePirateBay.org</string>
|
||||||
<string id="203">Search Mininova.org</string>
|
<string id="203">Search Mininova.org</string>
|
||||||
<string id="204">Search Torrentreactor.net</string>
|
|
||||||
<string id="290">Searching...</string>
|
<string id="290">Searching...</string>
|
||||||
<string id="291">No results found</string>
|
<string id="291">No results found</string>
|
||||||
<string id="292">Could not connect to search site</string>
|
<string id="292">Could not connect to search site</string>
|
||||||
|
|
|
@ -23,7 +23,6 @@
|
||||||
<string id="200">Выбрать торрент-файл</string>
|
<string id="200">Выбрать торрент-файл</string>
|
||||||
<string id="202">Искать на ThePirateBay.org</string>
|
<string id="202">Искать на ThePirateBay.org</string>
|
||||||
<string id="203">Искать на Mininova.org</string>
|
<string id="203">Искать на Mininova.org</string>
|
||||||
<string id="204">Искать на Torrentreactor.net</string>
|
|
||||||
<string id="290">Поиск...</string>
|
<string id="290">Поиск...</string>
|
||||||
<string id="291">Ничего не найдено</string>
|
<string id="291">Ничего не найдено</string>
|
||||||
<string id="292">Не удалось соединиться с поисковым сайтом</string>
|
<string id="292">Не удалось соединиться с поисковым сайтом</string>
|
||||||
|
|
|
@ -23,7 +23,6 @@
|
||||||
<string id="200">Buscar un archivo torrent</string>
|
<string id="200">Buscar un archivo torrent</string>
|
||||||
<string id="202">Buscar en ThePirateBay.org</string>
|
<string id="202">Buscar en ThePirateBay.org</string>
|
||||||
<string id="203">Buscar en Mininova.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="290">Buscando...</string>
|
||||||
<string id="291">No se han encontrado resultados</string>
|
<string id="291">No se han encontrado resultados</string>
|
||||||
<string id="292">No se puede conectar con el buscador</string>
|
<string id="292">No se puede conectar con el buscador</string>
|
||||||
|
|
|
@ -115,7 +115,6 @@ class TransmissionGUI(xbmcgui.WindowXMLDialog):
|
||||||
(_(200), None),
|
(_(200), None),
|
||||||
(_(202), search.TPB),
|
(_(202), search.TPB),
|
||||||
(_(203), search.Mininova),
|
(_(203), search.Mininova),
|
||||||
(_(204), search.TorrentReactor),
|
|
||||||
]
|
]
|
||||||
selected = xbmcgui.Dialog().select(_(0), [i[0] for i in engines])
|
selected = xbmcgui.Dialog().select(_(0), [i[0] for i in engines])
|
||||||
if selected < 0:
|
if selected < 0:
|
||||||
|
|
|
@ -50,23 +50,6 @@ class TPB(Search):
|
||||||
'leechers': leechers,
|
'leechers': leechers,
|
||||||
})
|
})
|
||||||
return torrents
|
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__':
|
if __name__ == '__main__':
|
||||||
s = TPB()
|
s = TPB()
|
||||||
|
|
Loading…
Reference in a new issue