From 0a9aaa7a8df703865ae6452840c9c2bd856cbb83 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Mike=20F=C3=A4hrmann?= Date: Thu, 8 Jun 2023 22:22:43 +0200 Subject: [PATCH] [weibo] prevent fatal exception due to missing video (#4150) --- gallery_dl/extractor/weibo.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/gallery_dl/extractor/weibo.py b/gallery_dl/extractor/weibo.py index 2cbfad6e..f41b1c05 100644 --- a/gallery_dl/extractor/weibo.py +++ b/gallery_dl/extractor/weibo.py @@ -123,7 +123,7 @@ class WeiboExtractor(Extractor): key=lambda m: m["meta"]["quality_index"]) except Exception: return {"url": (info.get("stream_url_hd") or - info["stream_url"])} + info.get("stream_url") or "")} else: return media["play_info"].copy()