From b3500b41ddb0054ec5097d8eef0c8c313e548a23 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Mike=20F=C3=A4hrmann?= Date: Mon, 24 Mar 2025 13:25:33 +0100 Subject: [PATCH] [bunkr] fix filename extraction (#7237) --- gallery_dl/extractor/bunkr.py | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/gallery_dl/extractor/bunkr.py b/gallery_dl/extractor/bunkr.py index d74f59cf..481e962b 100644 --- a/gallery_dl/extractor/bunkr.py +++ b/gallery_dl/extractor/bunkr.py @@ -189,8 +189,7 @@ class BunkrAlbumExtractor(LolisafeAlbumExtractor): else: file_url = data["url"] - file_name = (text.extr(page, 'property="og:title" content="', '"') or - text.extr(page, "", " | Bunkr<")) + file_name = text.extr(page, "<h1", "<").rpartition(">")[2] fallback = text.extr(page, 'property="og:url" content="', '"') return {