Неверно отображался размер в kinozal и неверно выбирался индекс файла
This commit is contained in:
1 parent
1e0556a525
commit
c45f4bdd3d
3 files changed
+21
-5
No files matched your search
@@ -27,11 +27,9 @@ class SearchEngine(Searcher):
|
||||
title = link.text
|
||||
seeders = int(r.find('.//td[@class="sl_s"]').text.strip())
|
||||
leachers = int(r.find('.//td[@class="sl_p"]').text.strip())
|
||||
size = list(
|
||||
list(filter(lambda x: x.text.strip().endswith((u'ГБ', u'МБ')),
|
||||
size = list(filter(lambda x: x.text.strip().endswith((u'ГБ', u'МБ')),
|
||||
r.findall('.//td[@class="s"]'))
|
||||
)[0].text.strip()
|
||||
)[0].strip()
|
||||
yield ResultItem(url, title, size, seeders, leachers, self.icon, self.cookies, self.base_url)
|
||||
def login(self):
|
||||
user = option['kinozal_login']
|
||||
|
||||
Reference in new issue
Block a user