summaryrefslogtreecommitdiffstats
path: root/gallery_dl/extractor/cyberdrop.py
diff options
context:
space:
mode:
Diffstat (limited to 'gallery_dl/extractor/cyberdrop.py')
-rw-r--r--gallery_dl/extractor/cyberdrop.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/gallery_dl/extractor/cyberdrop.py b/gallery_dl/extractor/cyberdrop.py
index a057b84..e354cb7 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