From fb98b567fa64b735b20c4056cc0f376402781213 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Mike=20F=C3=A4hrmann?= Date: Wed, 22 Apr 2020 21:28:18 +0200 Subject: [PATCH] [gelbooru] improve post ID extraction for pools --- gallery_dl/extractor/booru.py | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/gallery_dl/extractor/booru.py b/gallery_dl/extractor/booru.py index 162e9cca..be0027a4 100644 --- a/gallery_dl/extractor/booru.py +++ b/gallery_dl/extractor/booru.py @@ -1,6 +1,6 @@ # -*- coding: utf-8 -*- -# Copyright 2015-2019 Mike Fährmann +# Copyright 2015-2020 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 @@ -171,7 +171,8 @@ class GelbooruPoolMixin(PoolMixin): name, pos = text.extract(page, "

Pool: ", "

") if not name: raise exception.NotFoundError("pool") - self.posts = list(text.extract_iter(page, 'id="p', '"', pos)) + self.posts = list(text.extract_iter( + page, 'class="thumb" id="p', '"', pos)) return { "pool": text.parse_int(self.pool),