[weibo] ignore ongoing live streams (#8339)
https://github.com/mikf/gallery-dl/issues/8339#issuecomment-3368824472
This commit is contained in:
@@ -150,6 +150,10 @@ class WeiboExtractor(Extractor):
|
|||||||
self.log.debug("%s: Ignoring 'movie' video", status["id"])
|
self.log.debug("%s: Ignoring 'movie' video", status["id"])
|
||||||
|
|
||||||
def _extract_video(self, info):
|
def _extract_video(self, info):
|
||||||
|
if info.get("live_status") == 1:
|
||||||
|
self.log.debug("Skipping ongoing live stream")
|
||||||
|
return {"url": ""}
|
||||||
|
|
||||||
try:
|
try:
|
||||||
media = max(info["playback_list"],
|
media = max(info["playback_list"],
|
||||||
key=lambda m: m["meta"]["quality_index"])
|
key=lambda m: m["meta"]["quality_index"])
|
||||||
|
|||||||
Reference in New Issue
Block a user