From d67bc12ea004604e37173e842029dc8f63c7dcf8 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Mike=20F=C3=A4hrmann?= Date: Mon, 6 Oct 2025 15:13:56 +0200 Subject: [PATCH] [weibo] ignore ongoing live streams (#8339) https://github.com/mikf/gallery-dl/issues/8339#issuecomment-3368824472 --- gallery_dl/extractor/weibo.py | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/gallery_dl/extractor/weibo.py b/gallery_dl/extractor/weibo.py index c08653f7..a1c60d83 100644 --- a/gallery_dl/extractor/weibo.py +++ b/gallery_dl/extractor/weibo.py @@ -150,6 +150,10 @@ class WeiboExtractor(Extractor): self.log.debug("%s: Ignoring 'movie' video", status["id"]) def _extract_video(self, info): + if info.get("live_status") == 1: + self.log.debug("Skipping ongoing live stream") + return {"url": ""} + try: media = max(info["playback_list"], key=lambda m: m["meta"]["quality_index"])