[nijie] fix file extraction (#7624)

ignore empty URLs / URLs with no 'src="'
This commit is contained in:
Mike Fährmann
2025-06-03 19:38:25 +02:00
parent 75b6c8f3d8
commit 3c6c40d4ed
3 changed files with 19 additions and 20 deletions

View File

@@ -117,6 +117,7 @@ class NijieExtractor(AsynchronousMixin, BaseExtractor):
text.extr(media, ' src="', '"')
for media in text.extract_iter(
page, 'href="javascript:void(0);"><', '>')
if ' src="' in media
]
else:
pos = page.find('id="view-center"') + 1