summaryrefslogtreecommitdiff
path: root/searx/engines/digbt.py
diff options
context:
space:
mode:
Diffstat (limited to 'searx/engines/digbt.py')
-rw-r--r--searx/engines/digbt.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/searx/engines/digbt.py b/searx/engines/digbt.py
index ae78f1a9e..fd3d1fb16 100644
--- a/searx/engines/digbt.py
+++ b/searx/engines/digbt.py
@@ -5,7 +5,7 @@
from urllib.parse import urljoin
from lxml import html
-from searx.utils import extract_text, get_torrent_size
+from searx.utils import extract_text
# about
about = {
@@ -45,7 +45,7 @@ def response(resp):
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])
+ filesize = f"{files_data[FILESIZE]} {files_data[FILESIZE_MULTIPLIER]}"
magnetlink = result.xpath('.//div[@class="tail"]//a[@class="title"]/@href')[0]
results.append(