[weibo] fix livephoto 'filename' & 'extension' (#6471)

This commit is contained in:
Mike Fährmann
2024-11-14 18:56:18 +01:00
parent a3276e3b5d
commit 396b52aef7
2 changed files with 17 additions and 10 deletions

View File

@@ -227,13 +227,14 @@ __tests__ = (
},
{
"#url" : "https://weibo.com/5643044717/KkuDZ4jAA",
"#comment" : "type == livephoto (#2146)",
"#url" : "https://weibo.com/3194672795/OuxSwgUrC",
"#comment" : "type == livephoto (#2146, #6471)",
"#category": ("", "weibo", "status"),
"#class" : weibo.WeiboStatusExtractor,
"#pattern" : r"https://video\.weibo\.com/media/play\?livephoto=https%3A%2F%2Fus\.sinaimg\.cn%2F\w+\.mov",
"#range" : "2,4,6",
"#pattern" : r"https://livephoto\.us\.sinaimg\.cn/\w+\.mov\?Expires=\d+&ssig=\w+&KID=unistore,video",
"#range" : "2,4",
"filename" : {"000yfKhRjx08hBAXxdZ60f0f0100tBPr0k01", "000GEYrCjx08hBAXUFo40f0f0100vS5G0k01"},
"extension": "mov",
},