From 654267a3354c0ce466eb54a4e2b6314ad6a29725 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Mike=20F=C3=A4hrmann?= Date: Thu, 15 Jun 2023 13:49:17 +0200 Subject: [PATCH] [weibo] fix 'json' extension for some videos --- gallery_dl/extractor/weibo.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/gallery_dl/extractor/weibo.py b/gallery_dl/extractor/weibo.py index f41b1c05..805aa536 100644 --- a/gallery_dl/extractor/weibo.py +++ b/gallery_dl/extractor/weibo.py @@ -72,6 +72,8 @@ class WeiboExtractor(Extractor): file["url"] = "https:" + file["url"][5:] if "filename" not in file: text.nameext_from_url(file["url"], file) + if file["extension"] == "json": + file["extension"] = "mp4" file["status"] = status file["num"] = num yield Message.Url, file["url"], file