From b1863aa2d94b40f67ca06e095863f59a379a33d4 Mon Sep 17 00:00:00 2001 From: Bamboo-King Date: Sun, 26 Jan 2025 01:30:13 +0000 Subject: [PATCH] make search string readable --- rsshub/spiders/asmr/works.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/rsshub/spiders/asmr/works.py b/rsshub/spiders/asmr/works.py index cf9f3b9..99034c5 100644 --- a/rsshub/spiders/asmr/works.py +++ b/rsshub/spiders/asmr/works.py @@ -2,6 +2,7 @@ import requests import pytz from jinja2 import Template from datetime import datetime +from urllib.parse import unquote domain = 'https://api.asmr-200.com/api/search' @@ -36,10 +37,9 @@ def ctx(search='', order='create_date', subtitle=0, sort='desc'): res = requests.get(top_url).json() return { - 'title': f'ASMR - {search}', + 'title': f'ASMR - {unquote(search)}', 'link': top_url, - 'description': f'ASMR - {search}', - 'description': 'ASMR - 200 Search Subscription', + 'description': 'ASMR Search Subscription', 'author': 'Bamboo_King', 'items': list(map(parse, res['works'])) }