[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

View File

@@ -1,6 +1,6 @@
# -*- coding: utf-8 -*- # -*- 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 # 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 # 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) url = "{}/g4/gallery/{}".format(self.root, self.user)
return self._pagination(url) return self._pagination(url)
else: else:
self._needle = "class='thumb' href='/g4/view/" self._needle = "thumb' href='/g4/view/"
url = "{}/g4/latest.php?name={}".format(self.root, self.user) url = "{}/g4/latest.php?name={}".format(self.root, self.user)
return util.advance(self._pagination(url), self.offset) return util.advance(self._pagination(url), self.offset)