1
0
mirror of https://github.com/mikf/gallery-dl.git synced 2024-11-22 18:53:21 +01:00

[weibo] allow user-ids in status URLs

This commit is contained in:
Mike Fährmann 2019-03-30 18:38:58 +01:00
parent ec88ff1562
commit 17c11393f5
No known key found for this signature in database
GPG Key ID: 5680CA389D365A88

View File

@ -113,7 +113,7 @@ class WeiboStatusExtractor(WeiboExtractor):
"""Extractor for images from a status on weibo.cn"""
subcategory = "status"
pattern = (r"(?:https?://)?(?:www\.|m\.)?weibo\.c(?:om|n)"
r"/(?:detail|status)/(\d+)")
r"/(?:detail|status|\d+)/(\d+)")
test = (
("https://m.weibo.cn/detail/4323047042991618", {
"pattern": r"https?://wx\d+.sinaimg.cn/large/\w+.jpg",
@ -122,6 +122,7 @@ class WeiboStatusExtractor(WeiboExtractor):
"pattern": r"https?://f.us.sinaimg.cn/\w+\.mp4\?label=mp4_hd",
}),
("https://m.weibo.cn/status/4339748116375525"),
("https://m.weibo.cn/5746766133/4339748116375525"),
)
def __init__(self, match):