[everia] unquote URLs (#7620)

* [everia.club] unescape URLs

* add test
This commit is contained in:
missionfloyd
2025-06-04 01:38:06 -06:00
committed by GitHub
parent 6df80fe595
commit 72e1a4a0cb
2 changed files with 21 additions and 1 deletions

View File

@@ -59,7 +59,7 @@ class EveriaPostExtractor(EveriaExtractor):
"title": text.unescape(
text.extr(page, 'itemprop="headline">', "</h")),
"tags": list(text.extract_iter(page, 'rel="tag">', "</a>")),
"post_url": url,
"post_url": text.unquote(url),
"post_category": text.extr(
page, "post-in-category-", " ").capitalize(),
"count": len(urls),
@@ -67,6 +67,7 @@ class EveriaPostExtractor(EveriaExtractor):
yield Message.Directory, data
for data["num"], url in enumerate(urls, 1):
url = text.unquote(url)
yield Message.Url, url, text.nameext_from_url(url, data)