[weibo] try 'replay_hd' URLs as video fallback (#8339)

This commit is contained in:
Mike Fährmann
2025-10-03 11:19:14 +02:00
parent 008a871ccb
commit faeec7e67f
2 changed files with 9 additions and 1 deletions

View File

@@ -148,7 +148,8 @@ class WeiboExtractor(Extractor):
media = max(info["playback_list"],
key=lambda m: m["meta"]["quality_index"])
except Exception:
return {"url": (info.get("stream_url_hd") or
return {"url": (info.get("replay_hd") or
info.get("stream_url_hd") or
info.get("stream_url") or "")}
else:
return media["play_info"].copy()