Fanbox: add support for embedded videos

Fixes #5339.
This commit is contained in:
nonamethanks
2022-11-09 14:02:48 +01:00
parent 53d4052387
commit d7d35cb16f
2 changed files with 39 additions and 8 deletions

View File

@@ -67,6 +67,25 @@ module Sources
)
end
context "A fanbox post with multiple videos attached as files" do
strategy_should_work(
"https://gomeifuku.fanbox.cc/posts/3975317",
image_urls: [
"https://downloads.fanbox.cc/files/post/3975317/eatOUYGtAR2jESVVWkeK57px.mp4",
"https://downloads.fanbox.cc/files/post/3975317/hbydNywJEmIlUeL5lTQfQjJi.mp4",
]
)
end
context "A fanbox post with a single embedded video" do
strategy_should_work(
"https://naochi.fanbox.cc/posts/4657540",
image_urls: [
"https://downloads.fanbox.cc/files/post/4657540/Pos3gwyHP4MKeI5JQS4Cl5sb.mp4",
]
)
end
context "A cover image" do
strategy_should_work(
"https://pixiv.pximg.net/c/1620x580_90_a2_g5/fanbox/public/images/creator/1566167/cover/QqxYtuWdy4XWQx1ZLIqr4wvA.jpeg",