diff options
Diffstat (limited to 'gallery_dl/extractor/weibo.py')
| -rw-r--r-- | gallery_dl/extractor/weibo.py | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/gallery_dl/extractor/weibo.py b/gallery_dl/extractor/weibo.py index 49fa082..6a779d9 100644 --- a/gallery_dl/extractor/weibo.py +++ b/gallery_dl/extractor/weibo.py @@ -56,7 +56,7 @@ class WeiboExtractor(Extractor): info = obj["page_info"]["media_info"] url = info.get("stream_url_hd") or info.get("stream_url") - if url and not info.get("goto"): + if url: data = text.nameext_from_url(url, { "num" : num, "pid" : 0, @@ -65,6 +65,10 @@ class WeiboExtractor(Extractor): "height": 0, "status": status, }) + if data["extension"] == "m3u8": + url = "ytdl:" + url + data["extension"] = "mp4" + data["_ytdl_extra"] = {"protocol": "m3u8_native"} yield Message.Url, url, data if self.retweets and "retweeted_status" in obj: |
