[vsco] fix 'video' extractor (#7113)
fixes regression introduced in 6420210b0f
This commit is contained in:
@@ -322,7 +322,7 @@ class VscoVideoExtractor(VscoExtractor):
|
|||||||
"grid_name" : "",
|
"grid_name" : "",
|
||||||
"upload_date" : media["createdDate"],
|
"upload_date" : media["createdDate"],
|
||||||
"responsive_url": media["posterUrl"],
|
"responsive_url": media["posterUrl"],
|
||||||
"video_url" : "ytdl:" + media.get("playbackUrl"),
|
"video_url" : media.get("playbackUrl"),
|
||||||
"image_meta" : None,
|
"image_meta" : None,
|
||||||
"width" : media["width"],
|
"width" : media["width"],
|
||||||
"height" : media["height"],
|
"height" : media["height"],
|
||||||
|
|||||||
@@ -112,7 +112,7 @@ __tests__ = (
|
|||||||
"#url" : "https://vsco.co/shavonec/video/c5eb34bb-dd13-4d7a-a09c-2a7cd719c9fa",
|
"#url" : "https://vsco.co/shavonec/video/c5eb34bb-dd13-4d7a-a09c-2a7cd719c9fa",
|
||||||
"#category": ("", "vsco", "video"),
|
"#category": ("", "vsco", "video"),
|
||||||
"#class" : vsco.VscoVideoExtractor,
|
"#class" : vsco.VscoVideoExtractor,
|
||||||
"#pattern" : r"ytdl:https://stream\.mux\.com/3o01XbjqTI4rkeRwPzR17H9i7VSFdWX1h\.m3u8\?token=ey.+",
|
"#pattern" : r"^ytdl:https://stream\.mux\.com/3o01XbjqTI4rkeRwPzR17H9i7VSFdWX1h\.m3u8\?token=ey.+",
|
||||||
|
|
||||||
"date" : "dt:2020-02-04 15:11:52",
|
"date" : "dt:2020-02-04 15:11:52",
|
||||||
"description": "Big news: 🎥 YOU CAN NOW POST VIDEOS TO VSCO ⚡️⚡️💪🏾. \n\n🔗BTS from my #FashionIsActivism panel with the California African American Arts museum ✊🏾",
|
"description": "Big news: 🎥 YOU CAN NOW POST VIDEOS TO VSCO ⚡️⚡️💪🏾. \n\n🔗BTS from my #FashionIsActivism panel with the California African American Arts museum ✊🏾",
|
||||||
|
|||||||
Reference in New Issue
Block a user