summaryrefslogtreecommitdiffstats
path: root/gallery_dl/extractor/weibo.py
diff options
context:
space:
mode:
authorLibravatarUnit 193 <unit193@ubuntu.com>2020-03-16 23:20:15 -0400
committerLibravatarUnit 193 <unit193@ubuntu.com>2020-03-16 23:20:15 -0400
commite8cc000750de972384f2f34d02d42222b4018ae9 (patch)
tree26eb0bacedff7480d29bafcf184ca529cf9f1d9f /gallery_dl/extractor/weibo.py
parent4366125d2580982abb57bc65a26fc1fb8ef2a5df (diff)
New upstream version 1.13.2upstream/1.13.2
Diffstat (limited to 'gallery_dl/extractor/weibo.py')
-rw-r--r--gallery_dl/extractor/weibo.py6
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: