From ee8c4e2e49468b2a45fa3fb1830b42ee6a4f8978 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Mike=20F=C3=A4hrmann?= Date: Thu, 3 Oct 2024 20:22:24 +0200 Subject: [PATCH] [boosty] fix typo causing 'links' to always be empty (#2387) --- gallery_dl/extractor/boosty.py | 2 +- test/results/boosty.py | 9 ++++++++- 2 files changed, 9 insertions(+), 2 deletions(-) diff --git a/gallery_dl/extractor/boosty.py b/gallery_dl/extractor/boosty.py index 2b4ca0f6..a1eea5fe 100644 --- a/gallery_dl/extractor/boosty.py +++ b/gallery_dl/extractor/boosty.py @@ -108,7 +108,7 @@ class BoostyExtractor(Extractor): elif type == "link": url = block["url"] - links.appens(url) + links.append(url) content.append(url) else: diff --git a/test/results/boosty.py b/test/results/boosty.py index b488b679..948b6eba 100644 --- a/test/results/boosty.py +++ b/test/results/boosty.py @@ -61,8 +61,11 @@ __tests__ = ( "comments" : dict, "content" : [ "Привет! Это Милшу ) Я открываю комментарии в своём телеграм канале Милшу ( ", + "https://t.me/milshoonya", " ) и хочу, чтобы вы первые протестировали его работу :3\nСсылку на вступление в чат оставлю здесь ", + "https://t.me/+Z_5ph-XnIQU2YWMy", "\nТакже хотела напомнить, что мы собираем деньги на два арта от Ананаси: ", + "https://boosty.to/milshoo/single-payment/donation/550562/target?share=target_link", "\nБуду очень благодарна за помощь :D  ", ], "contentCounters": list, @@ -85,7 +88,11 @@ __tests__ = ( "isPublished": True, "isRecord" : False, "isWaitingVideo": False, - "links" : [], + "links" : [ + "https://t.me/milshoonya", + "https://t.me/+Z_5ph-XnIQU2YWMy", + "https://boosty.to/milshoo/single-payment/donation/550562/target?share=target_link", + ], "price" : 0, "publishTime": 1711027834, "showViewsCounter": False,