diff options
Diffstat (limited to 'searx/engines/piped.py')
-rw-r--r-- | searx/engines/piped.py | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/searx/engines/piped.py b/searx/engines/piped.py index 5b60dec5a..0b7199437 100644 --- a/searx/engines/piped.py +++ b/searx/engines/piped.py @@ -53,6 +53,8 @@ from urllib.parse import urlencode import datetime from dateutil import parser +from searx.utils import humanize_number + # about about = { "website": 'https://github.com/TeamPiped/Piped/', @@ -138,6 +140,7 @@ def response(resp): "title": result.get("title", ""), "publishedDate": parser.parse(time.ctime(uploaded / 1000)) if uploaded != -1 else None, "iframe_src": _frontend_url() + '/embed' + result.get("url", ""), + "views": humanize_number(result["views"]), } length = result.get("duration") if length: |