1
0
mirror of https://github.com/mikf/gallery-dl.git synced 2024-11-22 18:53:21 +01:00

[aryion] update 'needle' to not skip text posts (fixes #1568)

on "Latest Updates" pages

"class='thumb scrollthumb' href='/g4/view/" and
"class='thumb' href='/g4/view/" both end with
"thumb' href='/g4/view/"
This commit is contained in:
Mike Fährmann 2021-05-19 23:35:05 +02:00
parent adf4d661b3
commit 2eb46452ad
No known key found for this signature in database
GPG Key ID: 5680CA389D365A88

View File

@ -1,6 +1,6 @@
# -*- coding: utf-8 -*-
# Copyright 2020 Mike Fährmann
# Copyright 2020-2021 Mike Fährmann
#
# This program is free software; you can redistribute it and/or modify
# it under the terms of the GNU General Public License version 2 as
@ -182,7 +182,7 @@ class AryionGalleryExtractor(AryionExtractor):
url = "{}/g4/gallery/{}".format(self.root, self.user)
return self._pagination(url)
else:
self._needle = "class='thumb' href='/g4/view/"
self._needle = "thumb' href='/g4/view/"
url = "{}/g4/latest.php?name={}".format(self.root, self.user)
return util.advance(self._pagination(url), self.offset)