1
0
mirror of https://github.com/mikf/gallery-dl.git synced 2025-01-31 11:41:35 +01:00

[imgth] fix image URLs

This commit is contained in:
Mike Fährmann 2019-09-19 14:56:48 +02:00
parent b63b126808
commit ee5e20221f
No known key found for this signature in database
GPG Key ID: 5680CA389D365A88

View File

@ -44,7 +44,7 @@ class ImgthGalleryExtractor(Extractor):
while True:
thumbs = text.extract(page, '<ul class="thumbnails">', '</ul>')[0]
for url in text.extract_iter(thumbs, '<img src="', '"'):
yield "https://imgth.com/images/" + url[24:]
yield "https://imgth.com/images" + url[24:]
if '<li class="next">' not in page:
return
pnum += 1