diff --git a/resources/language/English/strings.xml b/resources/language/English/strings.xml index 8212a20..a67f297 100644 --- a/resources/language/English/strings.xml +++ b/resources/language/English/strings.xml @@ -23,7 +23,6 @@ Browse for torrent file Search ThePirateBay.org Search Mininova.org - Search Torrentreactor.net Searching... No results found Could not connect to search site diff --git a/resources/language/Russian/strings.xml b/resources/language/Russian/strings.xml index 3b97bfd..ff61b08 100644 --- a/resources/language/Russian/strings.xml +++ b/resources/language/Russian/strings.xml @@ -23,7 +23,6 @@ Выбрать торрент-файл Искать на ThePirateBay.org Искать на Mininova.org - Искать на Torrentreactor.net Поиск... Ничего не найдено Не удалось соединиться с поисковым сайтом diff --git a/resources/language/Spanish/strings.xml b/resources/language/Spanish/strings.xml index e2d520d..5e53110 100644 --- a/resources/language/Spanish/strings.xml +++ b/resources/language/Spanish/strings.xml @@ -23,7 +23,6 @@ Buscar un archivo torrent Buscar en ThePirateBay.org Buscar en Mininova.org - Buscar en Torrentreactor.net Buscando... No se han encontrado resultados No se puede conectar con el buscador diff --git a/resources/lib/gui.py b/resources/lib/gui.py index 1431c5d..3eece35 100644 --- a/resources/lib/gui.py +++ b/resources/lib/gui.py @@ -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: diff --git a/resources/lib/search.py b/resources/lib/search.py index 6ab67e2..bc3a400 100644 --- a/resources/lib/search.py +++ b/resources/lib/search.py @@ -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()