[weibo] add 'gifs' option (#5183)

This commit is contained in:
Mike Fährmann
2024-02-10 18:17:07 +01:00
parent af61d2b037
commit c83d0a1596
3 changed files with 29 additions and 2 deletions

View File

@@ -218,6 +218,15 @@ __tests__ = (
"#comment" : "type == gif",
"#category": ("", "weibo", "status"),
"#class" : weibo.WeiboStatusExtractor,
"#urls" : "https://wx4.sinaimg.cn/large/68d80d22gy1h2ryfa8k0kg208w06o7wh.gif",
},
{
"#url" : "https://weibo.com/1758989602/LvBhm5DiP",
"#comment" : "type == gif as video (#5183)",
"#category": ("", "weibo", "status"),
"#class" : weibo.WeiboStatusExtractor,
"#options" : {"gifs": "video"},
"#pattern" : r"https://g\.us\.sinaimg.cn/o0/qNZcaAAglx07Wuf921CM0104120005tc0E010\.mp4\?label=gif_mp4",
},