video_info 2.7.1 → 3.0.2
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/.github/workflows/unit_test.yml +42 -0
- data/Guardfile +1 -1
- data/README.md +8 -19
- data/lib/video_info/provider.rb +11 -2
- data/lib/video_info/providers/vimeo_api.rb +9 -3
- data/lib/video_info/providers/vimeo_scraper.rb +12 -2
- data/lib/video_info/providers/youtube.rb +8 -0
- data/lib/video_info/providers/youtube_api.rb +1 -2
- data/lib/video_info/providers/youtube_scraper.rb +43 -25
- data/lib/video_info/providers/youtubeplaylist_api.rb +15 -1
- data/lib/video_info/version.rb +1 -1
- data/lib/video_info.rb +3 -3
- data/tmp/rspec_guard_result +25 -0
- data/video_info.gemspec +5 -6
- metadata +16 -472
- data/.travis.yml +0 -21
- data/lib/video_info/providers/vkontakte.rb +0 -212
- data/spec/fixtures/vcr_cassettes/VideoInfo_Providers_Dailymotion/_available_/with_invalid_video_url/_available_/1_2_2_1_1.yml +0 -93
- data/spec/fixtures/vcr_cassettes/VideoInfo_Providers_Dailymotion/_available_/with_valid_video/_available_/1_2_1_1_1.yml +0 -96
- data/spec/fixtures/vcr_cassettes/VideoInfo_Providers_Dailymotion/with_video_x7lni3/_author/1_3_7_1.yml +0 -100
- data/spec/fixtures/vcr_cassettes/VideoInfo_Providers_Dailymotion/with_video_x7lni3/_author_thumbnail/1_3_9_1.yml +0 -100
- data/spec/fixtures/vcr_cassettes/VideoInfo_Providers_Dailymotion/with_video_x7lni3/_author_url/1_3_8_1.yml +0 -100
- data/spec/fixtures/vcr_cassettes/VideoInfo_Providers_Dailymotion/with_video_x7lni3/_date/should_show_correct_date.yml +0 -100
- data/spec/fixtures/vcr_cassettes/VideoInfo_Providers_Dailymotion/with_video_x7lni3/_description/1_3_10_1.yml +0 -100
- data/spec/fixtures/vcr_cassettes/VideoInfo_Providers_Dailymotion/with_video_x7lni3/_duration/1_3_12_1.yml +0 -100
- data/spec/fixtures/vcr_cassettes/VideoInfo_Providers_Dailymotion/with_video_x7lni3/_keywords/1_3_11_1.yml +0 -100
- data/spec/fixtures/vcr_cassettes/VideoInfo_Providers_Dailymotion/with_video_x7lni3/_thumbnail/1_3_19_1.yml +0 -100
- data/spec/fixtures/vcr_cassettes/VideoInfo_Providers_Dailymotion/with_video_x7lni3/_thumbnail_large/1_3_18_1.yml +0 -100
- data/spec/fixtures/vcr_cassettes/VideoInfo_Providers_Dailymotion/with_video_x7lni3/_thumbnail_medium/1_3_17_1.yml +0 -100
- data/spec/fixtures/vcr_cassettes/VideoInfo_Providers_Dailymotion/with_video_x7lni3/_thumbnail_small/1_3_16_1.yml +0 -100
- data/spec/fixtures/vcr_cassettes/VideoInfo_Providers_Dailymotion/with_video_x7lni3/_title/1_3_6_1.yml +0 -100
- data/spec/fixtures/vcr_cassettes/VideoInfo_Providers_Dailymotion/with_video_x7lni3/_view_count/1_3_20_1.yml +0 -100
- data/spec/fixtures/vcr_cassettes/VideoInfo_Providers_Vimeo/_available_/with_password_required_video/_available_/1_2_3_1_1.yml +0 -150
- data/spec/fixtures/vcr_cassettes/VideoInfo_Providers_Vimeo/_available_/with_password_required_video/_available_/2_2_3_1_1.yml +0 -65
- data/spec/fixtures/vcr_cassettes/VideoInfo_Providers_Vimeo/_available_/with_this_video_does_not_exist_video/_available_/1_2_2_1_1.yml +0 -124
- data/spec/fixtures/vcr_cassettes/VideoInfo_Providers_Vimeo/_available_/with_this_video_does_not_exist_video/_available_/2_2_2_1_1.yml +0 -67
- data/spec/fixtures/vcr_cassettes/VideoInfo_Providers_Vimeo/_available_/with_valid_video/_available_/1_2_1_1_1.yml +0 -150
- data/spec/fixtures/vcr_cassettes/VideoInfo_Providers_Vimeo/_available_/with_valid_video/_available_/2_2_1_1_1.yml +0 -67
- data/spec/fixtures/vcr_cassettes/VideoInfo_Providers_Vimeo/with_unavailable_video/author/1_13_2_1.yml +0 -128
- data/spec/fixtures/vcr_cassettes/VideoInfo_Providers_Vimeo/with_unavailable_video/author_thumbnail/1_13_3_1.yml +0 -128
- data/spec/fixtures/vcr_cassettes/VideoInfo_Providers_Vimeo/with_unavailable_video/author_url/1_13_4_1.yml +0 -128
- data/spec/fixtures/vcr_cassettes/VideoInfo_Providers_Vimeo/with_unavailable_video/available_/1_13_1_1.yml +0 -128
- data/spec/fixtures/vcr_cassettes/VideoInfo_Providers_Vimeo/with_unavailable_video/date/1_13_7_1.yml +0 -128
- data/spec/fixtures/vcr_cassettes/VideoInfo_Providers_Vimeo/with_unavailable_video/description/1_13_6_1.yml +0 -128
- data/spec/fixtures/vcr_cassettes/VideoInfo_Providers_Vimeo/with_unavailable_video/duration/1_13_8_1.yml +0 -128
- data/spec/fixtures/vcr_cassettes/VideoInfo_Providers_Vimeo/with_unavailable_video/height/1_13_10_1.yml +0 -128
- data/spec/fixtures/vcr_cassettes/VideoInfo_Providers_Vimeo/with_unavailable_video/keywords/1_13_9_1.yml +0 -128
- data/spec/fixtures/vcr_cassettes/VideoInfo_Providers_Vimeo/with_unavailable_video/thumbnail_large/1_13_14_1.yml +0 -128
- data/spec/fixtures/vcr_cassettes/VideoInfo_Providers_Vimeo/with_unavailable_video/thumbnail_medium/1_13_13_1.yml +0 -128
- data/spec/fixtures/vcr_cassettes/VideoInfo_Providers_Vimeo/with_unavailable_video/thumbnail_small/1_13_12_1.yml +0 -128
- data/spec/fixtures/vcr_cassettes/VideoInfo_Providers_Vimeo/with_unavailable_video/title/1_13_5_1.yml +0 -128
- data/spec/fixtures/vcr_cassettes/VideoInfo_Providers_Vimeo/with_unavailable_video/view_count/1_13_15_1.yml +0 -128
- data/spec/fixtures/vcr_cassettes/VideoInfo_Providers_Vimeo/with_unavailable_video/width/1_13_11_1.yml +0 -128
- data/spec/fixtures/vcr_cassettes/VideoInfo_Providers_Vimeo/with_video_136971428/_author/1_3_18_1.yml +0 -150
- data/spec/fixtures/vcr_cassettes/VideoInfo_Providers_Vimeo/with_video_136971428/_author/2_3_18_1.yml +0 -79
- data/spec/fixtures/vcr_cassettes/VideoInfo_Providers_Vimeo/with_video_136971428/_author_thumbnail/1_3_17_1.yml +0 -150
- data/spec/fixtures/vcr_cassettes/VideoInfo_Providers_Vimeo/with_video_136971428/_author_thumbnail/2_3_17_1.yml +0 -79
- data/spec/fixtures/vcr_cassettes/VideoInfo_Providers_Vimeo/with_video_136971428/_author_url/1_3_19_1.yml +0 -150
- data/spec/fixtures/vcr_cassettes/VideoInfo_Providers_Vimeo/with_video_136971428/_author_url/2_3_19_1.yml +0 -79
- data/spec/fixtures/vcr_cassettes/VideoInfo_Providers_Vimeo/with_video_136971428/_date/should_have_correct_upload_date.yml +0 -226
- data/spec/fixtures/vcr_cassettes/VideoInfo_Providers_Vimeo/with_video_136971428/_description/1_3_7_1.yml +0 -150
- data/spec/fixtures/vcr_cassettes/VideoInfo_Providers_Vimeo/with_video_136971428/_description/2_3_7_1.yml +0 -79
- data/spec/fixtures/vcr_cassettes/VideoInfo_Providers_Vimeo/with_video_136971428/_duration/1_3_9_1.yml +0 -150
- data/spec/fixtures/vcr_cassettes/VideoInfo_Providers_Vimeo/with_video_136971428/_duration/2_3_9_1.yml +0 -79
- data/spec/fixtures/vcr_cassettes/VideoInfo_Providers_Vimeo/with_video_136971428/_height/1_3_11_1.yml +0 -150
- data/spec/fixtures/vcr_cassettes/VideoInfo_Providers_Vimeo/with_video_136971428/_height/2_3_11_1.yml +0 -79
- data/spec/fixtures/vcr_cassettes/VideoInfo_Providers_Vimeo/with_video_136971428/_keywords/should_return_a_string_list_of_keywords.yml +0 -226
- data/spec/fixtures/vcr_cassettes/VideoInfo_Providers_Vimeo/with_video_136971428/_thumbnail/1_3_16_1.yml +0 -222
- data/spec/fixtures/vcr_cassettes/VideoInfo_Providers_Vimeo/with_video_136971428/_thumbnail/2_3_16_1.yml +0 -79
- data/spec/fixtures/vcr_cassettes/VideoInfo_Providers_Vimeo/with_video_136971428/_thumbnail_large/1_3_15_1.yml +0 -222
- data/spec/fixtures/vcr_cassettes/VideoInfo_Providers_Vimeo/with_video_136971428/_thumbnail_large/2_3_15_1.yml +0 -79
- data/spec/fixtures/vcr_cassettes/VideoInfo_Providers_Vimeo/with_video_136971428/_thumbnail_medium/1_3_14_1.yml +0 -222
- data/spec/fixtures/vcr_cassettes/VideoInfo_Providers_Vimeo/with_video_136971428/_thumbnail_medium/2_3_14_1.yml +0 -79
- data/spec/fixtures/vcr_cassettes/VideoInfo_Providers_Vimeo/with_video_136971428/_thumbnail_small/1_3_13_1.yml +0 -222
- data/spec/fixtures/vcr_cassettes/VideoInfo_Providers_Vimeo/with_video_136971428/_thumbnail_small/2_3_13_1.yml +0 -79
- data/spec/fixtures/vcr_cassettes/VideoInfo_Providers_Vimeo/with_video_136971428/_title/1_3_6_1.yml +0 -150
- data/spec/fixtures/vcr_cassettes/VideoInfo_Providers_Vimeo/with_video_136971428/_title/2_3_6_1.yml +0 -79
- data/spec/fixtures/vcr_cassettes/VideoInfo_Providers_Vimeo/with_video_136971428/_view_count/1_3_20_1.yml +0 -150
- data/spec/fixtures/vcr_cassettes/VideoInfo_Providers_Vimeo/with_video_136971428/_view_count/2_3_20_1.yml +0 -79
- data/spec/fixtures/vcr_cassettes/VideoInfo_Providers_Vimeo/with_video_136971428/_width/1_3_10_1.yml +0 -150
- data/spec/fixtures/vcr_cassettes/VideoInfo_Providers_Vimeo/with_video_136971428/_width/2_3_10_1.yml +0 -79
- data/spec/fixtures/vcr_cassettes/VideoInfo_Providers_Vimeo/with_video_193970014/thumbnail/1_12_1_1.yml +0 -222
- data/spec/fixtures/vcr_cassettes/VideoInfo_Providers_Vimeo/with_video_193970014/thumbnail/2_12_1_1.yml +0 -75
- data/spec/fixtures/vcr_cassettes/VideoInfo_Providers_Vimeo/with_video_193970014/thumbnail_large/1_12_2_1.yml +0 -222
- data/spec/fixtures/vcr_cassettes/VideoInfo_Providers_Vimeo/with_video_193970014/thumbnail_large/2_12_2_1.yml +0 -75
- data/spec/fixtures/vcr_cassettes/VideoInfo_Providers_Vimeo/with_video_193970014/thumbnail_medium/1_12_3_1.yml +0 -222
- data/spec/fixtures/vcr_cassettes/VideoInfo_Providers_Vimeo/with_video_193970014/thumbnail_medium/2_12_3_1.yml +0 -75
- data/spec/fixtures/vcr_cassettes/VideoInfo_Providers_Vimeo/with_video_193970014/thumbnail_small/1_12_4_1.yml +0 -222
- data/spec/fixtures/vcr_cassettes/VideoInfo_Providers_Vimeo/with_video_193970014/thumbnail_small/2_12_4_1.yml +0 -75
- data/spec/fixtures/vcr_cassettes/VideoInfo_Providers_Vkontakte/_available_/with_hashes/available_/1_2_6_1_1.yml +0 -86
- data/spec/fixtures/vcr_cassettes/VideoInfo_Providers_Vkontakte/_available_/with_invalid_video/available_/1_2_2_1_1.yml +0 -50
- data/spec/fixtures/vcr_cassettes/VideoInfo_Providers_Vkontakte/_available_/with_private_video/available_/1_2_3_1_1.yml +0 -132
- data/spec/fixtures/vcr_cassettes/VideoInfo_Providers_Vkontakte/_available_/with_redirect/available_/1_2_4_1_1.yml +0 -134
- data/spec/fixtures/vcr_cassettes/VideoInfo_Providers_Vkontakte/_available_/with_redirect_to_main_page_for_auth/available_/1_2_5_1_1.yml +0 -85
- data/spec/fixtures/vcr_cassettes/VideoInfo_Providers_Vkontakte/_available_/with_valid_video/available_/1_2_1_1_1.yml +0 -87
- data/spec/fixtures/vcr_cassettes/VideoInfo_Providers_Vkontakte/with_video_from_kirill_lyanoi_z_video2152699_168591741_2F56fd229a9dfe2dcdbe/author/1_5_14_1.yml +0 -48
- data/spec/fixtures/vcr_cassettes/VideoInfo_Providers_Vkontakte/with_video_from_kirill_lyanoi_z_video2152699_168591741_2F56fd229a9dfe2dcdbe/author_thumbnail/1_5_15_1.yml +0 -48
- data/spec/fixtures/vcr_cassettes/VideoInfo_Providers_Vkontakte/with_video_from_kirill_lyanoi_z_video2152699_168591741_2F56fd229a9dfe2dcdbe/author_url/1_5_16_1.yml +0 -48
- data/spec/fixtures/vcr_cassettes/VideoInfo_Providers_Vkontakte/with_video_from_kirill_lyanoi_z_video2152699_168591741_2F56fd229a9dfe2dcdbe/description/1_5_8_1.yml +0 -48
- data/spec/fixtures/vcr_cassettes/VideoInfo_Providers_Vkontakte/with_video_from_kirill_lyanoi_z_video2152699_168591741_2F56fd229a9dfe2dcdbe/duration/1_5_10_1.yml +0 -48
- data/spec/fixtures/vcr_cassettes/VideoInfo_Providers_Vkontakte/with_video_from_kirill_lyanoi_z_video2152699_168591741_2F56fd229a9dfe2dcdbe/embed_code/1_5_6_1.yml +0 -48
- data/spec/fixtures/vcr_cassettes/VideoInfo_Providers_Vkontakte/with_video_from_kirill_lyanoi_z_video2152699_168591741_2F56fd229a9dfe2dcdbe/embed_url/1_5_5_1.yml +0 -48
- data/spec/fixtures/vcr_cassettes/VideoInfo_Providers_Vkontakte/with_video_from_kirill_lyanoi_z_video2152699_168591741_2F56fd229a9dfe2dcdbe/height/1_5_12_1.yml +0 -48
- data/spec/fixtures/vcr_cassettes/VideoInfo_Providers_Vkontakte/with_video_from_kirill_lyanoi_z_video2152699_168591741_2F56fd229a9dfe2dcdbe/thumbnail_small/1_5_18_1.yml +0 -48
- data/spec/fixtures/vcr_cassettes/VideoInfo_Providers_Vkontakte/with_video_from_kirill_lyanoi_z_video2152699_168591741_2F56fd229a9dfe2dcdbe/title/1_5_7_1.yml +0 -48
- data/spec/fixtures/vcr_cassettes/VideoInfo_Providers_Vkontakte/with_video_from_kirill_lyanoi_z_video2152699_168591741_2F56fd229a9dfe2dcdbe/view_count/1_5_13_1.yml +0 -48
- data/spec/fixtures/vcr_cassettes/VideoInfo_Providers_Vkontakte/with_video_from_kirill_lyanoi_z_video2152699_168591741_2F56fd229a9dfe2dcdbe/width/1_5_11_1.yml +0 -50
- data/spec/fixtures/vcr_cassettes/VideoInfo_Providers_Vkontakte/with_video_https_/vk_com/id44052340_z_video61291456_159590018_2F2521d92730a272a9ea/author/1_3_7_1.yml +0 -48
- data/spec/fixtures/vcr_cassettes/VideoInfo_Providers_Vkontakte/with_video_https_/vk_com/id44052340_z_video61291456_159590018_2F2521d92730a272a9ea/embed_code/1_3_6_1.yml +0 -48
- data/spec/fixtures/vcr_cassettes/VideoInfo_Providers_Vkontakte/with_video_https_/vk_com/id44052340_z_video61291456_159590018_2F2521d92730a272a9ea/embed_url/1_3_5_1.yml +0 -48
- data/spec/fixtures/vcr_cassettes/VideoInfo_Providers_Vkontakte/with_video_https_/vk_com/id44052340_z_video61291456_159590018_2F2521d92730a272a9ea/title/1_3_4_1.yml +0 -48
- data/spec/fixtures/vcr_cassettes/VideoInfo_Providers_Vkontakte/with_video_video-54799401_165822734/title/1_7_4_1.yml +0 -48
- data/spec/fixtures/vcr_cassettes/VideoInfo_Providers_Vkontakte/with_video_video3552522_171340713/embed_url/1_10_1_1.yml +0 -48
- data/spec/fixtures/vcr_cassettes/VideoInfo_Providers_Vkontakte/with_video_video39576223_161598544/description/1_6_8_1.yml +0 -48
- data/spec/fixtures/vcr_cassettes/VideoInfo_Providers_Vkontakte/with_video_video39576223_161598544/duration/1_6_10_1.yml +0 -48
- data/spec/fixtures/vcr_cassettes/VideoInfo_Providers_Vkontakte/with_video_video39576223_161598544/embed_code/1_6_6_1.yml +0 -48
- data/spec/fixtures/vcr_cassettes/VideoInfo_Providers_Vkontakte/with_video_video39576223_161598544/embed_url/1_6_5_1.yml +0 -48
- data/spec/fixtures/vcr_cassettes/VideoInfo_Providers_Vkontakte/with_video_video39576223_161598544/height/1_6_12_1.yml +0 -48
- data/spec/fixtures/vcr_cassettes/VideoInfo_Providers_Vkontakte/with_video_video39576223_161598544/title/1_6_7_1.yml +0 -48
- data/spec/fixtures/vcr_cassettes/VideoInfo_Providers_Vkontakte/with_video_video39576223_161598544/view_count/1_6_13_1.yml +0 -48
- data/spec/fixtures/vcr_cassettes/VideoInfo_Providers_Vkontakte/with_video_video39576223_161598544/width/1_6_11_1.yml +0 -48
- data/spec/fixtures/vcr_cassettes/VideoInfo_Providers_Vkontakte/with_video_videos43640822_/video43640822_168790809/author/1_4_5_1.yml +0 -48
- data/spec/fixtures/vcr_cassettes/VideoInfo_Providers_Vkontakte/with_video_videos43640822_/video43640822_168790809/author_thumbnail/1_4_6_1.yml +0 -48
- data/spec/fixtures/vcr_cassettes/VideoInfo_Providers_Vkontakte/with_video_videos43640822_/video43640822_168790809/author_url/1_4_7_1.yml +0 -48
- data/spec/fixtures/vcr_cassettes/VideoInfo_Providers_Vkontakte/with_video_videos43640822_/video43640822_168790809/title/1_4_4_1.yml +0 -48
- data/spec/fixtures/vcr_cassettes/VideoInfo_Providers_Wistia/_available_/with_invalid_video/_available_/1_2_2_1_1.yml +0 -67
- data/spec/fixtures/vcr_cassettes/VideoInfo_Providers_Wistia/_available_/with_valid_video/_available_/1_2_1_1_1.yml +0 -69
- data/spec/fixtures/vcr_cassettes/VideoInfo_Providers_Wistia/with_video_pxonqr42is/_duration/1_4_7_1.yml +0 -77
- data/spec/fixtures/vcr_cassettes/VideoInfo_Providers_Wistia/with_video_pxonqr42is/_height/1_4_9_1.yml +0 -77
- data/spec/fixtures/vcr_cassettes/VideoInfo_Providers_Wistia/with_video_pxonqr42is/_thumbnail_large/1_4_12_1.yml +0 -77
- data/spec/fixtures/vcr_cassettes/VideoInfo_Providers_Wistia/with_video_pxonqr42is/_thumbnail_medium/1_4_11_1.yml +0 -77
- data/spec/fixtures/vcr_cassettes/VideoInfo_Providers_Wistia/with_video_pxonqr42is/_thumbnail_small/1_4_10_1.yml +0 -77
- data/spec/fixtures/vcr_cassettes/VideoInfo_Providers_Wistia/with_video_pxonqr42is/_title/1_4_6_1.yml +0 -77
- data/spec/fixtures/vcr_cassettes/VideoInfo_Providers_Wistia/with_video_pxonqr42is/_width/1_4_8_1.yml +0 -77
- data/spec/fixtures/vcr_cassettes/VideoInfo_Providers_Wistia/with_video_rs1me54mpw/_duration/1_3_7_1.yml +0 -77
- data/spec/fixtures/vcr_cassettes/VideoInfo_Providers_Wistia/with_video_rs1me54mpw/_height/1_3_9_1.yml +0 -77
- data/spec/fixtures/vcr_cassettes/VideoInfo_Providers_Wistia/with_video_rs1me54mpw/_thumbnail/1_3_13_1.yml +0 -77
- data/spec/fixtures/vcr_cassettes/VideoInfo_Providers_Wistia/with_video_rs1me54mpw/_thumbnail_large/1_3_12_1.yml +0 -77
- data/spec/fixtures/vcr_cassettes/VideoInfo_Providers_Wistia/with_video_rs1me54mpw/_thumbnail_medium/1_3_11_1.yml +0 -77
- data/spec/fixtures/vcr_cassettes/VideoInfo_Providers_Wistia/with_video_rs1me54mpw/_thumbnail_small/1_3_10_1.yml +0 -77
- data/spec/fixtures/vcr_cassettes/VideoInfo_Providers_Wistia/with_video_rs1me54mpw/_title/1_3_6_1.yml +0 -77
- data/spec/fixtures/vcr_cassettes/VideoInfo_Providers_Wistia/with_video_rs1me54mpw/_width/1_3_8_1.yml +0 -77
- data/spec/fixtures/vcr_cassettes/VideoInfo_Providers_Youtube/_available_/foo/_available/1_2_2_1_1.yml +0 -1447
- data/spec/fixtures/vcr_cassettes/VideoInfo_Providers_Youtube/_available_/foo/_available/2_2_2_1_1.yml +0 -156
- data/spec/fixtures/vcr_cassettes/VideoInfo_Providers_Youtube/_available_/with_unavailable_video/_available_/1_2_2_1_1.yml +0 -481
- data/spec/fixtures/vcr_cassettes/VideoInfo_Providers_Youtube/_available_/with_unavailable_video/_available_/1_2_3_1_1.yml +0 -485
- data/spec/fixtures/vcr_cassettes/VideoInfo_Providers_Youtube/_available_/with_unavailable_video/_available_/2_2_2_1_1.yml +0 -54
- data/spec/fixtures/vcr_cassettes/VideoInfo_Providers_Youtube/_available_/with_unavailable_video/_available_/2_2_3_1_1.yml +0 -54
- data/spec/fixtures/vcr_cassettes/VideoInfo_Providers_Youtube/_available_/with_unavailable_video/_date/1_2_2_11_1.yml +0 -481
- data/spec/fixtures/vcr_cassettes/VideoInfo_Providers_Youtube/_available_/with_unavailable_video/_date/1_2_3_11_1.yml +0 -481
- data/spec/fixtures/vcr_cassettes/VideoInfo_Providers_Youtube/_available_/with_unavailable_video/_date/2_2_2_11_1.yml +0 -54
- data/spec/fixtures/vcr_cassettes/VideoInfo_Providers_Youtube/_available_/with_unavailable_video/_date/2_2_3_11_1.yml +0 -54
- data/spec/fixtures/vcr_cassettes/VideoInfo_Providers_Youtube/_available_/with_unavailable_video/_description/1_2_2_8_1.yml +0 -483
- data/spec/fixtures/vcr_cassettes/VideoInfo_Providers_Youtube/_available_/with_unavailable_video/_description/1_2_3_8_1.yml +0 -483
- data/spec/fixtures/vcr_cassettes/VideoInfo_Providers_Youtube/_available_/with_unavailable_video/_description/2_2_2_8_1.yml +0 -54
- data/spec/fixtures/vcr_cassettes/VideoInfo_Providers_Youtube/_available_/with_unavailable_video/_description/2_2_3_8_1.yml +0 -54
- data/spec/fixtures/vcr_cassettes/VideoInfo_Providers_Youtube/_available_/with_unavailable_video/_duration/1_2_2_10_1.yml +0 -485
- data/spec/fixtures/vcr_cassettes/VideoInfo_Providers_Youtube/_available_/with_unavailable_video/_duration/1_2_3_10_1.yml +0 -484
- data/spec/fixtures/vcr_cassettes/VideoInfo_Providers_Youtube/_available_/with_unavailable_video/_duration/2_2_2_10_1.yml +0 -54
- data/spec/fixtures/vcr_cassettes/VideoInfo_Providers_Youtube/_available_/with_unavailable_video/_duration/2_2_3_10_1.yml +0 -54
- data/spec/fixtures/vcr_cassettes/VideoInfo_Providers_Youtube/_available_/with_unavailable_video/_keywords/1_2_2_9_1.yml +0 -485
- data/spec/fixtures/vcr_cassettes/VideoInfo_Providers_Youtube/_available_/with_unavailable_video/_keywords/1_2_3_9_1.yml +0 -484
- data/spec/fixtures/vcr_cassettes/VideoInfo_Providers_Youtube/_available_/with_unavailable_video/_keywords/2_2_2_9_1.yml +0 -54
- data/spec/fixtures/vcr_cassettes/VideoInfo_Providers_Youtube/_available_/with_unavailable_video/_keywords/2_2_3_9_1.yml +0 -54
- data/spec/fixtures/vcr_cassettes/VideoInfo_Providers_Youtube/_available_/with_unavailable_video/_title/1_2_2_7_1.yml +0 -481
- data/spec/fixtures/vcr_cassettes/VideoInfo_Providers_Youtube/_available_/with_unavailable_video/_title/1_2_3_7_1.yml +0 -484
- data/spec/fixtures/vcr_cassettes/VideoInfo_Providers_Youtube/_available_/with_unavailable_video/_title/2_2_2_7_1.yml +0 -54
- data/spec/fixtures/vcr_cassettes/VideoInfo_Providers_Youtube/_available_/with_unavailable_video/_title/2_2_3_7_1.yml +0 -54
- data/spec/fixtures/vcr_cassettes/VideoInfo_Providers_Youtube/_available_/with_unavailable_video/_view_count/1_2_2_17_1.yml +0 -485
- data/spec/fixtures/vcr_cassettes/VideoInfo_Providers_Youtube/_available_/with_unavailable_video/_view_count/1_2_3_17_1.yml +0 -485
- data/spec/fixtures/vcr_cassettes/VideoInfo_Providers_Youtube/_available_/with_unavailable_video/_view_count/2_2_2_17_1.yml +0 -54
- data/spec/fixtures/vcr_cassettes/VideoInfo_Providers_Youtube/_available_/with_unavailable_video/_view_count/2_2_3_17_1.yml +0 -54
- data/spec/fixtures/vcr_cassettes/VideoInfo_Providers_Youtube/_available_/with_valid_video/_available_/1_2_1_1_1.yml +0 -56
- data/spec/fixtures/vcr_cassettes/VideoInfo_Providers_Youtube/_available_/with_valid_video/_available_/2_2_1_1_1.yml +0 -125
- data/spec/fixtures/vcr_cassettes/VideoInfo_Providers_Youtube/_available_/with_video_removed_because_of_copyright_claim/_available_/1_2_3_1_1.yml +0 -483
- data/spec/fixtures/vcr_cassettes/VideoInfo_Providers_Youtube/_available_/with_video_removed_because_of_copyright_claim/_available_/1_2_4_1_1.yml +0 -484
- data/spec/fixtures/vcr_cassettes/VideoInfo_Providers_Youtube/_available_/with_video_removed_because_of_copyright_claim/_available_/2_2_3_1_1.yml +0 -54
- data/spec/fixtures/vcr_cassettes/VideoInfo_Providers_Youtube/_available_/with_video_removed_because_of_copyright_claim/_available_/2_2_4_1_1.yml +0 -54
- data/spec/fixtures/vcr_cassettes/VideoInfo_Providers_Youtube/with_full_screen_video_URLs/_date/should_return_date_video_was_posted.yml +0 -178
- data/spec/fixtures/vcr_cassettes/VideoInfo_Providers_Youtube/with_full_screen_video_URLs/_description/1_17_7_1.yml +0 -56
- data/spec/fixtures/vcr_cassettes/VideoInfo_Providers_Youtube/with_full_screen_video_URLs/_description/2_17_7_1.yml +0 -125
- data/spec/fixtures/vcr_cassettes/VideoInfo_Providers_Youtube/with_full_screen_video_URLs/_duration/1_17_9_1.yml +0 -56
- data/spec/fixtures/vcr_cassettes/VideoInfo_Providers_Youtube/with_full_screen_video_URLs/_duration/2_17_9_1.yml +0 -125
- data/spec/fixtures/vcr_cassettes/VideoInfo_Providers_Youtube/with_full_screen_video_URLs/_keywords/1_17_8_1.yml +0 -56
- data/spec/fixtures/vcr_cassettes/VideoInfo_Providers_Youtube/with_full_screen_video_URLs/_keywords/2_17_8_1.yml +0 -125
- data/spec/fixtures/vcr_cassettes/VideoInfo_Providers_Youtube/with_full_screen_video_URLs/_title/1_17_6_1.yml +0 -56
- data/spec/fixtures/vcr_cassettes/VideoInfo_Providers_Youtube/with_full_screen_video_URLs/_title/2_17_6_1.yml +0 -125
- data/spec/fixtures/vcr_cassettes/VideoInfo_Providers_Youtube/with_full_screen_video_URLs/_view_count/1_17_16_1.yml +0 -56
- data/spec/fixtures/vcr_cassettes/VideoInfo_Providers_Youtube/with_full_screen_video_URLs/_view_count/2_17_16_1.yml +0 -125
- data/spec/fixtures/vcr_cassettes/VideoInfo_Providers_Youtube/with_video_mZqGqE0D0n4/_author/1_3_6_1.yml +0 -56
- data/spec/fixtures/vcr_cassettes/VideoInfo_Providers_Youtube/with_video_mZqGqE0D0n4/_author/2_3_6_1.yml +0 -125
- data/spec/fixtures/vcr_cassettes/VideoInfo_Providers_Youtube/with_video_mZqGqE0D0n4/_author_thumbnail/1_3_7_1.yml +0 -56
- data/spec/fixtures/vcr_cassettes/VideoInfo_Providers_Youtube/with_video_mZqGqE0D0n4/_author_thumbnail/2_3_7_1.yml +0 -208
- data/spec/fixtures/vcr_cassettes/VideoInfo_Providers_Youtube/with_video_mZqGqE0D0n4/_author_url/1_3_8_1.yml +0 -56
- data/spec/fixtures/vcr_cassettes/VideoInfo_Providers_Youtube/with_video_mZqGqE0D0n4/_author_url/2_3_8_1.yml +0 -208
- data/spec/fixtures/vcr_cassettes/VideoInfo_Providers_Youtube/with_video_mZqGqE0D0n4/_date/should_return_date_video_was_posted.yml +0 -178
- data/spec/fixtures/vcr_cassettes/VideoInfo_Providers_Youtube/with_video_mZqGqE0D0n4/_description/1_3_10_1.yml +0 -56
- data/spec/fixtures/vcr_cassettes/VideoInfo_Providers_Youtube/with_video_mZqGqE0D0n4/_description/2_3_10_1.yml +0 -125
- data/spec/fixtures/vcr_cassettes/VideoInfo_Providers_Youtube/with_video_mZqGqE0D0n4/_duration/1_3_12_1.yml +0 -56
- data/spec/fixtures/vcr_cassettes/VideoInfo_Providers_Youtube/with_video_mZqGqE0D0n4/_duration/2_3_12_1.yml +0 -125
- data/spec/fixtures/vcr_cassettes/VideoInfo_Providers_Youtube/with_video_mZqGqE0D0n4/_keywords/1_3_11_1.yml +0 -56
- data/spec/fixtures/vcr_cassettes/VideoInfo_Providers_Youtube/with_video_mZqGqE0D0n4/_keywords/2_3_11_1.yml +0 -125
- data/spec/fixtures/vcr_cassettes/VideoInfo_Providers_Youtube/with_video_mZqGqE0D0n4/_title/1_3_9_1.yml +0 -56
- data/spec/fixtures/vcr_cassettes/VideoInfo_Providers_Youtube/with_video_mZqGqE0D0n4/_title/2_3_9_1.yml +0 -125
- data/spec/fixtures/vcr_cassettes/VideoInfo_Providers_Youtube/with_video_mZqGqE0D0n4/_view_count/1_3_20_1.yml +0 -56
- data/spec/fixtures/vcr_cassettes/VideoInfo_Providers_Youtube/with_video_mZqGqE0D0n4/_view_count/2_3_20_1.yml +0 -125
- data/spec/fixtures/vcr_cassettes/VideoInfo_Providers_YoutubePlaylist/_available_/with_invalid_playlist/_available_/1_2_2_1_1.yml +0 -60
- data/spec/fixtures/vcr_cassettes/VideoInfo_Providers_YoutubePlaylist/_available_/with_invalid_playlist/_available_/2_2_2_1_1.yml +0 -60
- data/spec/fixtures/vcr_cassettes/VideoInfo_Providers_YoutubePlaylist/_available_/with_list_url/_available_/1_2_3_1_1.yml +0 -94
- data/spec/fixtures/vcr_cassettes/VideoInfo_Providers_YoutubePlaylist/_available_/with_list_url/_available_/2_2_3_1_1.yml +0 -94
- data/spec/fixtures/vcr_cassettes/VideoInfo_Providers_YoutubePlaylist/_available_/with_valid_playlist/_available_/1_2_1_1_1.yml +0 -94
- data/spec/fixtures/vcr_cassettes/VideoInfo_Providers_YoutubePlaylist/_available_/with_valid_playlist/_available_/2_2_1_1_1.yml +0 -94
- data/spec/fixtures/vcr_cassettes/VideoInfo_Providers_YoutubePlaylist/with_playlist_PL9hW1uS6HUftLdHI6RIsaf/_author/1_3_19_1.yml +0 -105
- data/spec/fixtures/vcr_cassettes/VideoInfo_Providers_YoutubePlaylist/with_playlist_PL9hW1uS6HUftLdHI6RIsaf/_author/2_3_19_1.yml +0 -105
- data/spec/fixtures/vcr_cassettes/VideoInfo_Providers_YoutubePlaylist/with_playlist_PL9hW1uS6HUftLdHI6RIsaf/_author_thumbnail/1_3_20_1.yml +0 -189
- data/spec/fixtures/vcr_cassettes/VideoInfo_Providers_YoutubePlaylist/with_playlist_PL9hW1uS6HUftLdHI6RIsaf/_author_thumbnail/2_3_20_1.yml +0 -189
- data/spec/fixtures/vcr_cassettes/VideoInfo_Providers_YoutubePlaylist/with_playlist_PL9hW1uS6HUftLdHI6RIsaf/_author_url/1_3_21_1.yml +0 -189
- data/spec/fixtures/vcr_cassettes/VideoInfo_Providers_YoutubePlaylist/with_playlist_PL9hW1uS6HUftLdHI6RIsaf/_author_url/2_3_21_1.yml +0 -189
- data/spec/fixtures/vcr_cassettes/VideoInfo_Providers_YoutubePlaylist/with_playlist_PL9hW1uS6HUftLdHI6RIsaf/_description/1_3_7_1.yml +0 -105
- data/spec/fixtures/vcr_cassettes/VideoInfo_Providers_YoutubePlaylist/with_playlist_PL9hW1uS6HUftLdHI6RIsaf/_description/2_3_7_1.yml +0 -105
- data/spec/fixtures/vcr_cassettes/VideoInfo_Providers_YoutubePlaylist/with_playlist_PL9hW1uS6HUftLdHI6RIsaf/_keywords/1_3_8_1.yml +0 -105
- data/spec/fixtures/vcr_cassettes/VideoInfo_Providers_YoutubePlaylist/with_playlist_PL9hW1uS6HUftLdHI6RIsaf/_keywords/2_3_8_1.yml +0 -105
- data/spec/fixtures/vcr_cassettes/VideoInfo_Providers_YoutubePlaylist/with_playlist_PL9hW1uS6HUftLdHI6RIsaf/_thumbnail/1_3_16_1.yml +0 -105
- data/spec/fixtures/vcr_cassettes/VideoInfo_Providers_YoutubePlaylist/with_playlist_PL9hW1uS6HUftLdHI6RIsaf/_thumbnail/2_3_16_1.yml +0 -105
- data/spec/fixtures/vcr_cassettes/VideoInfo_Providers_YoutubePlaylist/with_playlist_PL9hW1uS6HUftLdHI6RIsaf/_thumbnail_large/1_3_15_1.yml +0 -105
- data/spec/fixtures/vcr_cassettes/VideoInfo_Providers_YoutubePlaylist/with_playlist_PL9hW1uS6HUftLdHI6RIsaf/_thumbnail_large/2_3_15_1.yml +0 -105
- data/spec/fixtures/vcr_cassettes/VideoInfo_Providers_YoutubePlaylist/with_playlist_PL9hW1uS6HUftLdHI6RIsaf/_thumbnail_medium/1_3_14_1.yml +0 -105
- data/spec/fixtures/vcr_cassettes/VideoInfo_Providers_YoutubePlaylist/with_playlist_PL9hW1uS6HUftLdHI6RIsaf/_thumbnail_medium/2_3_14_1.yml +0 -105
- data/spec/fixtures/vcr_cassettes/VideoInfo_Providers_YoutubePlaylist/with_playlist_PL9hW1uS6HUftLdHI6RIsaf/_thumbnail_small/1_3_13_1.yml +0 -105
- data/spec/fixtures/vcr_cassettes/VideoInfo_Providers_YoutubePlaylist/with_playlist_PL9hW1uS6HUftLdHI6RIsaf/_thumbnail_small/2_3_13_1.yml +0 -105
- data/spec/fixtures/vcr_cassettes/VideoInfo_Providers_YoutubePlaylist/with_playlist_PL9hW1uS6HUftLdHI6RIsaf/_title/1_3_6_1.yml +0 -105
- data/spec/fixtures/vcr_cassettes/VideoInfo_Providers_YoutubePlaylist/with_playlist_PL9hW1uS6HUftLdHI6RIsaf/_title/2_3_6_1.yml +0 -105
- data/spec/fixtures/vcr_cassettes/VideoInfo_Providers_YoutubePlaylist/with_playlist_PL9hW1uS6HUftLdHI6RIsaf/_videos/returns_list_of_videos_in_playlist.yml +0 -265
- data/spec/fixtures/vcr_cassettes/VideoInfo_Providers_YoutubePlaylist/with_playlist_that_does_not_exist_in_embed_path/_videos/1_4_2_1.yml +0 -54
- data/spec/fixtures/vcr_cassettes/VideoInfo_Providers_YoutubePlaylist/with_playlist_that_does_not_exist_in_embed_path/_videos/2_4_2_1.yml +0 -54
- data/spec/lib/video_info/provider_spec.rb +0 -80
- data/spec/lib/video_info/providers/dailymotion_spec.rb +0 -194
- data/spec/lib/video_info/providers/vimeo_spec.rb +0 -328
- data/spec/lib/video_info/providers/vkontakte_spec.rb +0 -236
- data/spec/lib/video_info/providers/wistia_spec.rb +0 -197
- data/spec/lib/video_info/providers/youtube_playlist_spec.rb +0 -236
- data/spec/lib/video_info/providers/youtube_scraper_spec.rb +0 -12
- data/spec/lib/video_info/providers/youtube_spec.rb +0 -575
- data/spec/lib/video_info_spec.rb +0 -106
- data/spec/spec_helper.rb +0 -26
@@ -1,212 +0,0 @@
|
|
1
|
-
# encoding: utf-8
|
2
|
-
require 'cgi'
|
3
|
-
require 'net/http'
|
4
|
-
|
5
|
-
class VideoInfo
|
6
|
-
module Providers
|
7
|
-
class Vkontakte < Provider
|
8
|
-
attr_accessor :video_owner
|
9
|
-
|
10
|
-
def initialize(url, options = {})
|
11
|
-
super(url, options)
|
12
|
-
@url = @url.strip
|
13
|
-
end
|
14
|
-
|
15
|
-
def self.usable?(url)
|
16
|
-
url = url.strip
|
17
|
-
vkontakte = !!(url =~ %r{\A(http|https):\/\/(vk\.com)|
|
18
|
-
(vkontakte\.ru)\z})
|
19
|
-
valid = !!(url =~ /\A#{URI.regexp(%w[http https])}\z/)
|
20
|
-
vkontakte && valid
|
21
|
-
end
|
22
|
-
|
23
|
-
def provider
|
24
|
-
'Vkontakte'
|
25
|
-
end
|
26
|
-
|
27
|
-
def description
|
28
|
-
content = data[/"desc":"(.*?)",/, 1]
|
29
|
-
CGI.unescape_html(content).gsub(' ', ' ')
|
30
|
-
end
|
31
|
-
|
32
|
-
def keywords
|
33
|
-
nil
|
34
|
-
end
|
35
|
-
|
36
|
-
def width
|
37
|
-
data[/PLAYER_FULL_WIDTH":(\d+)/, 1].to_i
|
38
|
-
end
|
39
|
-
|
40
|
-
def height
|
41
|
-
data[/PLAYER_FULL_HEIGHT":(\d+)/, 1].to_i
|
42
|
-
end
|
43
|
-
|
44
|
-
def author
|
45
|
-
data_after_author_div = data.split('<a class="mem_link" href="')[1]
|
46
|
-
data_after_author_div.split('</a>')[0].split('">')[1]
|
47
|
-
end
|
48
|
-
|
49
|
-
def author_thumbnail
|
50
|
-
split_point = '<img id="mv_author_photo" class="mv_author_photo" src="'
|
51
|
-
get_between(split_point, '">')
|
52
|
-
end
|
53
|
-
|
54
|
-
def author_url
|
55
|
-
split_point = "<div class=\"mv_author_name\">\n <a class=\"mem_link\" href=\""
|
56
|
-
'https://vk.com' + get_between(split_point, '">')
|
57
|
-
end
|
58
|
-
|
59
|
-
def title
|
60
|
-
data[%r{\="mv_title">(.*)<\/div>}, 1].gsub(' | ВКонтакте', '')
|
61
|
-
end
|
62
|
-
|
63
|
-
def view_count
|
64
|
-
data[/mv_views_count.*?(\d+)/, 1].to_i
|
65
|
-
end
|
66
|
-
|
67
|
-
def embed_url
|
68
|
-
iframe_src = data[
|
69
|
-
/iframe\ id=\"video_yt_player\".*src=\"([^\"]*)\".*frameborder=/, 1
|
70
|
-
]
|
71
|
-
if iframe_src
|
72
|
-
# it may be youtube video
|
73
|
-
VideoInfo::Providers::Youtube.new(
|
74
|
-
URI.unescape(iframe_src.delete(/\\/, ''))
|
75
|
-
).embed_url
|
76
|
-
else
|
77
|
-
"//vk.com/video_ext.php?oid=#{video_owner}" \
|
78
|
-
"&id=#{video_id}&hash=#{_data_hash}"
|
79
|
-
end
|
80
|
-
rescue
|
81
|
-
# or rutube video
|
82
|
-
iframe_src
|
83
|
-
end
|
84
|
-
|
85
|
-
def duration
|
86
|
-
data[/"duration":(\d+)/, 1].to_i
|
87
|
-
end
|
88
|
-
|
89
|
-
def available?
|
90
|
-
!%w[403 404 302 401].include?(_response_code) &&
|
91
|
-
!(data =~ /(Ошибка доступа|Access denied)/)
|
92
|
-
end
|
93
|
-
|
94
|
-
def thumbnail_small
|
95
|
-
thumb = data[/"thumb":"(.*?)"/, 1]
|
96
|
-
return thumb.delete('\\') unless thumb.nil?
|
97
|
-
nil
|
98
|
-
end
|
99
|
-
|
100
|
-
def thumbnail_medium
|
101
|
-
thumbnail_small
|
102
|
-
end
|
103
|
-
|
104
|
-
def thumbnail_large
|
105
|
-
nil
|
106
|
-
end
|
107
|
-
|
108
|
-
def thumbnail_maxres
|
109
|
-
nil
|
110
|
-
end
|
111
|
-
|
112
|
-
private
|
113
|
-
|
114
|
-
def _make_request(url, options)
|
115
|
-
request = Net::HTTP::Post.new(url.path)
|
116
|
-
request.add_field 'User-Agent', 'Mozilla/5.0 (Linux; VideoInfo)'
|
117
|
-
request.body = URI.encode_www_form(options)
|
118
|
-
conn = Net::HTTP.new(url.host, url.port)
|
119
|
-
conn.use_ssl = true
|
120
|
-
resp = conn.request(request)
|
121
|
-
resp.body.force_encoding('cp1251').encode('UTF-8', undef: :replace)
|
122
|
-
end
|
123
|
-
|
124
|
-
def _set_data_from_api_impl(api_url)
|
125
|
-
options['act'] = 'show'
|
126
|
-
options['al'] = '1'
|
127
|
-
options['autoplay'] = '0'
|
128
|
-
options['module'] = 'profile'
|
129
|
-
options['video'] = "#{@video_owner}_#{@video_id}"
|
130
|
-
data = _make_request(api_url, options)
|
131
|
-
if data.index('Ошибка доступа')
|
132
|
-
# try second time
|
133
|
-
_make_request(api_url, options)
|
134
|
-
else
|
135
|
-
data
|
136
|
-
end
|
137
|
-
end
|
138
|
-
|
139
|
-
def _error_found?(response)
|
140
|
-
title = response.body[
|
141
|
-
%r{<title>(.*)<\/title>}, 1
|
142
|
-
].force_encoding(
|
143
|
-
'cp1251'
|
144
|
-
).encode(
|
145
|
-
'UTF-8', undef: :replace
|
146
|
-
)
|
147
|
-
!!title.index('Error | VK')
|
148
|
-
end
|
149
|
-
|
150
|
-
def _get_response_code(response)
|
151
|
-
if response.header['location'] == '/'
|
152
|
-
'401'
|
153
|
-
elsif response.code == '302'
|
154
|
-
'302'
|
155
|
-
elsif _error_found? response
|
156
|
-
'403'
|
157
|
-
else
|
158
|
-
response.code
|
159
|
-
end
|
160
|
-
end
|
161
|
-
|
162
|
-
def _response_code
|
163
|
-
check_url = URI.parse(url)
|
164
|
-
req = Net::HTTP::Get.new(check_url)
|
165
|
-
req.add_field('User-Agent', 'Mozilla/5.0 (Linux; VideoInfo)')
|
166
|
-
res = Net::HTTP.start(check_url.host, check_url.port) do |http|
|
167
|
-
http.request(req)
|
168
|
-
end
|
169
|
-
return res.code unless res.code == '302' && !res['location'].nil?
|
170
|
-
self.url = res['location']
|
171
|
-
_response_code
|
172
|
-
end
|
173
|
-
|
174
|
-
def _api_base
|
175
|
-
URI.parse(url).host
|
176
|
-
end
|
177
|
-
|
178
|
-
def _api_path
|
179
|
-
URI.parse(url).path
|
180
|
-
end
|
181
|
-
|
182
|
-
def _data_hash
|
183
|
-
data[/"hash2":"(\w+)/, 1]
|
184
|
-
end
|
185
|
-
|
186
|
-
def _set_video_id_from_url
|
187
|
-
url.gsub(_url_regex) { @video_owner, @video_id = $1.split('_') }
|
188
|
-
end
|
189
|
-
|
190
|
-
def _url_regex
|
191
|
-
%r{(?:vkontakte\.ru\/video|vk\.com\/video
|
192
|
-
|vk\.com\/.*?video)(-?\d+_\d+)}i
|
193
|
-
end
|
194
|
-
|
195
|
-
def _default_iframe_attributes
|
196
|
-
{ allowfullscreen: 'allowfullscreen' }
|
197
|
-
end
|
198
|
-
|
199
|
-
def _default_url_attributes
|
200
|
-
{}
|
201
|
-
end
|
202
|
-
|
203
|
-
def _api_url
|
204
|
-
URI('https://vk.com/al_video.php')
|
205
|
-
end
|
206
|
-
|
207
|
-
def get_between(from_here, to_here)
|
208
|
-
data.split(from_here)[1].split(to_here)[0]
|
209
|
-
end
|
210
|
-
end
|
211
|
-
end
|
212
|
-
end
|
@@ -1,93 +0,0 @@
|
|
1
|
-
---
|
2
|
-
http_interactions:
|
3
|
-
- request:
|
4
|
-
method: get
|
5
|
-
uri: https://api.dailymotion.com/video/inValIdiD
|
6
|
-
body:
|
7
|
-
encoding: US-ASCII
|
8
|
-
string: ''
|
9
|
-
headers:
|
10
|
-
Accept-Encoding:
|
11
|
-
- gzip;q=1.0,deflate;q=0.6,identity;q=0.3
|
12
|
-
Accept:
|
13
|
-
- "*/*"
|
14
|
-
User-Agent:
|
15
|
-
- Ruby
|
16
|
-
response:
|
17
|
-
status:
|
18
|
-
code: 404
|
19
|
-
message: Not Found
|
20
|
-
headers:
|
21
|
-
Server:
|
22
|
-
- DMS/1.0.42
|
23
|
-
X-Dm-Api-Object:
|
24
|
-
- video
|
25
|
-
X-Dm-Backnode:
|
26
|
-
- web-292.adm.dc3.dailymotion.com:80
|
27
|
-
X-Dm-Api-Method:
|
28
|
-
- info
|
29
|
-
Cache-Control:
|
30
|
-
- no-cache, must-revalidate, stale-if-error=900
|
31
|
-
Content-Type:
|
32
|
-
- application/json; charset=UTF-8
|
33
|
-
Access-Control-Expose-Headers:
|
34
|
-
- Date, X-DM-BackNode-Response-Time, X-DM-Edge, X-DM-Cache-Status, X-Served-By,
|
35
|
-
X-DM-BackNode-Response-Time
|
36
|
-
X-Dm-Lb-Ip:
|
37
|
-
- 195.8.215.129
|
38
|
-
Expires:
|
39
|
-
- Fri, 01 Jan 2010 05:00:00 GMT
|
40
|
-
X-Dm-Lb-Name:
|
41
|
-
- lb-10
|
42
|
-
X-Dm-Random-Number:
|
43
|
-
- '6415713'
|
44
|
-
Access-Control-Allow-Origin:
|
45
|
-
- "*"
|
46
|
-
X-Dm-Backnode-Response-Time:
|
47
|
-
- '20'
|
48
|
-
X-Robots-Tag:
|
49
|
-
- noindex
|
50
|
-
X-Frame-Options:
|
51
|
-
- DENY
|
52
|
-
Access-Control-Allow-Headers:
|
53
|
-
- Content-Type, Authorization
|
54
|
-
Access-Control-Allow-Methods:
|
55
|
-
- GET, POST, DELETE
|
56
|
-
X-Dm-Page:
|
57
|
-
- us.rest.rest_api
|
58
|
-
Via:
|
59
|
-
- 1.1 varnish
|
60
|
-
- 1.1 varnish
|
61
|
-
Fastly-Debug-Digest:
|
62
|
-
- d02f485cb1cc8d04e4842ee96ea037a8730d6692b5c01d60c144465f63874988
|
63
|
-
Content-Length:
|
64
|
-
- '206'
|
65
|
-
Accept-Ranges:
|
66
|
-
- bytes
|
67
|
-
Date:
|
68
|
-
- Mon, 27 Mar 2017 21:00:49 GMT
|
69
|
-
Age:
|
70
|
-
- '0'
|
71
|
-
Connection:
|
72
|
-
- keep-alive
|
73
|
-
X-Served-By:
|
74
|
-
- cache-fra1251-FRA, cache-lax8639-LAX
|
75
|
-
X-Cache:
|
76
|
-
- MISS, MISS
|
77
|
-
X-Cache-Hits:
|
78
|
-
- 0, 0
|
79
|
-
X-Timer:
|
80
|
-
- S1490648449.314252,VS0,VE179
|
81
|
-
Vary:
|
82
|
-
- X-DM-EC-Geo-Country
|
83
|
-
X-Dm-Cache-Status:
|
84
|
-
- MISS
|
85
|
-
X-Dm-Edge:
|
86
|
-
- Fastly
|
87
|
-
body:
|
88
|
-
encoding: UTF-8
|
89
|
-
string: '{"error":{"more_info":"https:\/\/developer.dailymotion.com\/api#error-codes","code":404,"message":"Can''t
|
90
|
-
find object video for `id'' parameter","type":"not_found","error_data":{"reason":"object_not_found"}}}'
|
91
|
-
http_version:
|
92
|
-
recorded_at: Mon, 27 Mar 2017 21:00:49 GMT
|
93
|
-
recorded_with: VCR 3.0.3
|
@@ -1,96 +0,0 @@
|
|
1
|
-
---
|
2
|
-
http_interactions:
|
3
|
-
- request:
|
4
|
-
method: get
|
5
|
-
uri: https://api.dailymotion.com/video/x7lni3
|
6
|
-
body:
|
7
|
-
encoding: US-ASCII
|
8
|
-
string: ''
|
9
|
-
headers:
|
10
|
-
Accept-Encoding:
|
11
|
-
- gzip;q=1.0,deflate;q=0.6,identity;q=0.3
|
12
|
-
Accept:
|
13
|
-
- "*/*"
|
14
|
-
User-Agent:
|
15
|
-
- Ruby
|
16
|
-
response:
|
17
|
-
status:
|
18
|
-
code: 200
|
19
|
-
message: OK
|
20
|
-
headers:
|
21
|
-
Server:
|
22
|
-
- DMS/1.0.42
|
23
|
-
X-Dm-Api-Object:
|
24
|
-
- video
|
25
|
-
X-Dm-Backnode:
|
26
|
-
- web-580.adm.dc3.dailymotion.com:80
|
27
|
-
X-Dm-Api-Method:
|
28
|
-
- info
|
29
|
-
Cache-Control:
|
30
|
-
- public, max-age=900, stale-if-error=900
|
31
|
-
Content-Type:
|
32
|
-
- application/json; charset=UTF-8
|
33
|
-
Access-Control-Expose-Headers:
|
34
|
-
- Date, X-DM-BackNode-Response-Time, X-DM-Edge, X-DM-Cache-Status, X-Served-By,
|
35
|
-
X-DM-BackNode-Response-Time
|
36
|
-
X-Dm-Lb-Ip:
|
37
|
-
- 195.8.215.129
|
38
|
-
X-Dm-Tg:
|
39
|
-
- v-x7lni3
|
40
|
-
X-Dm-Lb-Name:
|
41
|
-
- lb-10
|
42
|
-
X-Dm-Random-Number:
|
43
|
-
- '4729952'
|
44
|
-
Access-Control-Allow-Origin:
|
45
|
-
- "*"
|
46
|
-
X-Dm-Backnode-Response-Time:
|
47
|
-
- '18'
|
48
|
-
Etag:
|
49
|
-
- W/"rQeFNlJ5iMPO8gmsSDhiVw-gzip"
|
50
|
-
X-Robots-Tag:
|
51
|
-
- noindex
|
52
|
-
X-Frame-Options:
|
53
|
-
- DENY
|
54
|
-
Last-Modified:
|
55
|
-
- Tue, 19 May 2015 07:03:39 GMT
|
56
|
-
Access-Control-Allow-Headers:
|
57
|
-
- Content-Type, Authorization
|
58
|
-
Access-Control-Allow-Methods:
|
59
|
-
- GET, POST, DELETE
|
60
|
-
X-Dm-Page:
|
61
|
-
- us.rest.rest_api
|
62
|
-
Via:
|
63
|
-
- 1.1 varnish
|
64
|
-
- 1.1 varnish
|
65
|
-
Fastly-Debug-Digest:
|
66
|
-
- a1260d687a65fe813c0737da36a0e6aefc19d36751c69fa71a074a472d8420fe
|
67
|
-
Content-Length:
|
68
|
-
- '103'
|
69
|
-
Accept-Ranges:
|
70
|
-
- bytes
|
71
|
-
Date:
|
72
|
-
- Mon, 27 Mar 2017 21:00:49 GMT
|
73
|
-
Age:
|
74
|
-
- '0'
|
75
|
-
Connection:
|
76
|
-
- keep-alive
|
77
|
-
X-Served-By:
|
78
|
-
- cache-fra1233-FRA, cache-lax8643-LAX
|
79
|
-
X-Cache:
|
80
|
-
- MISS, MISS
|
81
|
-
X-Cache-Hits:
|
82
|
-
- 0, 0
|
83
|
-
X-Timer:
|
84
|
-
- S1490648449.095340,VS0,VE177
|
85
|
-
Vary:
|
86
|
-
- X-DM-EC-Geo-Country, Accept-Encoding
|
87
|
-
X-Dm-Cache-Status:
|
88
|
-
- MISS
|
89
|
-
X-Dm-Edge:
|
90
|
-
- Fastly
|
91
|
-
body:
|
92
|
-
encoding: ASCII-8BIT
|
93
|
-
string: '{"id":"x7lni3","title":"Mario Kart (R\u00e9mi Gaillard)","channel":"fun","owner":"x4r137"}'
|
94
|
-
http_version:
|
95
|
-
recorded_at: Mon, 27 Mar 2017 21:00:49 GMT
|
96
|
-
recorded_with: VCR 3.0.3
|
@@ -1,100 +0,0 @@
|
|
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.7
|
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
|
-
Server:
|
22
|
-
- DMS/1.0.42
|
23
|
-
X-Dm-Api-Object:
|
24
|
-
- video
|
25
|
-
X-Dm-Backnode:
|
26
|
-
- web-520.adm.dc3.dailymotion.com:80
|
27
|
-
X-Dm-Api-Method:
|
28
|
-
- info
|
29
|
-
Cache-Control:
|
30
|
-
- public, max-age=900, stale-if-error=900
|
31
|
-
Content-Type:
|
32
|
-
- application/json; charset=UTF-8
|
33
|
-
Access-Control-Expose-Headers:
|
34
|
-
- Date, X-DM-BackNode-Response-Time, X-DM-Edge, X-DM-Cache-Status, X-Served-By,
|
35
|
-
X-DM-BackNode-Response-Time
|
36
|
-
X-Dm-Lb-Ip:
|
37
|
-
- 195.8.215.129
|
38
|
-
X-Dm-Tg:
|
39
|
-
- v-x7lni3
|
40
|
-
X-Dm-Lb-Name:
|
41
|
-
- lb-08
|
42
|
-
X-Dm-Random-Number:
|
43
|
-
- '1238188'
|
44
|
-
Access-Control-Allow-Origin:
|
45
|
-
- "*"
|
46
|
-
Etag:
|
47
|
-
- W/"rQeFNlJ5iMPO8gmsSDhiVw-gzip"
|
48
|
-
X-Robots-Tag:
|
49
|
-
- noindex
|
50
|
-
X-Frame-Options:
|
51
|
-
- DENY
|
52
|
-
Last-Modified:
|
53
|
-
- Tue, 19 May 2015 07:03:39 GMT
|
54
|
-
Access-Control-Allow-Headers:
|
55
|
-
- Content-Type, Authorization
|
56
|
-
Access-Control-Allow-Methods:
|
57
|
-
- GET, POST, DELETE
|
58
|
-
X-Dm-Page:
|
59
|
-
- us.rest.rest_api
|
60
|
-
Via:
|
61
|
-
- 1.1 varnish
|
62
|
-
- 1.1 varnish
|
63
|
-
Fastly-Debug-Digest:
|
64
|
-
- 2236e0b1525f3241d04a3a531508c8a4d9999d65c6c6ba13ee5490c0a21c6a5e
|
65
|
-
Content-Length:
|
66
|
-
- '492'
|
67
|
-
Accept-Ranges:
|
68
|
-
- bytes
|
69
|
-
Date:
|
70
|
-
- Mon, 27 Mar 2017 21:00:49 GMT
|
71
|
-
Age:
|
72
|
-
- '180'
|
73
|
-
Connection:
|
74
|
-
- keep-alive
|
75
|
-
X-Served-By:
|
76
|
-
- cache-fra1225-FRA, cache-lax8621-LAX
|
77
|
-
X-Cache:
|
78
|
-
- MISS, HIT
|
79
|
-
X-Cache-Hits:
|
80
|
-
- 0, 2
|
81
|
-
X-Timer:
|
82
|
-
- S1490648449.573192,VS0,VE0
|
83
|
-
Vary:
|
84
|
-
- X-DM-EC-Geo-Country, Accept-Encoding
|
85
|
-
X-Dm-Backnode-Response-Time:
|
86
|
-
- '0'
|
87
|
-
X-Dm-Cache-Status:
|
88
|
-
- HIT
|
89
|
-
X-Dm-Edge:
|
90
|
-
- Fastly
|
91
|
-
body:
|
92
|
-
encoding: ASCII-8BIT
|
93
|
-
string: '{"id":"x7lni3","title":"Mario Kart (R\u00e9mi Gaillard)","description":"Super
|
94
|
-
R\u00e9mi Kart est un jeu vid\u00e9o de course d\u00e9velopp\u00e9 et \u00e9dit\u00e9
|
95
|
-
par N''Importe Quoi TV. Sa principale originalit\u00e9 vient de sa r\u00e9alit\u00e9...<br
|
96
|
-
\/>L''aventure continue sur www.nimportequi.com","duration":136,"created_time":1228321771,"url":"http:\/\/www.dailymotion.com\/video\/x7lni3_mario-kart-remi-gaillard_fun","views_total":10318565,"tags":["r\u00e9mi","remi","gaillard","imposteur","imposture","mario","bros","kart","nintendo","jeux"],"thumbnail_url":"http:\/\/s2.dmcdn.net\/BgWxI.jpg","thumbnail_720_url":"http:\/\/s2.dmcdn.net\/BgWxI\/x720-YcV.jpg","owner.url":"http:\/\/www.dailymotion.com\/nqtv","owner.screenname":"R\u00e9mi
|
97
|
-
Gaillard","owner.avatar_60_url":"http:\/\/s2.dmcdn.net\/HN6TP\/60x60-lEL.jpg","thumbnail_240_url":"http:\/\/s2.dmcdn.net\/BgWxI\/x240-b83.jpg","thumbnail_60_url":"http:\/\/s2.dmcdn.net\/BgWxI\/x60-kbf.jpg"}'
|
98
|
-
http_version:
|
99
|
-
recorded_at: Mon, 27 Mar 2017 21:00:49 GMT
|
100
|
-
recorded_with: VCR 3.0.3
|
@@ -1,100 +0,0 @@
|
|
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.7
|
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
|
-
Server:
|
22
|
-
- DMS/1.0.42
|
23
|
-
X-Dm-Api-Object:
|
24
|
-
- video
|
25
|
-
X-Dm-Backnode:
|
26
|
-
- web-520.adm.dc3.dailymotion.com:80
|
27
|
-
X-Dm-Api-Method:
|
28
|
-
- info
|
29
|
-
Cache-Control:
|
30
|
-
- public, max-age=900, stale-if-error=900
|
31
|
-
Content-Type:
|
32
|
-
- application/json; charset=UTF-8
|
33
|
-
Access-Control-Expose-Headers:
|
34
|
-
- Date, X-DM-BackNode-Response-Time, X-DM-Edge, X-DM-Cache-Status, X-Served-By,
|
35
|
-
X-DM-BackNode-Response-Time
|
36
|
-
X-Dm-Lb-Ip:
|
37
|
-
- 195.8.215.129
|
38
|
-
X-Dm-Tg:
|
39
|
-
- v-x7lni3
|
40
|
-
X-Dm-Lb-Name:
|
41
|
-
- lb-08
|
42
|
-
X-Dm-Random-Number:
|
43
|
-
- '1238188'
|
44
|
-
Access-Control-Allow-Origin:
|
45
|
-
- "*"
|
46
|
-
Etag:
|
47
|
-
- W/"rQeFNlJ5iMPO8gmsSDhiVw-gzip"
|
48
|
-
X-Robots-Tag:
|
49
|
-
- noindex
|
50
|
-
X-Frame-Options:
|
51
|
-
- DENY
|
52
|
-
Last-Modified:
|
53
|
-
- Tue, 19 May 2015 07:03:39 GMT
|
54
|
-
Access-Control-Allow-Headers:
|
55
|
-
- Content-Type, Authorization
|
56
|
-
Access-Control-Allow-Methods:
|
57
|
-
- GET, POST, DELETE
|
58
|
-
X-Dm-Page:
|
59
|
-
- us.rest.rest_api
|
60
|
-
Via:
|
61
|
-
- 1.1 varnish
|
62
|
-
- 1.1 varnish
|
63
|
-
Fastly-Debug-Digest:
|
64
|
-
- 2236e0b1525f3241d04a3a531508c8a4d9999d65c6c6ba13ee5490c0a21c6a5e
|
65
|
-
Content-Length:
|
66
|
-
- '492'
|
67
|
-
Accept-Ranges:
|
68
|
-
- bytes
|
69
|
-
Date:
|
70
|
-
- Mon, 27 Mar 2017 21:00:49 GMT
|
71
|
-
Age:
|
72
|
-
- '179'
|
73
|
-
Connection:
|
74
|
-
- keep-alive
|
75
|
-
X-Served-By:
|
76
|
-
- cache-fra1225-FRA, cache-lax8622-LAX
|
77
|
-
X-Cache:
|
78
|
-
- MISS, HIT
|
79
|
-
X-Cache-Hits:
|
80
|
-
- 0, 2
|
81
|
-
X-Timer:
|
82
|
-
- S1490648449.644229,VS0,VE0
|
83
|
-
Vary:
|
84
|
-
- X-DM-EC-Geo-Country, Accept-Encoding
|
85
|
-
X-Dm-Backnode-Response-Time:
|
86
|
-
- '0'
|
87
|
-
X-Dm-Cache-Status:
|
88
|
-
- HIT
|
89
|
-
X-Dm-Edge:
|
90
|
-
- Fastly
|
91
|
-
body:
|
92
|
-
encoding: ASCII-8BIT
|
93
|
-
string: '{"id":"x7lni3","title":"Mario Kart (R\u00e9mi Gaillard)","description":"Super
|
94
|
-
R\u00e9mi Kart est un jeu vid\u00e9o de course d\u00e9velopp\u00e9 et \u00e9dit\u00e9
|
95
|
-
par N''Importe Quoi TV. Sa principale originalit\u00e9 vient de sa r\u00e9alit\u00e9...<br
|
96
|
-
\/>L''aventure continue sur www.nimportequi.com","duration":136,"created_time":1228321771,"url":"http:\/\/www.dailymotion.com\/video\/x7lni3_mario-kart-remi-gaillard_fun","views_total":10318565,"tags":["r\u00e9mi","remi","gaillard","imposteur","imposture","mario","bros","kart","nintendo","jeux"],"thumbnail_url":"http:\/\/s2.dmcdn.net\/BgWxI.jpg","thumbnail_720_url":"http:\/\/s2.dmcdn.net\/BgWxI\/x720-YcV.jpg","owner.url":"http:\/\/www.dailymotion.com\/nqtv","owner.screenname":"R\u00e9mi
|
97
|
-
Gaillard","owner.avatar_60_url":"http:\/\/s2.dmcdn.net\/HN6TP\/60x60-lEL.jpg","thumbnail_240_url":"http:\/\/s2.dmcdn.net\/BgWxI\/x240-b83.jpg","thumbnail_60_url":"http:\/\/s2.dmcdn.net\/BgWxI\/x60-kbf.jpg"}'
|
98
|
-
http_version:
|
99
|
-
recorded_at: Mon, 27 Mar 2017 21:00:49 GMT
|
100
|
-
recorded_with: VCR 3.0.3
|
@@ -1,100 +0,0 @@
|
|
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.7
|
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
|
-
Server:
|
22
|
-
- DMS/1.0.42
|
23
|
-
X-Dm-Api-Object:
|
24
|
-
- video
|
25
|
-
X-Dm-Backnode:
|
26
|
-
- web-520.adm.dc3.dailymotion.com:80
|
27
|
-
X-Dm-Api-Method:
|
28
|
-
- info
|
29
|
-
Cache-Control:
|
30
|
-
- public, max-age=900, stale-if-error=900
|
31
|
-
Content-Type:
|
32
|
-
- application/json; charset=UTF-8
|
33
|
-
Access-Control-Expose-Headers:
|
34
|
-
- Date, X-DM-BackNode-Response-Time, X-DM-Edge, X-DM-Cache-Status, X-Served-By,
|
35
|
-
X-DM-BackNode-Response-Time
|
36
|
-
X-Dm-Lb-Ip:
|
37
|
-
- 195.8.215.129
|
38
|
-
X-Dm-Tg:
|
39
|
-
- v-x7lni3
|
40
|
-
X-Dm-Lb-Name:
|
41
|
-
- lb-08
|
42
|
-
X-Dm-Random-Number:
|
43
|
-
- '1238188'
|
44
|
-
Access-Control-Allow-Origin:
|
45
|
-
- "*"
|
46
|
-
Etag:
|
47
|
-
- W/"rQeFNlJ5iMPO8gmsSDhiVw-gzip"
|
48
|
-
X-Robots-Tag:
|
49
|
-
- noindex
|
50
|
-
X-Frame-Options:
|
51
|
-
- DENY
|
52
|
-
Last-Modified:
|
53
|
-
- Tue, 19 May 2015 07:03:39 GMT
|
54
|
-
Access-Control-Allow-Headers:
|
55
|
-
- Content-Type, Authorization
|
56
|
-
Access-Control-Allow-Methods:
|
57
|
-
- GET, POST, DELETE
|
58
|
-
X-Dm-Page:
|
59
|
-
- us.rest.rest_api
|
60
|
-
Via:
|
61
|
-
- 1.1 varnish
|
62
|
-
- 1.1 varnish
|
63
|
-
Fastly-Debug-Digest:
|
64
|
-
- 2236e0b1525f3241d04a3a531508c8a4d9999d65c6c6ba13ee5490c0a21c6a5e
|
65
|
-
Content-Length:
|
66
|
-
- '492'
|
67
|
-
Accept-Ranges:
|
68
|
-
- bytes
|
69
|
-
Date:
|
70
|
-
- Mon, 27 Mar 2017 21:00:49 GMT
|
71
|
-
Age:
|
72
|
-
- '180'
|
73
|
-
Connection:
|
74
|
-
- keep-alive
|
75
|
-
X-Served-By:
|
76
|
-
- cache-fra1225-FRA, cache-lax8626-LAX
|
77
|
-
X-Cache:
|
78
|
-
- MISS, HIT
|
79
|
-
X-Cache-Hits:
|
80
|
-
- 0, 2
|
81
|
-
X-Timer:
|
82
|
-
- S1490648449.608234,VS0,VE0
|
83
|
-
Vary:
|
84
|
-
- X-DM-EC-Geo-Country, Accept-Encoding
|
85
|
-
X-Dm-Backnode-Response-Time:
|
86
|
-
- '0'
|
87
|
-
X-Dm-Cache-Status:
|
88
|
-
- HIT
|
89
|
-
X-Dm-Edge:
|
90
|
-
- Fastly
|
91
|
-
body:
|
92
|
-
encoding: ASCII-8BIT
|
93
|
-
string: '{"id":"x7lni3","title":"Mario Kart (R\u00e9mi Gaillard)","description":"Super
|
94
|
-
R\u00e9mi Kart est un jeu vid\u00e9o de course d\u00e9velopp\u00e9 et \u00e9dit\u00e9
|
95
|
-
par N''Importe Quoi TV. Sa principale originalit\u00e9 vient de sa r\u00e9alit\u00e9...<br
|
96
|
-
\/>L''aventure continue sur www.nimportequi.com","duration":136,"created_time":1228321771,"url":"http:\/\/www.dailymotion.com\/video\/x7lni3_mario-kart-remi-gaillard_fun","views_total":10318565,"tags":["r\u00e9mi","remi","gaillard","imposteur","imposture","mario","bros","kart","nintendo","jeux"],"thumbnail_url":"http:\/\/s2.dmcdn.net\/BgWxI.jpg","thumbnail_720_url":"http:\/\/s2.dmcdn.net\/BgWxI\/x720-YcV.jpg","owner.url":"http:\/\/www.dailymotion.com\/nqtv","owner.screenname":"R\u00e9mi
|
97
|
-
Gaillard","owner.avatar_60_url":"http:\/\/s2.dmcdn.net\/HN6TP\/60x60-lEL.jpg","thumbnail_240_url":"http:\/\/s2.dmcdn.net\/BgWxI\/x240-b83.jpg","thumbnail_60_url":"http:\/\/s2.dmcdn.net\/BgWxI\/x60-kbf.jpg"}'
|
98
|
-
http_version:
|
99
|
-
recorded_at: Mon, 27 Mar 2017 21:00:49 GMT
|
100
|
-
recorded_with: VCR 3.0.3
|