video_info 2.6.0 → 3.0.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +5 -5
- data/.github/workflows/unit_test.yml +39 -0
- data/.gitignore +0 -1
- data/.rubocop.yml +242 -1
- data/CONTRIBUTING.md +11 -0
- data/Gemfile +1 -1
- data/Guardfile +2 -2
- data/README.md +29 -7
- data/lib/video_info.rb +25 -28
- data/lib/video_info/provider.rb +25 -12
- data/lib/video_info/providers/dailymotion.rb +19 -3
- data/lib/video_info/providers/vimeo.rb +3 -3
- data/lib/video_info/providers/vimeo_api.rb +20 -11
- data/lib/video_info/providers/vimeo_scraper.rb +93 -23
- data/lib/video_info/providers/wistia.rb +2 -1
- data/lib/video_info/providers/youtube.rb +16 -2
- data/lib/video_info/providers/youtube_api.rb +42 -8
- data/lib/video_info/providers/youtube_scraper.rb +64 -31
- data/lib/video_info/providers/youtubeplaylist.rb +5 -2
- data/lib/video_info/providers/youtubeplaylist_api.rb +22 -1
- data/lib/video_info/providers/youtubeplaylist_scraper.rb +16 -3
- data/lib/video_info/version.rb +1 -1
- data/spec/fixtures/vcr_cassettes/VideoInfo_Providers_Dailymotion/_available_/with_invalid_video_url/_available_/1_2_2_1_1.yml +82 -0
- data/spec/fixtures/vcr_cassettes/VideoInfo_Providers_Dailymotion/_available_/with_valid_video/_available_/1_2_1_1_1.yml +87 -0
- data/spec/fixtures/vcr_cassettes/VideoInfo_Providers_Dailymotion/with_video_x7lni3/_author/1_3_7_1.yml +91 -0
- data/spec/fixtures/vcr_cassettes/VideoInfo_Providers_Dailymotion/with_video_x7lni3/_author_thumbnail/1_3_9_1.yml +91 -0
- data/spec/fixtures/vcr_cassettes/VideoInfo_Providers_Dailymotion/with_video_x7lni3/_author_url/1_3_8_1.yml +91 -0
- data/spec/fixtures/vcr_cassettes/VideoInfo_Providers_Dailymotion/with_video_x7lni3/_date/should_show_correct_date.yml +91 -0
- data/spec/fixtures/vcr_cassettes/VideoInfo_Providers_Dailymotion/with_video_x7lni3/_description/1_3_10_1.yml +91 -0
- data/spec/fixtures/vcr_cassettes/VideoInfo_Providers_Dailymotion/with_video_x7lni3/_duration/1_3_12_1.yml +91 -0
- data/spec/fixtures/vcr_cassettes/VideoInfo_Providers_Dailymotion/with_video_x7lni3/_keywords/1_3_11_1.yml +91 -0
- data/spec/fixtures/vcr_cassettes/VideoInfo_Providers_Dailymotion/with_video_x7lni3/_thumbnail/1_3_21_1.yml +91 -0
- data/spec/fixtures/vcr_cassettes/VideoInfo_Providers_Dailymotion/with_video_x7lni3/_thumbnail_large/1_3_18_1.yml +91 -0
- data/spec/fixtures/vcr_cassettes/VideoInfo_Providers_Dailymotion/with_video_x7lni3/_thumbnail_medium/1_3_17_1.yml +91 -0
- data/spec/fixtures/vcr_cassettes/VideoInfo_Providers_Dailymotion/with_video_x7lni3/_thumbnail_small/1_3_16_1.yml +91 -0
- data/spec/fixtures/vcr_cassettes/VideoInfo_Providers_Dailymotion/with_video_x7lni3/_title/1_3_6_1.yml +91 -0
- data/spec/fixtures/vcr_cassettes/VideoInfo_Providers_Dailymotion/with_video_x7lni3/_view_count/1_3_22_1.yml +91 -0
- data/spec/fixtures/vcr_cassettes/VideoInfo_Providers_Vimeo/_available_/with_password_required_video/_available_/1_2_3_1_1.yml +151 -0
- data/spec/fixtures/vcr_cassettes/VideoInfo_Providers_Vimeo/_available_/with_password_required_video/_available_/2_2_3_1_1.yml +68 -0
- data/spec/fixtures/vcr_cassettes/VideoInfo_Providers_Vimeo/_available_/with_this_video_does_not_exist_video/_available_/1_2_2_1_1.yml +127 -0
- data/spec/fixtures/vcr_cassettes/VideoInfo_Providers_Vimeo/_available_/with_this_video_does_not_exist_video/_available_/2_2_2_1_1.yml +70 -0
- data/spec/fixtures/vcr_cassettes/VideoInfo_Providers_Vimeo/_available_/with_valid_video/_available_/1_2_1_1_1.yml +158 -0
- data/spec/fixtures/vcr_cassettes/VideoInfo_Providers_Vimeo/_available_/with_valid_video/_available_/2_2_1_1_1.yml +68 -0
- data/spec/fixtures/vcr_cassettes/VideoInfo_Providers_Vimeo/with_unavailable_video/author/1_13_2_1.yml +130 -0
- data/spec/fixtures/vcr_cassettes/VideoInfo_Providers_Vimeo/with_unavailable_video/author_thumbnail/1_13_3_1.yml +130 -0
- data/spec/fixtures/vcr_cassettes/VideoInfo_Providers_Vimeo/with_unavailable_video/author_url/1_13_4_1.yml +132 -0
- data/spec/fixtures/vcr_cassettes/VideoInfo_Providers_Vimeo/with_unavailable_video/available_/1_13_1_1.yml +130 -0
- data/spec/fixtures/vcr_cassettes/VideoInfo_Providers_Vimeo/with_unavailable_video/date/1_13_7_1.yml +128 -0
- data/spec/fixtures/vcr_cassettes/VideoInfo_Providers_Vimeo/with_unavailable_video/description/1_13_6_1.yml +131 -0
- data/spec/fixtures/vcr_cassettes/VideoInfo_Providers_Vimeo/with_unavailable_video/duration/1_13_8_1.yml +130 -0
- data/spec/fixtures/vcr_cassettes/VideoInfo_Providers_Vimeo/with_unavailable_video/height/1_13_10_1.yml +131 -0
- data/spec/fixtures/vcr_cassettes/VideoInfo_Providers_Vimeo/with_unavailable_video/keywords/1_13_9_1.yml +128 -0
- data/spec/fixtures/vcr_cassettes/VideoInfo_Providers_Vimeo/with_unavailable_video/thumbnail_large/1_13_14_1.yml +129 -0
- data/spec/fixtures/vcr_cassettes/VideoInfo_Providers_Vimeo/with_unavailable_video/thumbnail_medium/1_13_13_1.yml +129 -0
- data/spec/fixtures/vcr_cassettes/VideoInfo_Providers_Vimeo/with_unavailable_video/thumbnail_small/1_13_12_1.yml +129 -0
- data/spec/fixtures/vcr_cassettes/VideoInfo_Providers_Vimeo/with_unavailable_video/title/1_13_5_1.yml +130 -0
- data/spec/fixtures/vcr_cassettes/VideoInfo_Providers_Vimeo/with_unavailable_video/view_count/1_13_15_1.yml +129 -0
- data/spec/fixtures/vcr_cassettes/VideoInfo_Providers_Vimeo/with_unavailable_video/width/1_13_11_1.yml +129 -0
- data/spec/fixtures/vcr_cassettes/VideoInfo_Providers_Vimeo/with_video_136971428/_author/1_3_20_1.yml +158 -0
- data/spec/fixtures/vcr_cassettes/VideoInfo_Providers_Vimeo/with_video_136971428/_author/2_3_20_1.yml +80 -0
- data/spec/fixtures/vcr_cassettes/VideoInfo_Providers_Vimeo/with_video_136971428/_author_thumbnail/1_3_19_1.yml +158 -0
- data/spec/fixtures/vcr_cassettes/VideoInfo_Providers_Vimeo/with_video_136971428/_author_thumbnail/2_3_19_1.yml +85 -0
- data/spec/fixtures/vcr_cassettes/VideoInfo_Providers_Vimeo/with_video_136971428/_author_url/1_3_21_1.yml +159 -0
- data/spec/fixtures/vcr_cassettes/VideoInfo_Providers_Vimeo/with_video_136971428/_author_url/2_3_21_1.yml +80 -0
- data/spec/fixtures/vcr_cassettes/VideoInfo_Providers_Vimeo/with_video_136971428/_date/should_have_correct_upload_date.yml +240 -0
- data/spec/fixtures/vcr_cassettes/VideoInfo_Providers_Vimeo/with_video_136971428/_description/1_3_7_1.yml +160 -0
- data/spec/fixtures/vcr_cassettes/VideoInfo_Providers_Vimeo/with_video_136971428/_description/2_3_7_1.yml +80 -0
- data/spec/fixtures/vcr_cassettes/VideoInfo_Providers_Vimeo/with_video_136971428/_duration/1_3_9_1.yml +158 -0
- data/spec/fixtures/vcr_cassettes/VideoInfo_Providers_Vimeo/with_video_136971428/_duration/2_3_9_1.yml +85 -0
- data/spec/fixtures/vcr_cassettes/VideoInfo_Providers_Vimeo/with_video_136971428/_height/1_3_11_1.yml +158 -0
- data/spec/fixtures/vcr_cassettes/VideoInfo_Providers_Vimeo/with_video_136971428/_height/2_3_11_1.yml +80 -0
- data/spec/fixtures/vcr_cassettes/VideoInfo_Providers_Vimeo/with_video_136971428/_keywords/should_return_a_string_list_of_keywords.yml +240 -0
- data/spec/fixtures/vcr_cassettes/VideoInfo_Providers_Vimeo/with_video_136971428/_thumbnail/1_3_18_1.yml +236 -0
- data/spec/fixtures/vcr_cassettes/VideoInfo_Providers_Vimeo/with_video_136971428/_thumbnail/2_3_18_1.yml +82 -0
- data/spec/fixtures/vcr_cassettes/VideoInfo_Providers_Vimeo/with_video_136971428/_thumbnail_large/1_3_15_1.yml +236 -0
- data/spec/fixtures/vcr_cassettes/VideoInfo_Providers_Vimeo/with_video_136971428/_thumbnail_large/2_3_15_1.yml +82 -0
- data/spec/fixtures/vcr_cassettes/VideoInfo_Providers_Vimeo/with_video_136971428/_thumbnail_medium/1_3_14_1.yml +235 -0
- data/spec/fixtures/vcr_cassettes/VideoInfo_Providers_Vimeo/with_video_136971428/_thumbnail_medium/2_3_14_1.yml +84 -0
- data/spec/fixtures/vcr_cassettes/VideoInfo_Providers_Vimeo/with_video_136971428/_thumbnail_small/1_3_13_1.yml +236 -0
- data/spec/fixtures/vcr_cassettes/VideoInfo_Providers_Vimeo/with_video_136971428/_thumbnail_small/2_3_13_1.yml +84 -0
- data/spec/fixtures/vcr_cassettes/VideoInfo_Providers_Vimeo/with_video_136971428/_title/1_3_6_1.yml +159 -0
- data/spec/fixtures/vcr_cassettes/VideoInfo_Providers_Vimeo/with_video_136971428/_title/2_3_6_1.yml +85 -0
- data/spec/fixtures/vcr_cassettes/VideoInfo_Providers_Vimeo/with_video_136971428/_view_count/1_3_22_1.yml +158 -0
- data/spec/fixtures/vcr_cassettes/VideoInfo_Providers_Vimeo/with_video_136971428/_view_count/2_3_22_1.yml +84 -0
- data/spec/fixtures/vcr_cassettes/VideoInfo_Providers_Vimeo/with_video_136971428/_width/1_3_10_1.yml +156 -0
- data/spec/fixtures/vcr_cassettes/VideoInfo_Providers_Vimeo/with_video_136971428/_width/2_3_10_1.yml +82 -0
- data/spec/fixtures/vcr_cassettes/VideoInfo_Providers_Vimeo/with_video_141349194/thumbnail/1_12_1_1.yml +234 -0
- data/spec/fixtures/vcr_cassettes/VideoInfo_Providers_Vimeo/with_video_141349194/thumbnail/2_12_1_1.yml +78 -0
- data/spec/fixtures/vcr_cassettes/VideoInfo_Providers_Vimeo/with_video_141349194/thumbnail_large/1_12_2_1.yml +233 -0
- data/spec/fixtures/vcr_cassettes/VideoInfo_Providers_Vimeo/with_video_141349194/thumbnail_large/2_12_2_1.yml +78 -0
- data/spec/fixtures/vcr_cassettes/VideoInfo_Providers_Vimeo/with_video_141349194/thumbnail_medium/1_12_3_1.yml +235 -0
- data/spec/fixtures/vcr_cassettes/VideoInfo_Providers_Vimeo/with_video_141349194/thumbnail_medium/2_12_3_1.yml +73 -0
- data/spec/fixtures/vcr_cassettes/VideoInfo_Providers_Vimeo/with_video_141349194/thumbnail_small/1_12_4_1.yml +234 -0
- data/spec/fixtures/vcr_cassettes/VideoInfo_Providers_Vimeo/with_video_141349194/thumbnail_small/2_12_4_1.yml +77 -0
- data/spec/fixtures/vcr_cassettes/VideoInfo_Providers_Wistia/_available_/with_invalid_video/_available_/1_2_2_1_1.yml +75 -0
- data/spec/fixtures/vcr_cassettes/VideoInfo_Providers_Wistia/_available_/with_valid_video/_available_/1_2_1_1_1.yml +79 -0
- data/spec/fixtures/vcr_cassettes/VideoInfo_Providers_Wistia/with_video_pxonqr42is/_duration/1_4_7_1.yml +85 -0
- data/spec/fixtures/vcr_cassettes/VideoInfo_Providers_Wistia/with_video_pxonqr42is/_height/1_4_9_1.yml +85 -0
- data/spec/fixtures/vcr_cassettes/VideoInfo_Providers_Wistia/with_video_pxonqr42is/_thumbnail_large/1_4_12_1.yml +86 -0
- data/spec/fixtures/vcr_cassettes/VideoInfo_Providers_Wistia/with_video_pxonqr42is/_thumbnail_medium/1_4_11_1.yml +86 -0
- data/spec/fixtures/vcr_cassettes/VideoInfo_Providers_Wistia/with_video_pxonqr42is/_thumbnail_small/1_4_10_1.yml +85 -0
- data/spec/fixtures/vcr_cassettes/VideoInfo_Providers_Wistia/with_video_pxonqr42is/_title/1_4_6_1.yml +86 -0
- data/spec/fixtures/vcr_cassettes/VideoInfo_Providers_Wistia/with_video_pxonqr42is/_width/1_4_8_1.yml +86 -0
- data/spec/fixtures/vcr_cassettes/VideoInfo_Providers_Wistia/with_video_rs1me54mpw/_duration/1_3_7_1.yml +85 -0
- data/spec/fixtures/vcr_cassettes/VideoInfo_Providers_Wistia/with_video_rs1me54mpw/_height/1_3_9_1.yml +87 -0
- data/spec/fixtures/vcr_cassettes/VideoInfo_Providers_Wistia/with_video_rs1me54mpw/_thumbnail/1_3_15_1.yml +87 -0
- data/spec/fixtures/vcr_cassettes/VideoInfo_Providers_Wistia/with_video_rs1me54mpw/_thumbnail_large/1_3_12_1.yml +87 -0
- data/spec/fixtures/vcr_cassettes/VideoInfo_Providers_Wistia/with_video_rs1me54mpw/_thumbnail_medium/1_3_11_1.yml +87 -0
- data/spec/fixtures/vcr_cassettes/VideoInfo_Providers_Wistia/with_video_rs1me54mpw/_thumbnail_small/1_3_10_1.yml +85 -0
- data/spec/fixtures/vcr_cassettes/VideoInfo_Providers_Wistia/with_video_rs1me54mpw/_title/1_3_6_1.yml +85 -0
- data/spec/fixtures/vcr_cassettes/VideoInfo_Providers_Wistia/with_video_rs1me54mpw/_width/1_3_8_1.yml +87 -0
- data/spec/fixtures/vcr_cassettes/VideoInfo_Providers_Youtube/_available_/with_unavailable_video/_available_/1_2_2_1_1.yml +59 -0
- data/spec/fixtures/vcr_cassettes/VideoInfo_Providers_Youtube/_available_/with_unavailable_video/_available_/2_2_2_1_1.yml +114 -0
- data/spec/fixtures/vcr_cassettes/VideoInfo_Providers_Youtube/_available_/with_unavailable_video/_date/1_2_2_11_1.yml +59 -0
- data/spec/fixtures/vcr_cassettes/VideoInfo_Providers_Youtube/_available_/with_unavailable_video/_date/2_2_2_11_1.yml +114 -0
- data/spec/fixtures/vcr_cassettes/VideoInfo_Providers_Youtube/_available_/with_unavailable_video/_description/1_2_2_8_1.yml +59 -0
- data/spec/fixtures/vcr_cassettes/VideoInfo_Providers_Youtube/_available_/with_unavailable_video/_description/2_2_2_8_1.yml +114 -0
- data/spec/fixtures/vcr_cassettes/VideoInfo_Providers_Youtube/_available_/with_unavailable_video/_duration/1_2_2_10_1.yml +59 -0
- data/spec/fixtures/vcr_cassettes/VideoInfo_Providers_Youtube/_available_/with_unavailable_video/_duration/2_2_2_10_1.yml +114 -0
- data/spec/fixtures/vcr_cassettes/VideoInfo_Providers_Youtube/_available_/with_unavailable_video/_keywords/1_2_2_9_1.yml +59 -0
- data/spec/fixtures/vcr_cassettes/VideoInfo_Providers_Youtube/_available_/with_unavailable_video/_keywords/2_2_2_9_1.yml +114 -0
- data/spec/fixtures/vcr_cassettes/VideoInfo_Providers_Youtube/_available_/with_unavailable_video/_title/1_2_2_7_1.yml +59 -0
- data/spec/fixtures/vcr_cassettes/VideoInfo_Providers_Youtube/_available_/with_unavailable_video/_title/2_2_2_7_1.yml +114 -0
- data/spec/fixtures/vcr_cassettes/VideoInfo_Providers_Youtube/_available_/with_unavailable_video/_view_count/1_2_2_18_1.yml +59 -0
- data/spec/fixtures/vcr_cassettes/VideoInfo_Providers_Youtube/_available_/with_unavailable_video/_view_count/2_2_2_18_1.yml +114 -0
- data/spec/fixtures/vcr_cassettes/VideoInfo_Providers_Youtube/_available_/with_valid_video/_available_/1_2_1_1_1.yml +59 -0
- data/spec/fixtures/vcr_cassettes/VideoInfo_Providers_Youtube/_available_/with_valid_video/_available_/2_2_1_1_1.yml +187 -0
- data/spec/fixtures/vcr_cassettes/VideoInfo_Providers_Youtube/_available_/with_video_removed_because_of_copyright_claim/_available_/1_2_3_1_1.yml +59 -0
- data/spec/fixtures/vcr_cassettes/VideoInfo_Providers_Youtube/_available_/with_video_removed_because_of_copyright_claim/_available_/2_2_3_1_1.yml +114 -0
- data/spec/fixtures/vcr_cassettes/VideoInfo_Providers_Youtube/with_a_video_without_description/_description/1_1_1_1.yml +59 -0
- data/spec/fixtures/vcr_cassettes/VideoInfo_Providers_Youtube/with_full_screen_video_URLs/_date/should_return_date_video_was_posted.yml +249 -0
- data/spec/fixtures/vcr_cassettes/VideoInfo_Providers_Youtube/with_full_screen_video_URLs/_description/1_17_7_1.yml +59 -0
- data/spec/fixtures/vcr_cassettes/VideoInfo_Providers_Youtube/with_full_screen_video_URLs/_description/2_17_7_1.yml +187 -0
- data/spec/fixtures/vcr_cassettes/VideoInfo_Providers_Youtube/with_full_screen_video_URLs/_duration/1_17_9_1.yml +59 -0
- data/spec/fixtures/vcr_cassettes/VideoInfo_Providers_Youtube/with_full_screen_video_URLs/_duration/2_17_9_1.yml +187 -0
- data/spec/fixtures/vcr_cassettes/VideoInfo_Providers_Youtube/with_full_screen_video_URLs/_keywords/1_17_8_1.yml +59 -0
- data/spec/fixtures/vcr_cassettes/VideoInfo_Providers_Youtube/with_full_screen_video_URLs/_keywords/2_17_8_1.yml +187 -0
- data/spec/fixtures/vcr_cassettes/VideoInfo_Providers_Youtube/with_full_screen_video_URLs/_title/1_17_6_1.yml +59 -0
- data/spec/fixtures/vcr_cassettes/VideoInfo_Providers_Youtube/with_full_screen_video_URLs/_title/2_17_6_1.yml +187 -0
- data/spec/fixtures/vcr_cassettes/VideoInfo_Providers_Youtube/with_full_screen_video_URLs/_view_count/1_17_17_1.yml +59 -0
- data/spec/fixtures/vcr_cassettes/VideoInfo_Providers_Youtube/with_full_screen_video_URLs/_view_count/2_17_17_1.yml +187 -0
- data/spec/fixtures/vcr_cassettes/VideoInfo_Providers_Youtube/with_video_mZqGqE0D0n4/_author/1_3_6_1.yml +115 -0
- data/spec/fixtures/vcr_cassettes/VideoInfo_Providers_Youtube/with_video_mZqGqE0D0n4/_author/2_3_6_1.yml +187 -0
- data/spec/fixtures/vcr_cassettes/VideoInfo_Providers_Youtube/with_video_mZqGqE0D0n4/_author_thumbnail/1_3_7_1.yml +115 -0
- data/spec/fixtures/vcr_cassettes/VideoInfo_Providers_Youtube/with_video_mZqGqE0D0n4/_author_thumbnail/2_3_7_1.yml +335 -0
- data/spec/fixtures/vcr_cassettes/VideoInfo_Providers_Youtube/with_video_mZqGqE0D0n4/_author_url/1_3_8_1.yml +59 -0
- data/spec/fixtures/vcr_cassettes/VideoInfo_Providers_Youtube/with_video_mZqGqE0D0n4/_author_url/2_3_8_1.yml +335 -0
- data/spec/fixtures/vcr_cassettes/VideoInfo_Providers_Youtube/with_video_mZqGqE0D0n4/_author_url/can_be_called_twice_and_receive_the_same_value.yml +391 -0
- data/spec/fixtures/vcr_cassettes/VideoInfo_Providers_Youtube/with_video_mZqGqE0D0n4/_date/should_return_date_video_was_posted.yml +243 -0
- data/spec/fixtures/vcr_cassettes/VideoInfo_Providers_Youtube/with_video_mZqGqE0D0n4/_description/1_3_10_1.yml +60 -0
- data/spec/fixtures/vcr_cassettes/VideoInfo_Providers_Youtube/with_video_mZqGqE0D0n4/_description/2_3_10_1.yml +187 -0
- data/spec/fixtures/vcr_cassettes/VideoInfo_Providers_Youtube/with_video_mZqGqE0D0n4/_duration/1_3_12_1.yml +59 -0
- data/spec/fixtures/vcr_cassettes/VideoInfo_Providers_Youtube/with_video_mZqGqE0D0n4/_duration/2_3_12_1.yml +187 -0
- data/spec/fixtures/vcr_cassettes/VideoInfo_Providers_Youtube/with_video_mZqGqE0D0n4/_keywords/1_3_11_1.yml +59 -0
- data/spec/fixtures/vcr_cassettes/VideoInfo_Providers_Youtube/with_video_mZqGqE0D0n4/_keywords/2_3_11_1.yml +187 -0
- data/spec/fixtures/vcr_cassettes/VideoInfo_Providers_Youtube/with_video_mZqGqE0D0n4/_title/1_3_9_1.yml +59 -0
- data/spec/fixtures/vcr_cassettes/VideoInfo_Providers_Youtube/with_video_mZqGqE0D0n4/_title/2_3_9_1.yml +187 -0
- data/spec/fixtures/vcr_cassettes/VideoInfo_Providers_Youtube/with_video_mZqGqE0D0n4/_view_count/1_3_21_1.yml +59 -0
- data/spec/fixtures/vcr_cassettes/VideoInfo_Providers_Youtube/with_video_mZqGqE0D0n4/_view_count/2_3_21_1.yml +187 -0
- data/spec/fixtures/vcr_cassettes/VideoInfo_Providers_YoutubePlaylist/_available_/with_invalid_playlist/_available_/1_2_2_1_1.yml +120 -0
- data/spec/fixtures/vcr_cassettes/VideoInfo_Providers_YoutubePlaylist/_available_/with_list_url/_available_/1_2_3_1_1.yml +154 -0
- data/spec/fixtures/vcr_cassettes/VideoInfo_Providers_YoutubePlaylist/_available_/with_valid_playlist/_available_/1_2_1_1_1.yml +154 -0
- data/spec/fixtures/vcr_cassettes/VideoInfo_Providers_YoutubePlaylist/with_playlist_PL9hW1uS6HUftLdHI6RIsaf/_author/1_3_21_1.yml +165 -0
- data/spec/fixtures/vcr_cassettes/VideoInfo_Providers_YoutubePlaylist/with_playlist_PL9hW1uS6HUftLdHI6RIsaf/_author_thumbnail/1_3_22_1.yml +274 -0
- data/spec/fixtures/vcr_cassettes/VideoInfo_Providers_YoutubePlaylist/with_playlist_PL9hW1uS6HUftLdHI6RIsaf/_author_url/1_3_23_1.yml +274 -0
- data/spec/fixtures/vcr_cassettes/VideoInfo_Providers_YoutubePlaylist/with_playlist_PL9hW1uS6HUftLdHI6RIsaf/_description/1_3_7_1.yml +165 -0
- data/spec/fixtures/vcr_cassettes/VideoInfo_Providers_YoutubePlaylist/with_playlist_PL9hW1uS6HUftLdHI6RIsaf/_keywords/1_3_8_1.yml +165 -0
- data/spec/fixtures/vcr_cassettes/VideoInfo_Providers_YoutubePlaylist/with_playlist_PL9hW1uS6HUftLdHI6RIsaf/_thumbnail/1_3_18_1.yml +165 -0
- data/spec/fixtures/vcr_cassettes/VideoInfo_Providers_YoutubePlaylist/with_playlist_PL9hW1uS6HUftLdHI6RIsaf/_thumbnail_large/1_3_15_1.yml +165 -0
- data/spec/fixtures/vcr_cassettes/VideoInfo_Providers_YoutubePlaylist/with_playlist_PL9hW1uS6HUftLdHI6RIsaf/_thumbnail_large_2x/1_3_16_1.yml +165 -0
- data/spec/fixtures/vcr_cassettes/VideoInfo_Providers_YoutubePlaylist/with_playlist_PL9hW1uS6HUftLdHI6RIsaf/_thumbnail_maxres/1_3_17_1.yml +165 -0
- data/spec/fixtures/vcr_cassettes/VideoInfo_Providers_YoutubePlaylist/with_playlist_PL9hW1uS6HUftLdHI6RIsaf/_thumbnail_medium/1_3_14_1.yml +165 -0
- data/spec/fixtures/vcr_cassettes/VideoInfo_Providers_YoutubePlaylist/with_playlist_PL9hW1uS6HUftLdHI6RIsaf/_thumbnail_small/1_3_13_1.yml +165 -0
- data/spec/fixtures/vcr_cassettes/VideoInfo_Providers_YoutubePlaylist/with_playlist_PL9hW1uS6HUftLdHI6RIsaf/_title/1_3_6_1.yml +165 -0
- data/spec/fixtures/vcr_cassettes/VideoInfo_Providers_YoutubePlaylist/with_playlist_PL9hW1uS6HUftLdHI6RIsaf/_videos/returns_list_of_videos_in_playlist.yml +112 -0
- data/spec/fixtures/vcr_cassettes/VideoInfo_Providers_YoutubePlaylist/with_playlist_that_does_not_exist_in_embed_path/_videos/1_4_2_1.yml +114 -0
- data/spec/lib/video_info/provider_spec.rb +42 -22
- data/spec/lib/video_info/providers/dailymotion_spec.rb +75 -27
- data/spec/lib/video_info/providers/vimeo_spec.rb +270 -174
- data/spec/lib/video_info/providers/wistia_spec.rb +59 -20
- data/spec/lib/video_info/providers/youtube_playlist_spec.rb +97 -41
- data/spec/lib/video_info/providers/youtube_scraper_spec.rb +14 -0
- data/spec/lib/video_info/providers/youtube_spec.rb +441 -384
- data/spec/lib/video_info_spec.rb +27 -25
- data/spec/spec_helper.rb +6 -1
- data/tmp/rspec_guard_result +25 -0
- data/video_info.gemspec +11 -14
- metadata +358 -100
- data/.travis.yml +0 -13
- data/foo.txt +0 -33
- data/lib/video_info/providers/vkontakte.rb +0 -170
- data/spec/lib/video_info/providers/vimeo_api_spec.rb +0 -242
- data/spec/lib/video_info/providers/vkontakte_spec.rb +0 -173
- data/spec/lib/video_info/providers/youtube_api_spec.rb +0 -476
- data/spec/lib/video_info/providers/youtube_playlist_api_spec.rb +0 -187
@@ -0,0 +1,91 @@
|
|
1
|
+
---
|
2
|
+
http_interactions:
|
3
|
+
- request:
|
4
|
+
method: get
|
5
|
+
uri: https://api.dailymotion.com/video/x7lni3?fields=id,title,description,duration,created_time,url,views_total,tags,thumbnail_url,thumbnail_720_url,owner.url,owner.screenname,owner.avatar_60_url,thumbnail_240_url,thumbnail_60_url
|
6
|
+
body:
|
7
|
+
encoding: US-ASCII
|
8
|
+
string: ''
|
9
|
+
headers:
|
10
|
+
User-Agent:
|
11
|
+
- VideoInfo/2.8.0
|
12
|
+
Accept-Encoding:
|
13
|
+
- gzip;q=1.0,deflate;q=0.6,identity;q=0.3
|
14
|
+
Accept:
|
15
|
+
- "*/*"
|
16
|
+
response:
|
17
|
+
status:
|
18
|
+
code: 200
|
19
|
+
message: OK
|
20
|
+
headers:
|
21
|
+
Content-Security-Policy-Report-Only:
|
22
|
+
- 'default-src https: blob: wss: data: android-webview-video-poster: android-webview:
|
23
|
+
chrome-extension: safari-extension: ''unsafe-eval'' ''unsafe-inline''; report-uri
|
24
|
+
https://www.dailymotion.com/content_security_policy_report_uri'
|
25
|
+
Server:
|
26
|
+
- DMS/1.0.42
|
27
|
+
X-Dm-Api-Object:
|
28
|
+
- video
|
29
|
+
X-Dm-Backnode:
|
30
|
+
- web-071.adm.ix7.dailymotion.com:80
|
31
|
+
Vary:
|
32
|
+
- X-DM-SSL,Accept-Encoding
|
33
|
+
X-Dm-Api-Method:
|
34
|
+
- info
|
35
|
+
Cache-Control:
|
36
|
+
- public, max-age=900, stale-if-error=900
|
37
|
+
Content-Type:
|
38
|
+
- application/json; charset=UTF-8
|
39
|
+
Access-Control-Expose-Headers:
|
40
|
+
- Date, X-DM-BackNode-Response-Time, X-DM-Edge, X-DM-Cache-Status, X-Served-By,
|
41
|
+
X-DM-BackNode-Response-Time
|
42
|
+
Content-Security-Policy:
|
43
|
+
- upgrade-insecure-requests
|
44
|
+
Date:
|
45
|
+
- Tue, 27 Oct 2020 10:44:17 GMT
|
46
|
+
Surrogate-Key:
|
47
|
+
- v-x7lni3
|
48
|
+
X-Dm-Lb-Ip:
|
49
|
+
- 195.8.215.129
|
50
|
+
X-Dm-Tg:
|
51
|
+
- v-x7lni3
|
52
|
+
X-Dm-Lb-Name:
|
53
|
+
- lb-01
|
54
|
+
X-Dm-Random-Number:
|
55
|
+
- '7637990'
|
56
|
+
Access-Control-Allow-Origin:
|
57
|
+
- "*"
|
58
|
+
X-Dm-Backnode-Response-Time:
|
59
|
+
- '31'
|
60
|
+
Etag:
|
61
|
+
- W/"rQeFNlJ5iMPO8gmsSDhiVw-gzip"
|
62
|
+
X-Robots-Tag:
|
63
|
+
- noindex
|
64
|
+
X-Frame-Options:
|
65
|
+
- DENY
|
66
|
+
Last-Modified:
|
67
|
+
- Tue, 19 May 2015 07:03:39 GMT
|
68
|
+
Expect-Ct:
|
69
|
+
- max-age=0, report-uri="https://www.dailymotion.com/content_security_policy_report_uri"
|
70
|
+
X-Dm-Cache-Status:
|
71
|
+
- MISS
|
72
|
+
Access-Control-Allow-Headers:
|
73
|
+
- Content-Type, Authorization
|
74
|
+
Access-Control-Allow-Methods:
|
75
|
+
- GET, POST, DELETE
|
76
|
+
Referrer-Policy:
|
77
|
+
- no-referrer-when-downgrade
|
78
|
+
X-Dm-Edge:
|
79
|
+
- DMParis
|
80
|
+
Content-Length:
|
81
|
+
- '502'
|
82
|
+
body:
|
83
|
+
encoding: ASCII-8BIT
|
84
|
+
string: '{"id":"x7lni3","title":"Mario Kart (R\u00e9mi Gaillard)","description":"Super
|
85
|
+
R\u00e9mi Kart est un jeu vid\u00e9o de course d\u00e9velopp\u00e9 et \u00e9dit\u00e9
|
86
|
+
par N''Importe Quoi TV. Sa principale originalit\u00e9 vient de sa r\u00e9alit\u00e9...<br
|
87
|
+
\/>L''aventure continue sur www.nimportequi.com","duration":136,"created_time":1228321771,"url":"https:\/\/www.dailymotion.com\/video\/x7lni3","views_total":10339941,"tags":["r\u00e9mi","remi","gaillard","imposteur","imposture","mario","bros","kart","nintendo","jeux"],"thumbnail_url":"https:\/\/s1.dmcdn.net\/v\/mj4x1VaO59zYd5Qm","thumbnail_720_url":"https:\/\/s1.dmcdn.net\/v\/mj4x1VaO59VyFzJt\/x720","owner.url":"https:\/\/www.dailymotion.com\/nqtv","owner.screenname":"R\u00e9mi
|
88
|
+
Gaillard","owner.avatar_60_url":"https:\/\/s2.dmcdn.net\/u\/US931VO3V-24wNr1\/60x60","thumbnail_240_url":"https:\/\/s2.dmcdn.net\/v\/mj4x1VaO59Vm42lt\/x240","thumbnail_60_url":"https:\/\/s1.dmcdn.net\/v\/mj4x1VaO59OF6TK6\/x60"}'
|
89
|
+
http_version:
|
90
|
+
recorded_at: Tue, 27 Oct 2020 10:44:17 GMT
|
91
|
+
recorded_with: VCR 3.0.3
|
@@ -0,0 +1,91 @@
|
|
1
|
+
---
|
2
|
+
http_interactions:
|
3
|
+
- request:
|
4
|
+
method: get
|
5
|
+
uri: https://api.dailymotion.com/video/x7lni3?fields=id,title,description,duration,created_time,url,views_total,tags,thumbnail_url,thumbnail_720_url,owner.url,owner.screenname,owner.avatar_60_url,thumbnail_240_url,thumbnail_60_url
|
6
|
+
body:
|
7
|
+
encoding: US-ASCII
|
8
|
+
string: ''
|
9
|
+
headers:
|
10
|
+
User-Agent:
|
11
|
+
- VideoInfo/2.8.0
|
12
|
+
Accept-Encoding:
|
13
|
+
- gzip;q=1.0,deflate;q=0.6,identity;q=0.3
|
14
|
+
Accept:
|
15
|
+
- "*/*"
|
16
|
+
response:
|
17
|
+
status:
|
18
|
+
code: 200
|
19
|
+
message: OK
|
20
|
+
headers:
|
21
|
+
Content-Security-Policy-Report-Only:
|
22
|
+
- 'default-src https: blob: wss: data: android-webview-video-poster: android-webview:
|
23
|
+
chrome-extension: safari-extension: ''unsafe-eval'' ''unsafe-inline''; report-uri
|
24
|
+
https://www.dailymotion.com/content_security_policy_report_uri'
|
25
|
+
Server:
|
26
|
+
- DMS/1.0.42
|
27
|
+
X-Dm-Api-Object:
|
28
|
+
- video
|
29
|
+
X-Dm-Backnode:
|
30
|
+
- web-043.adm.ix7.dailymotion.com:80
|
31
|
+
Vary:
|
32
|
+
- X-DM-SSL,Accept-Encoding
|
33
|
+
X-Dm-Api-Method:
|
34
|
+
- info
|
35
|
+
Cache-Control:
|
36
|
+
- public, max-age=900, stale-if-error=900
|
37
|
+
Content-Type:
|
38
|
+
- application/json; charset=UTF-8
|
39
|
+
Access-Control-Expose-Headers:
|
40
|
+
- Date, X-DM-BackNode-Response-Time, X-DM-Edge, X-DM-Cache-Status, X-Served-By,
|
41
|
+
X-DM-BackNode-Response-Time
|
42
|
+
Content-Security-Policy:
|
43
|
+
- upgrade-insecure-requests
|
44
|
+
Date:
|
45
|
+
- Tue, 27 Oct 2020 10:44:20 GMT
|
46
|
+
Surrogate-Key:
|
47
|
+
- v-x7lni3
|
48
|
+
X-Dm-Lb-Ip:
|
49
|
+
- 195.8.215.129
|
50
|
+
X-Dm-Tg:
|
51
|
+
- v-x7lni3
|
52
|
+
X-Dm-Lb-Name:
|
53
|
+
- lb-01
|
54
|
+
X-Dm-Random-Number:
|
55
|
+
- '1794854'
|
56
|
+
Access-Control-Allow-Origin:
|
57
|
+
- "*"
|
58
|
+
X-Dm-Backnode-Response-Time:
|
59
|
+
- '28'
|
60
|
+
Etag:
|
61
|
+
- W/"rQeFNlJ5iMPO8gmsSDhiVw-gzip"
|
62
|
+
X-Robots-Tag:
|
63
|
+
- noindex
|
64
|
+
X-Frame-Options:
|
65
|
+
- DENY
|
66
|
+
Last-Modified:
|
67
|
+
- Tue, 19 May 2015 07:03:39 GMT
|
68
|
+
Expect-Ct:
|
69
|
+
- max-age=0, report-uri="https://www.dailymotion.com/content_security_policy_report_uri"
|
70
|
+
X-Dm-Cache-Status:
|
71
|
+
- MISS
|
72
|
+
Access-Control-Allow-Headers:
|
73
|
+
- Content-Type, Authorization
|
74
|
+
Access-Control-Allow-Methods:
|
75
|
+
- GET, POST, DELETE
|
76
|
+
Referrer-Policy:
|
77
|
+
- no-referrer-when-downgrade
|
78
|
+
X-Dm-Edge:
|
79
|
+
- DMParis
|
80
|
+
Content-Length:
|
81
|
+
- '502'
|
82
|
+
body:
|
83
|
+
encoding: ASCII-8BIT
|
84
|
+
string: '{"id":"x7lni3","title":"Mario Kart (R\u00e9mi Gaillard)","description":"Super
|
85
|
+
R\u00e9mi Kart est un jeu vid\u00e9o de course d\u00e9velopp\u00e9 et \u00e9dit\u00e9
|
86
|
+
par N''Importe Quoi TV. Sa principale originalit\u00e9 vient de sa r\u00e9alit\u00e9...<br
|
87
|
+
\/>L''aventure continue sur www.nimportequi.com","duration":136,"created_time":1228321771,"url":"https:\/\/www.dailymotion.com\/video\/x7lni3","views_total":10339941,"tags":["r\u00e9mi","remi","gaillard","imposteur","imposture","mario","bros","kart","nintendo","jeux"],"thumbnail_url":"https:\/\/s2.dmcdn.net\/v\/mj4x1VaO59zYd5Qm","thumbnail_720_url":"https:\/\/s2.dmcdn.net\/v\/mj4x1VaO59VyFzJt\/x720","owner.url":"https:\/\/www.dailymotion.com\/nqtv","owner.screenname":"R\u00e9mi
|
88
|
+
Gaillard","owner.avatar_60_url":"https:\/\/s1.dmcdn.net\/u\/US931VO3V-24wNr1\/60x60","thumbnail_240_url":"https:\/\/s1.dmcdn.net\/v\/mj4x1VaO59Vm42lt\/x240","thumbnail_60_url":"https:\/\/s1.dmcdn.net\/v\/mj4x1VaO59OF6TK6\/x60"}'
|
89
|
+
http_version:
|
90
|
+
recorded_at: Tue, 27 Oct 2020 10:44:20 GMT
|
91
|
+
recorded_with: VCR 3.0.3
|
@@ -0,0 +1,91 @@
|
|
1
|
+
---
|
2
|
+
http_interactions:
|
3
|
+
- request:
|
4
|
+
method: get
|
5
|
+
uri: https://api.dailymotion.com/video/x7lni3?fields=id,title,description,duration,created_time,url,views_total,tags,thumbnail_url,thumbnail_720_url,owner.url,owner.screenname,owner.avatar_60_url,thumbnail_240_url,thumbnail_60_url
|
6
|
+
body:
|
7
|
+
encoding: US-ASCII
|
8
|
+
string: ''
|
9
|
+
headers:
|
10
|
+
User-Agent:
|
11
|
+
- VideoInfo/2.8.0
|
12
|
+
Accept-Encoding:
|
13
|
+
- gzip;q=1.0,deflate;q=0.6,identity;q=0.3
|
14
|
+
Accept:
|
15
|
+
- "*/*"
|
16
|
+
response:
|
17
|
+
status:
|
18
|
+
code: 200
|
19
|
+
message: OK
|
20
|
+
headers:
|
21
|
+
Content-Security-Policy-Report-Only:
|
22
|
+
- 'default-src https: blob: wss: data: android-webview-video-poster: android-webview:
|
23
|
+
chrome-extension: safari-extension: ''unsafe-eval'' ''unsafe-inline''; report-uri
|
24
|
+
https://www.dailymotion.com/content_security_policy_report_uri'
|
25
|
+
Server:
|
26
|
+
- DMS/1.0.42
|
27
|
+
X-Dm-Api-Object:
|
28
|
+
- video
|
29
|
+
X-Dm-Backnode:
|
30
|
+
- web-045.adm.ix7.dailymotion.com:80
|
31
|
+
Vary:
|
32
|
+
- X-DM-SSL,Accept-Encoding
|
33
|
+
X-Dm-Api-Method:
|
34
|
+
- info
|
35
|
+
Cache-Control:
|
36
|
+
- public, max-age=900, stale-if-error=900
|
37
|
+
Content-Type:
|
38
|
+
- application/json; charset=UTF-8
|
39
|
+
Access-Control-Expose-Headers:
|
40
|
+
- Date, X-DM-BackNode-Response-Time, X-DM-Edge, X-DM-Cache-Status, X-Served-By,
|
41
|
+
X-DM-BackNode-Response-Time
|
42
|
+
Content-Security-Policy:
|
43
|
+
- upgrade-insecure-requests
|
44
|
+
Date:
|
45
|
+
- Tue, 27 Oct 2020 10:44:18 GMT
|
46
|
+
Surrogate-Key:
|
47
|
+
- v-x7lni3
|
48
|
+
X-Dm-Lb-Ip:
|
49
|
+
- 195.8.215.129
|
50
|
+
X-Dm-Tg:
|
51
|
+
- v-x7lni3
|
52
|
+
X-Dm-Lb-Name:
|
53
|
+
- lb-01
|
54
|
+
X-Dm-Random-Number:
|
55
|
+
- '6266812'
|
56
|
+
Access-Control-Allow-Origin:
|
57
|
+
- "*"
|
58
|
+
X-Dm-Backnode-Response-Time:
|
59
|
+
- '28'
|
60
|
+
Etag:
|
61
|
+
- W/"rQeFNlJ5iMPO8gmsSDhiVw-gzip"
|
62
|
+
X-Robots-Tag:
|
63
|
+
- noindex
|
64
|
+
X-Frame-Options:
|
65
|
+
- DENY
|
66
|
+
Last-Modified:
|
67
|
+
- Tue, 19 May 2015 07:03:39 GMT
|
68
|
+
Expect-Ct:
|
69
|
+
- max-age=0, report-uri="https://www.dailymotion.com/content_security_policy_report_uri"
|
70
|
+
X-Dm-Cache-Status:
|
71
|
+
- MISS
|
72
|
+
Access-Control-Allow-Headers:
|
73
|
+
- Content-Type, Authorization
|
74
|
+
Access-Control-Allow-Methods:
|
75
|
+
- GET, POST, DELETE
|
76
|
+
Referrer-Policy:
|
77
|
+
- no-referrer-when-downgrade
|
78
|
+
X-Dm-Edge:
|
79
|
+
- DMParis
|
80
|
+
Content-Length:
|
81
|
+
- '504'
|
82
|
+
body:
|
83
|
+
encoding: ASCII-8BIT
|
84
|
+
string: '{"id":"x7lni3","title":"Mario Kart (R\u00e9mi Gaillard)","description":"Super
|
85
|
+
R\u00e9mi Kart est un jeu vid\u00e9o de course d\u00e9velopp\u00e9 et \u00e9dit\u00e9
|
86
|
+
par N''Importe Quoi TV. Sa principale originalit\u00e9 vient de sa r\u00e9alit\u00e9...<br
|
87
|
+
\/>L''aventure continue sur www.nimportequi.com","duration":136,"created_time":1228321771,"url":"https:\/\/www.dailymotion.com\/video\/x7lni3","views_total":10339941,"tags":["r\u00e9mi","remi","gaillard","imposteur","imposture","mario","bros","kart","nintendo","jeux"],"thumbnail_url":"https:\/\/s2.dmcdn.net\/v\/mj4x1VaO59zYd5Qm","thumbnail_720_url":"https:\/\/s1.dmcdn.net\/v\/mj4x1VaO59VyFzJt\/x720","owner.url":"https:\/\/www.dailymotion.com\/nqtv","owner.screenname":"R\u00e9mi
|
88
|
+
Gaillard","owner.avatar_60_url":"https:\/\/s2.dmcdn.net\/u\/US931VO3V-24wNr1\/60x60","thumbnail_240_url":"https:\/\/s2.dmcdn.net\/v\/mj4x1VaO59Vm42lt\/x240","thumbnail_60_url":"https:\/\/s1.dmcdn.net\/v\/mj4x1VaO59OF6TK6\/x60"}'
|
89
|
+
http_version:
|
90
|
+
recorded_at: Tue, 27 Oct 2020 10:44:19 GMT
|
91
|
+
recorded_with: VCR 3.0.3
|
@@ -0,0 +1,91 @@
|
|
1
|
+
---
|
2
|
+
http_interactions:
|
3
|
+
- request:
|
4
|
+
method: get
|
5
|
+
uri: https://api.dailymotion.com/video/x7lni3?fields=id,title,description,duration,created_time,url,views_total,tags,thumbnail_url,thumbnail_720_url,owner.url,owner.screenname,owner.avatar_60_url,thumbnail_240_url,thumbnail_60_url
|
6
|
+
body:
|
7
|
+
encoding: US-ASCII
|
8
|
+
string: ''
|
9
|
+
headers:
|
10
|
+
User-Agent:
|
11
|
+
- VideoInfo/2.8.0
|
12
|
+
Accept-Encoding:
|
13
|
+
- gzip;q=1.0,deflate;q=0.6,identity;q=0.3
|
14
|
+
Accept:
|
15
|
+
- "*/*"
|
16
|
+
response:
|
17
|
+
status:
|
18
|
+
code: 200
|
19
|
+
message: OK
|
20
|
+
headers:
|
21
|
+
Content-Security-Policy-Report-Only:
|
22
|
+
- 'default-src https: blob: wss: data: android-webview-video-poster: android-webview:
|
23
|
+
chrome-extension: safari-extension: ''unsafe-eval'' ''unsafe-inline''; report-uri
|
24
|
+
https://www.dailymotion.com/content_security_policy_report_uri'
|
25
|
+
Server:
|
26
|
+
- DMS/1.0.42
|
27
|
+
X-Dm-Api-Object:
|
28
|
+
- video
|
29
|
+
X-Dm-Backnode:
|
30
|
+
- web-087.adm.ix7.dailymotion.com:80
|
31
|
+
Vary:
|
32
|
+
- X-DM-SSL,Accept-Encoding
|
33
|
+
X-Dm-Api-Method:
|
34
|
+
- info
|
35
|
+
Cache-Control:
|
36
|
+
- public, max-age=900, stale-if-error=900
|
37
|
+
Content-Type:
|
38
|
+
- application/json; charset=UTF-8
|
39
|
+
Access-Control-Expose-Headers:
|
40
|
+
- Date, X-DM-BackNode-Response-Time, X-DM-Edge, X-DM-Cache-Status, X-Served-By,
|
41
|
+
X-DM-BackNode-Response-Time
|
42
|
+
Content-Security-Policy:
|
43
|
+
- upgrade-insecure-requests
|
44
|
+
Date:
|
45
|
+
- Tue, 27 Oct 2020 10:44:24 GMT
|
46
|
+
Surrogate-Key:
|
47
|
+
- v-x7lni3
|
48
|
+
X-Dm-Lb-Ip:
|
49
|
+
- 195.8.215.129
|
50
|
+
X-Dm-Tg:
|
51
|
+
- v-x7lni3
|
52
|
+
X-Dm-Lb-Name:
|
53
|
+
- lb-03
|
54
|
+
X-Dm-Random-Number:
|
55
|
+
- '2250540'
|
56
|
+
Access-Control-Allow-Origin:
|
57
|
+
- "*"
|
58
|
+
X-Dm-Backnode-Response-Time:
|
59
|
+
- '34'
|
60
|
+
Etag:
|
61
|
+
- W/"rQeFNlJ5iMPO8gmsSDhiVw-gzip"
|
62
|
+
X-Robots-Tag:
|
63
|
+
- noindex
|
64
|
+
X-Frame-Options:
|
65
|
+
- DENY
|
66
|
+
Last-Modified:
|
67
|
+
- Tue, 19 May 2015 07:03:39 GMT
|
68
|
+
Expect-Ct:
|
69
|
+
- max-age=0, report-uri="https://www.dailymotion.com/content_security_policy_report_uri"
|
70
|
+
X-Dm-Cache-Status:
|
71
|
+
- MISS
|
72
|
+
Access-Control-Allow-Headers:
|
73
|
+
- Content-Type, Authorization
|
74
|
+
Access-Control-Allow-Methods:
|
75
|
+
- GET, POST, DELETE
|
76
|
+
Referrer-Policy:
|
77
|
+
- no-referrer-when-downgrade
|
78
|
+
X-Dm-Edge:
|
79
|
+
- DMParis
|
80
|
+
Content-Length:
|
81
|
+
- '500'
|
82
|
+
body:
|
83
|
+
encoding: ASCII-8BIT
|
84
|
+
string: '{"id":"x7lni3","title":"Mario Kart (R\u00e9mi Gaillard)","description":"Super
|
85
|
+
R\u00e9mi Kart est un jeu vid\u00e9o de course d\u00e9velopp\u00e9 et \u00e9dit\u00e9
|
86
|
+
par N''Importe Quoi TV. Sa principale originalit\u00e9 vient de sa r\u00e9alit\u00e9...<br
|
87
|
+
\/>L''aventure continue sur www.nimportequi.com","duration":136,"created_time":1228321771,"url":"https:\/\/www.dailymotion.com\/video\/x7lni3","views_total":10339941,"tags":["r\u00e9mi","remi","gaillard","imposteur","imposture","mario","bros","kart","nintendo","jeux"],"thumbnail_url":"https:\/\/s1.dmcdn.net\/v\/mj4x1VaO59zYd5Qm","thumbnail_720_url":"https:\/\/s1.dmcdn.net\/v\/mj4x1VaO59VyFzJt\/x720","owner.url":"https:\/\/www.dailymotion.com\/nqtv","owner.screenname":"R\u00e9mi
|
88
|
+
Gaillard","owner.avatar_60_url":"https:\/\/s1.dmcdn.net\/u\/US931VO3V-24wNr1\/60x60","thumbnail_240_url":"https:\/\/s2.dmcdn.net\/v\/mj4x1VaO59Vm42lt\/x240","thumbnail_60_url":"https:\/\/s1.dmcdn.net\/v\/mj4x1VaO59OF6TK6\/x60"}'
|
89
|
+
http_version:
|
90
|
+
recorded_at: Tue, 27 Oct 2020 10:44:24 GMT
|
91
|
+
recorded_with: VCR 3.0.3
|
@@ -0,0 +1,91 @@
|
|
1
|
+
---
|
2
|
+
http_interactions:
|
3
|
+
- request:
|
4
|
+
method: get
|
5
|
+
uri: https://api.dailymotion.com/video/x7lni3?fields=id,title,description,duration,created_time,url,views_total,tags,thumbnail_url,thumbnail_720_url,owner.url,owner.screenname,owner.avatar_60_url,thumbnail_240_url,thumbnail_60_url
|
6
|
+
body:
|
7
|
+
encoding: US-ASCII
|
8
|
+
string: ''
|
9
|
+
headers:
|
10
|
+
User-Agent:
|
11
|
+
- VideoInfo/2.8.0
|
12
|
+
Accept-Encoding:
|
13
|
+
- gzip;q=1.0,deflate;q=0.6,identity;q=0.3
|
14
|
+
Accept:
|
15
|
+
- "*/*"
|
16
|
+
response:
|
17
|
+
status:
|
18
|
+
code: 200
|
19
|
+
message: OK
|
20
|
+
headers:
|
21
|
+
Content-Security-Policy-Report-Only:
|
22
|
+
- 'default-src https: blob: wss: data: android-webview-video-poster: android-webview:
|
23
|
+
chrome-extension: safari-extension: ''unsafe-eval'' ''unsafe-inline''; report-uri
|
24
|
+
https://www.dailymotion.com/content_security_policy_report_uri'
|
25
|
+
Server:
|
26
|
+
- DMS/1.0.42
|
27
|
+
X-Dm-Api-Object:
|
28
|
+
- video
|
29
|
+
X-Dm-Backnode:
|
30
|
+
- web-111.adm.ix7.dailymotion.com:80
|
31
|
+
Vary:
|
32
|
+
- X-DM-SSL,Accept-Encoding
|
33
|
+
X-Dm-Api-Method:
|
34
|
+
- info
|
35
|
+
Cache-Control:
|
36
|
+
- public, max-age=900, stale-if-error=900
|
37
|
+
Content-Type:
|
38
|
+
- application/json; charset=UTF-8
|
39
|
+
Access-Control-Expose-Headers:
|
40
|
+
- Date, X-DM-BackNode-Response-Time, X-DM-Edge, X-DM-Cache-Status, X-Served-By,
|
41
|
+
X-DM-BackNode-Response-Time
|
42
|
+
Content-Security-Policy:
|
43
|
+
- upgrade-insecure-requests
|
44
|
+
Date:
|
45
|
+
- Tue, 27 Oct 2020 10:44:21 GMT
|
46
|
+
Surrogate-Key:
|
47
|
+
- v-x7lni3
|
48
|
+
X-Dm-Lb-Ip:
|
49
|
+
- 195.8.215.129
|
50
|
+
X-Dm-Tg:
|
51
|
+
- v-x7lni3
|
52
|
+
X-Dm-Lb-Name:
|
53
|
+
- lb-03
|
54
|
+
X-Dm-Random-Number:
|
55
|
+
- '2162787'
|
56
|
+
Access-Control-Allow-Origin:
|
57
|
+
- "*"
|
58
|
+
X-Dm-Backnode-Response-Time:
|
59
|
+
- '36'
|
60
|
+
Etag:
|
61
|
+
- W/"rQeFNlJ5iMPO8gmsSDhiVw-gzip"
|
62
|
+
X-Robots-Tag:
|
63
|
+
- noindex
|
64
|
+
X-Frame-Options:
|
65
|
+
- DENY
|
66
|
+
Last-Modified:
|
67
|
+
- Tue, 19 May 2015 07:03:39 GMT
|
68
|
+
Expect-Ct:
|
69
|
+
- max-age=0, report-uri="https://www.dailymotion.com/content_security_policy_report_uri"
|
70
|
+
X-Dm-Cache-Status:
|
71
|
+
- MISS
|
72
|
+
Access-Control-Allow-Headers:
|
73
|
+
- Content-Type, Authorization
|
74
|
+
Access-Control-Allow-Methods:
|
75
|
+
- GET, POST, DELETE
|
76
|
+
Referrer-Policy:
|
77
|
+
- no-referrer-when-downgrade
|
78
|
+
X-Dm-Edge:
|
79
|
+
- DMParis
|
80
|
+
Content-Length:
|
81
|
+
- '502'
|
82
|
+
body:
|
83
|
+
encoding: ASCII-8BIT
|
84
|
+
string: '{"id":"x7lni3","title":"Mario Kart (R\u00e9mi Gaillard)","description":"Super
|
85
|
+
R\u00e9mi Kart est un jeu vid\u00e9o de course d\u00e9velopp\u00e9 et \u00e9dit\u00e9
|
86
|
+
par N''Importe Quoi TV. Sa principale originalit\u00e9 vient de sa r\u00e9alit\u00e9...<br
|
87
|
+
\/>L''aventure continue sur www.nimportequi.com","duration":136,"created_time":1228321771,"url":"https:\/\/www.dailymotion.com\/video\/x7lni3","views_total":10339941,"tags":["r\u00e9mi","remi","gaillard","imposteur","imposture","mario","bros","kart","nintendo","jeux"],"thumbnail_url":"https:\/\/s2.dmcdn.net\/v\/mj4x1VaO59zYd5Qm","thumbnail_720_url":"https:\/\/s1.dmcdn.net\/v\/mj4x1VaO59VyFzJt\/x720","owner.url":"https:\/\/www.dailymotion.com\/nqtv","owner.screenname":"R\u00e9mi
|
88
|
+
Gaillard","owner.avatar_60_url":"https:\/\/s1.dmcdn.net\/u\/US931VO3V-24wNr1\/60x60","thumbnail_240_url":"https:\/\/s2.dmcdn.net\/v\/mj4x1VaO59Vm42lt\/x240","thumbnail_60_url":"https:\/\/s2.dmcdn.net\/v\/mj4x1VaO59OF6TK6\/x60"}'
|
89
|
+
http_version:
|
90
|
+
recorded_at: Tue, 27 Oct 2020 10:44:21 GMT
|
91
|
+
recorded_with: VCR 3.0.3
|