mirror of
https://github.com/searxng/searxng.git
synced 2025-07-23 05:09:17 +02:00
[fix] results with digbit don't truncate anymore
This commit is contained in:
parent
8f48c518aa
commit
d1d4ed4376
2 changed files with 4 additions and 2 deletions
|
@ -40,7 +40,7 @@ def response(resp):
|
|||
results = list()
|
||||
for result in search_res:
|
||||
url = urljoin(URL, result.xpath('.//a[@title]/@href')[0])
|
||||
title = result.xpath('.//a[@title]/text()')[0]
|
||||
title = extract_text(result.xpath('.//a[@title]'))
|
||||
content = extract_text(result.xpath('.//div[@class="files"]'))
|
||||
files_data = extract_text(result.xpath('.//div[@class="tail"]')).split()
|
||||
filesize = get_torrent_size(files_data[FILESIZE], files_data[FILESIZE_MULTIPLIER])
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue