From e39c4633ba1db32c07993929a502e927bb233971 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Mike=20F=C3=A4hrmann?= Date: Thu, 3 Jun 2021 02:53:55 +0200 Subject: [PATCH] [cyberdrop] b64decode -> a2b_base64 --- gallery_dl/extractor/cyberdrop.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/gallery_dl/extractor/cyberdrop.py b/gallery_dl/extractor/cyberdrop.py index a057b84a..e354cb7a 100644 --- a/gallery_dl/extractor/cyberdrop.py +++ b/gallery_dl/extractor/cyberdrop.py @@ -8,7 +8,7 @@ from .common import Extractor, Message from .. import text -import base64 +import binascii class CyberdropAlbumExtractor(Extractor): @@ -52,7 +52,7 @@ class CyberdropAlbumExtractor(Extractor): yield Message.Directory, data for file_b64 in files: - file = base64.b64decode(file_b64.encode()).decode() + file = binascii.a2b_base64(file_b64).decode() text.nameext_from_url(file, data) data["filename"], _, data["id"] = data["filename"].rpartition("-") yield Message.Url, "https://f.cyberdrop.cc/" + file, data