1
0
mirror of https://github.com/mikf/gallery-dl.git synced 2024-11-25 12:12:34 +01:00

[nijie] fix image URLs for single image posts (#5842)

fixes regression introduced in 2e11b6e7
This commit is contained in:
Mike Fährmann 2024-07-10 15:00:03 +02:00
parent eb3ef13d28
commit 16e276fca4
No known key found for this signature in database
GPG Key ID: 5680CA389D365A88

View File

@ -120,7 +120,8 @@ class NijieExtractor(AsynchronousMixin, BaseExtractor):
]
else:
pos = page.find('id="view-center"') + 1
return (text.extr(page, 'itemprop="image" src="', '"', pos),)
# do NOT use text.extr() here, as it doesn't support a pos argument
return (text.extract(page, 'itemprop="image" src="', '"', pos)[0],)
@staticmethod
def _extract_user_name(page):