video_info 2.3.1 → 2.3.2
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/.gitignore +3 -0
- data/lib/video_info/providers/vimeo.rb +1 -1
- data/lib/video_info/version.rb +1 -1
- data/spec/fixtures/vcr_cassettes/VideoInfo_Providers_Dailymotion/_available_/with_This_video_does_not_exist_or_has_been_deleted_/{available_ → _available_}/.yml +12 -19
- data/spec/fixtures/vcr_cassettes/VideoInfo_Providers_Dailymotion/_available_/with_valid_video/{available_ → _available_}/.yml +10 -15
- data/spec/fixtures/vcr_cassettes/VideoInfo_Providers_Dailymotion/with_video_x7lni3/{view_count → _date}/.yml +12 -17
- data/spec/fixtures/vcr_cassettes/VideoInfo_Providers_Dailymotion/with_video_x7lni3/{keywords → _description}/.yml +12 -17
- data/spec/fixtures/vcr_cassettes/VideoInfo_Providers_Dailymotion/with_video_x7lni3/{date → _duration}/.yml +12 -17
- data/spec/fixtures/vcr_cassettes/VideoInfo_Providers_Dailymotion/with_video_x7lni3/{thumbnail_large → _keywords}/.yml +12 -17
- data/spec/fixtures/vcr_cassettes/VideoInfo_Providers_Dailymotion/with_video_x7lni3/_thumbnail_large/.yml +58 -0
- data/spec/fixtures/vcr_cassettes/VideoInfo_Providers_Dailymotion/with_video_x7lni3/_thumbnail_medium/.yml +58 -0
- data/spec/fixtures/vcr_cassettes/VideoInfo_Providers_Dailymotion/with_video_x7lni3/_thumbnail_small/.yml +58 -0
- data/spec/fixtures/vcr_cassettes/VideoInfo_Providers_Dailymotion/with_video_x7lni3/_title/.yml +58 -0
- data/spec/fixtures/vcr_cassettes/VideoInfo_Providers_Dailymotion/with_video_x7lni3/_view_count/.yml +58 -0
- data/spec/fixtures/vcr_cassettes/{VideoInfo_Providers_VimeoPlaylist/_available_/with_valid_playlist/available_ → VideoInfo_Providers_Vimeo/_available_/with_password_required_video/_available_}/.yml +28 -36
- data/spec/fixtures/vcr_cassettes/VideoInfo_Providers_Vimeo/_available_/with_this_video_does_not_exist_video/{available_ → _available_}/.yml +11 -11
- data/spec/fixtures/vcr_cassettes/VideoInfo_Providers_Vimeo/_available_/with_valid_video/{available_ → _available_}/.yml +13 -13
- data/spec/fixtures/vcr_cassettes/VideoInfo_Providers_Vimeo/with_video_898029/_date/.yml +73 -0
- data/spec/fixtures/vcr_cassettes/VideoInfo_Providers_Vimeo/with_video_898029/_description/.yml +73 -0
- data/spec/fixtures/vcr_cassettes/VideoInfo_Providers_Vimeo/with_video_898029/_duration/.yml +73 -0
- data/spec/fixtures/vcr_cassettes/VideoInfo_Providers_Vimeo/with_video_898029/_height/.yml +73 -0
- data/spec/fixtures/vcr_cassettes/VideoInfo_Providers_Vimeo/with_video_898029/_keywords/.yml +73 -0
- data/spec/fixtures/vcr_cassettes/VideoInfo_Providers_Vimeo/with_video_898029/_thumbnail_large/.yml +73 -0
- data/spec/fixtures/vcr_cassettes/VideoInfo_Providers_Vimeo/with_video_898029/_thumbnail_medium/.yml +73 -0
- data/spec/fixtures/vcr_cassettes/VideoInfo_Providers_Vimeo/with_video_898029/_thumbnail_small/.yml +73 -0
- data/spec/fixtures/vcr_cassettes/VideoInfo_Providers_Vimeo/with_video_898029/_title/.yml +73 -0
- data/spec/fixtures/vcr_cassettes/VideoInfo_Providers_Vimeo/with_video_898029/_view_count/.yml +73 -0
- data/spec/fixtures/vcr_cassettes/VideoInfo_Providers_Vimeo/with_video_898029/_width/.yml +73 -0
- data/spec/fixtures/vcr_cassettes/{VideoInfo_Providers_Vimeo/_available_/with_password_required_video/available_ → VideoInfo_Providers_VimeoPlaylist/_available_/with_invalid_playlist/_available_}/.yml +12 -12
- data/spec/fixtures/vcr_cassettes/VideoInfo_Providers_VimeoPlaylist/_available_/with_valid_playlist/_available_/.yml +54 -0
- data/spec/fixtures/vcr_cassettes/VideoInfo_Providers_VimeoPlaylist/with_playlist_1921098/_description/.yml +71 -0
- data/spec/fixtures/vcr_cassettes/VideoInfo_Providers_VimeoPlaylist/with_playlist_1921098/_thumbnail_large/.yml +71 -0
- data/spec/fixtures/vcr_cassettes/VideoInfo_Providers_VimeoPlaylist/with_playlist_1921098/_thumbnail_medium/.yml +71 -0
- data/spec/fixtures/vcr_cassettes/VideoInfo_Providers_VimeoPlaylist/with_playlist_1921098/_thumbnail_small/.yml +71 -0
- data/spec/fixtures/vcr_cassettes/VideoInfo_Providers_VimeoPlaylist/with_playlist_1921098/_title/.yml +71 -0
- data/spec/fixtures/vcr_cassettes/VideoInfo_Providers_VimeoPlaylist/with_playlist_1921098/_videos/.yml +104 -0
- data/spec/fixtures/vcr_cassettes/VideoInfo_Providers_Vkontakte/_available_/with_invalid_video/_available_/.yml +46 -0
- data/spec/fixtures/vcr_cassettes/VideoInfo_Providers_Vkontakte/_available_/with_valid_video/_available_/.yml +1137 -0
- data/spec/fixtures/vcr_cassettes/VideoInfo_Providers_Vkontakte/with_video_video-54799401_165822734/_title/.yml +1363 -0
- data/spec/fixtures/vcr_cassettes/VideoInfo_Providers_Vkontakte/with_video_video39576223_108370515/_description/.yml +1137 -0
- data/spec/fixtures/vcr_cassettes/VideoInfo_Providers_Vkontakte/with_video_video39576223_108370515/_duration/.yml +1137 -0
- data/spec/fixtures/vcr_cassettes/VideoInfo_Providers_Vkontakte/with_video_video39576223_108370515/_embed_code/.yml +1137 -0
- data/spec/fixtures/vcr_cassettes/VideoInfo_Providers_Vkontakte/with_video_video39576223_108370515/_embed_url/.yml +1137 -0
- data/spec/fixtures/vcr_cassettes/VideoInfo_Providers_Vkontakte/with_video_video39576223_108370515/_height/.yml +1137 -0
- data/spec/fixtures/vcr_cassettes/VideoInfo_Providers_Vkontakte/with_video_video39576223_108370515/_keywords/.yml +1137 -0
- data/spec/fixtures/vcr_cassettes/VideoInfo_Providers_Vkontakte/with_video_video39576223_108370515/_title/.yml +1137 -0
- data/spec/fixtures/vcr_cassettes/VideoInfo_Providers_Vkontakte/with_video_video39576223_108370515/_view_count/.yml +1137 -0
- data/spec/fixtures/vcr_cassettes/VideoInfo_Providers_Vkontakte/with_video_video39576223_108370515/_width/.yml +1137 -0
- data/spec/fixtures/vcr_cassettes/VideoInfo_Providers_Youtube/_available_/with_valid_video/{available_ → _available_}/.yml +9 -9
- data/spec/fixtures/vcr_cassettes/VideoInfo_Providers_Youtube/_available_/with_video_is_unavailable_video/{available_ → _available_}/.yml +6 -6
- data/spec/fixtures/vcr_cassettes/VideoInfo_Providers_Youtube/_available_/with_video_no_longer_available_due_to_a_copyright_claim_video/{available_ → _available_}/.yml +6 -6
- data/spec/fixtures/vcr_cassettes/VideoInfo_Providers_Youtube/with_video_mZqGqE0D0n4/_date/.yml +61 -0
- data/spec/fixtures/vcr_cassettes/VideoInfo_Providers_Youtube/with_video_mZqGqE0D0n4/_description/.yml +61 -0
- data/spec/fixtures/vcr_cassettes/VideoInfo_Providers_Youtube/with_video_mZqGqE0D0n4/_duration/.yml +61 -0
- data/spec/fixtures/vcr_cassettes/VideoInfo_Providers_Youtube/with_video_mZqGqE0D0n4/_keywords/.yml +61 -0
- data/spec/fixtures/vcr_cassettes/VideoInfo_Providers_Youtube/with_video_mZqGqE0D0n4/_thumbnail_large/.yml +61 -0
- data/spec/fixtures/vcr_cassettes/VideoInfo_Providers_Youtube/with_video_mZqGqE0D0n4/_thumbnail_medium/.yml +61 -0
- data/spec/fixtures/vcr_cassettes/VideoInfo_Providers_Youtube/with_video_mZqGqE0D0n4/_thumbnail_small/.yml +61 -0
- data/spec/fixtures/vcr_cassettes/VideoInfo_Providers_Youtube/with_video_mZqGqE0D0n4/_title/.yml +61 -0
- data/spec/fixtures/vcr_cassettes/VideoInfo_Providers_Youtube/with_video_mZqGqE0D0n4/_view_count/.yml +61 -0
- data/spec/fixtures/vcr_cassettes/VideoInfo_Providers_YoutubePlaylist/_available_/with_invalid_playlist/{available_ → _available_}/.yml +6 -6
- data/spec/fixtures/vcr_cassettes/VideoInfo_Providers_YoutubePlaylist/_available_/with_valid_playlist/{available_ → _available_}/.yml +9 -9
- data/spec/fixtures/vcr_cassettes/VideoInfo_Providers_YoutubePlaylist/with_playlist_PL0E8117603D70E10A_in_embed_path/_videos/.yml +61 -0
- data/spec/fixtures/vcr_cassettes/{VideoInfo_Providers_VimeoPlaylist/with_playlist_2755718/title → VideoInfo_Providers_YoutubePlaylist/with_playlist_PL9hW1uS6HUftLdHI6RIsaf/_description}/.yml +27 -95
- data/spec/fixtures/vcr_cassettes/{VideoInfo_Providers_VimeoPlaylist/with_playlist_2755718/thumbnail_medium → VideoInfo_Providers_YoutubePlaylist/with_playlist_PL9hW1uS6HUftLdHI6RIsaf/_thumbnail_large}/.yml +31 -97
- data/spec/fixtures/vcr_cassettes/{VideoInfo_Providers_VimeoPlaylist/with_playlist_2755718/thumbnail_small → VideoInfo_Providers_YoutubePlaylist/with_playlist_PL9hW1uS6HUftLdHI6RIsaf/_thumbnail_medium}/.yml +31 -101
- data/spec/fixtures/vcr_cassettes/VideoInfo_Providers_YoutubePlaylist/with_playlist_PL9hW1uS6HUftLdHI6RIsaf/_thumbnail_small/.yml +98 -0
- data/spec/fixtures/vcr_cassettes/VideoInfo_Providers_YoutubePlaylist/with_playlist_PL9hW1uS6HUftLdHI6RIsaf/_title/.yml +98 -0
- data/spec/fixtures/vcr_cassettes/{VideoInfo_Providers_VimeoPlaylist/with_playlist_2755718/description → VideoInfo_Providers_YoutubePlaylist/with_playlist_PL9hW1uS6HUftLdHI6RIsaf/_videos}/.yml +27 -95
- data/spec/lib/video_info/providers/dailymotion_spec.rb +101 -23
- data/spec/lib/video_info/providers/vimeo_playlist_spec.rb +110 -32
- data/spec/lib/video_info/providers/vimeo_spec.rb +134 -29
- data/spec/lib/video_info/providers/vkontakte_spec.rb +95 -21
- data/spec/lib/video_info/providers/youtube_playlist_spec.rb +110 -25
- data/spec/lib/video_info/providers/youtube_spec.rb +206 -47
- data/spec/lib/video_info_spec.rb +20 -20
- data/spec/spec_helper.rb +1 -5
- data/video_info.gemspec +1 -0
- metadata +148 -178
- data/spec/fixtures/vcr_cassettes/VideoInfo_Providers_Dailymotion/_available_/with_video_is_unavailable_video/available_/.yml +0 -46
- data/spec/fixtures/vcr_cassettes/VideoInfo_Providers_Dailymotion/_available_/with_video_no_longer_available_due_to_a_copyright_claim_video/available_/.yml +0 -46
- data/spec/fixtures/vcr_cassettes/VideoInfo_Providers_Dailymotion/with_video_x7lni3/description/.yml +0 -63
- data/spec/fixtures/vcr_cassettes/VideoInfo_Providers_Dailymotion/with_video_x7lni3/duration/.yml +0 -63
- data/spec/fixtures/vcr_cassettes/VideoInfo_Providers_Dailymotion/with_video_x7lni3/thumbnail_medium/.yml +0 -63
- data/spec/fixtures/vcr_cassettes/VideoInfo_Providers_Dailymotion/with_video_x7lni3/thumbnail_small/.yml +0 -63
- data/spec/fixtures/vcr_cassettes/VideoInfo_Providers_Dailymotion/with_video_x7lni3/title/.yml +0 -63
- data/spec/fixtures/vcr_cassettes/VideoInfo_Providers_Vimeo/with_video_898029/date/.yml +0 -76
- data/spec/fixtures/vcr_cassettes/VideoInfo_Providers_Vimeo/with_video_898029/description/.yml +0 -76
- data/spec/fixtures/vcr_cassettes/VideoInfo_Providers_Vimeo/with_video_898029/duration/.yml +0 -76
- data/spec/fixtures/vcr_cassettes/VideoInfo_Providers_Vimeo/with_video_898029/height/.yml +0 -76
- data/spec/fixtures/vcr_cassettes/VideoInfo_Providers_Vimeo/with_video_898029/keywords/.yml +0 -76
- data/spec/fixtures/vcr_cassettes/VideoInfo_Providers_Vimeo/with_video_898029/thumbnail_large/.yml +0 -76
- data/spec/fixtures/vcr_cassettes/VideoInfo_Providers_Vimeo/with_video_898029/thumbnail_medium/.yml +0 -76
- data/spec/fixtures/vcr_cassettes/VideoInfo_Providers_Vimeo/with_video_898029/thumbnail_small/.yml +0 -76
- data/spec/fixtures/vcr_cassettes/VideoInfo_Providers_Vimeo/with_video_898029/title/.yml +0 -76
- data/spec/fixtures/vcr_cassettes/VideoInfo_Providers_Vimeo/with_video_898029/view_count/.yml +0 -76
- data/spec/fixtures/vcr_cassettes/VideoInfo_Providers_Vimeo/with_video_898029/width/.yml +0 -76
- data/spec/fixtures/vcr_cassettes/VideoInfo_Providers_VimeoPlaylist/_available_/with_invalid_playlist/available_/.yml +0 -152
- data/spec/fixtures/vcr_cassettes/VideoInfo_Providers_VimeoPlaylist/with_playlist_2755718/date/.yml +0 -75
- data/spec/fixtures/vcr_cassettes/VideoInfo_Providers_VimeoPlaylist/with_playlist_2755718/duration/.yml +0 -75
- data/spec/fixtures/vcr_cassettes/VideoInfo_Providers_VimeoPlaylist/with_playlist_2755718/height/.yml +0 -71
- data/spec/fixtures/vcr_cassettes/VideoInfo_Providers_VimeoPlaylist/with_playlist_2755718/keywords/.yml +0 -75
- data/spec/fixtures/vcr_cassettes/VideoInfo_Providers_VimeoPlaylist/with_playlist_2755718/thumbnail_large/.yml +0 -168
- data/spec/fixtures/vcr_cassettes/VideoInfo_Providers_VimeoPlaylist/with_playlist_2755718/videos/.yml +0 -202
- data/spec/fixtures/vcr_cassettes/VideoInfo_Providers_VimeoPlaylist/with_playlist_2755718/view_count/.yml +0 -71
- data/spec/fixtures/vcr_cassettes/VideoInfo_Providers_VimeoPlaylist/with_playlist_2755718/width/.yml +0 -71
- data/spec/fixtures/vcr_cassettes/VideoInfo_Providers_Vkontakte/_available_/with_invalid_video/available_/.yml +0 -147
- data/spec/fixtures/vcr_cassettes/VideoInfo_Providers_Vkontakte/_available_/with_valid_video/available_/.yml +0 -1115
- data/spec/fixtures/vcr_cassettes/VideoInfo_Providers_Vkontakte/with_video_39576223_108370515/description/.yml +0 -1139
- data/spec/fixtures/vcr_cassettes/VideoInfo_Providers_Vkontakte/with_video_39576223_108370515/duration/.yml +0 -1139
- data/spec/fixtures/vcr_cassettes/VideoInfo_Providers_Vkontakte/with_video_39576223_108370515/embed_code/.yml +0 -1139
- data/spec/fixtures/vcr_cassettes/VideoInfo_Providers_Vkontakte/with_video_39576223_108370515/embed_url/.yml +0 -1139
- data/spec/fixtures/vcr_cassettes/VideoInfo_Providers_Vkontakte/with_video_39576223_108370515/height/.yml +0 -1139
- data/spec/fixtures/vcr_cassettes/VideoInfo_Providers_Vkontakte/with_video_39576223_108370515/keywords/.yml +0 -1139
- data/spec/fixtures/vcr_cassettes/VideoInfo_Providers_Vkontakte/with_video_39576223_108370515/title/.yml +0 -1139
- data/spec/fixtures/vcr_cassettes/VideoInfo_Providers_Vkontakte/with_video_39576223_108370515/view_count/.yml +0 -1139
- data/spec/fixtures/vcr_cassettes/VideoInfo_Providers_Vkontakte/with_video_39576223_108370515/width/.yml +0 -1139
- data/spec/fixtures/vcr_cassettes/VideoInfo_Providers_Vkontakte/with_video_video-54799401_165822734/title/.yml +0 -1331
- data/spec/fixtures/vcr_cassettes/VideoInfo_Providers_Vkontakte/with_video_video39576223_108370515/description/.yml +0 -1125
- data/spec/fixtures/vcr_cassettes/VideoInfo_Providers_Vkontakte/with_video_video39576223_108370515/duration/.yml +0 -1125
- data/spec/fixtures/vcr_cassettes/VideoInfo_Providers_Vkontakte/with_video_video39576223_108370515/embed_code/.yml +0 -1125
- data/spec/fixtures/vcr_cassettes/VideoInfo_Providers_Vkontakte/with_video_video39576223_108370515/embed_url/.yml +0 -1125
- data/spec/fixtures/vcr_cassettes/VideoInfo_Providers_Vkontakte/with_video_video39576223_108370515/height/.yml +0 -1125
- data/spec/fixtures/vcr_cassettes/VideoInfo_Providers_Vkontakte/with_video_video39576223_108370515/keywords/.yml +0 -1125
- data/spec/fixtures/vcr_cassettes/VideoInfo_Providers_Vkontakte/with_video_video39576223_108370515/title/.yml +0 -1084
- data/spec/fixtures/vcr_cassettes/VideoInfo_Providers_Vkontakte/with_video_video39576223_108370515/view_count/.yml +0 -1125
- data/spec/fixtures/vcr_cassettes/VideoInfo_Providers_Vkontakte/with_video_video39576223_108370515/width/.yml +0 -1125
- data/spec/fixtures/vcr_cassettes/VideoInfo_Providers_Youtube/with_video_mZqGqE0D0n4/date/.yml +0 -61
- data/spec/fixtures/vcr_cassettes/VideoInfo_Providers_Youtube/with_video_mZqGqE0D0n4/description/.yml +0 -61
- data/spec/fixtures/vcr_cassettes/VideoInfo_Providers_Youtube/with_video_mZqGqE0D0n4/duration/.yml +0 -61
- data/spec/fixtures/vcr_cassettes/VideoInfo_Providers_Youtube/with_video_mZqGqE0D0n4/keywords/.yml +0 -63
- data/spec/fixtures/vcr_cassettes/VideoInfo_Providers_Youtube/with_video_mZqGqE0D0n4/thumbnail_large/.yml +0 -61
- data/spec/fixtures/vcr_cassettes/VideoInfo_Providers_Youtube/with_video_mZqGqE0D0n4/thumbnail_medium/.yml +0 -61
- data/spec/fixtures/vcr_cassettes/VideoInfo_Providers_Youtube/with_video_mZqGqE0D0n4/thumbnail_small/.yml +0 -61
- data/spec/fixtures/vcr_cassettes/VideoInfo_Providers_Youtube/with_video_mZqGqE0D0n4/title/.yml +0 -63
- data/spec/fixtures/vcr_cassettes/VideoInfo_Providers_Youtube/with_video_mZqGqE0D0n4/view_count/.yml +0 -61
- data/spec/fixtures/vcr_cassettes/VideoInfo_Providers_YoutubePlaylist/with_playlist_PL0E8117603D70E10A_in_embed_path/videos/.yml +0 -61
- data/spec/fixtures/vcr_cassettes/VideoInfo_Providers_YoutubePlaylist/with_playlist_PL9hW1uS6HUftLdHI6RIsaf/.yml +0 -98
- data/spec/fixtures/vcr_cassettes/VideoInfo_Providers_YoutubePlaylist/with_playlist_PL9hW1uS6HUftLdHI6RIsaf/date/.yml +0 -98
- data/spec/fixtures/vcr_cassettes/VideoInfo_Providers_YoutubePlaylist/with_playlist_PL9hW1uS6HUftLdHI6RIsaf/description/.yml +0 -98
- data/spec/fixtures/vcr_cassettes/VideoInfo_Providers_YoutubePlaylist/with_playlist_PL9hW1uS6HUftLdHI6RIsaf/duration/.yml +0 -98
- data/spec/fixtures/vcr_cassettes/VideoInfo_Providers_YoutubePlaylist/with_playlist_PL9hW1uS6HUftLdHI6RIsaf/keywords/.yml +0 -98
- data/spec/fixtures/vcr_cassettes/VideoInfo_Providers_YoutubePlaylist/with_playlist_PL9hW1uS6HUftLdHI6RIsaf/thumbnail_large/.yml +0 -96
- data/spec/fixtures/vcr_cassettes/VideoInfo_Providers_YoutubePlaylist/with_playlist_PL9hW1uS6HUftLdHI6RIsaf/thumbnail_medium/.yml +0 -96
- data/spec/fixtures/vcr_cassettes/VideoInfo_Providers_YoutubePlaylist/with_playlist_PL9hW1uS6HUftLdHI6RIsaf/thumbnail_small/.yml +0 -98
- data/spec/fixtures/vcr_cassettes/VideoInfo_Providers_YoutubePlaylist/with_playlist_PL9hW1uS6HUftLdHI6RIsaf/title/.yml +0 -98
- data/spec/fixtures/vcr_cassettes/VideoInfo_Providers_YoutubePlaylist/with_playlist_PL9hW1uS6HUftLdHI6RIsaf/videos/.yml +0 -96
- data/spec/fixtures/vcr_cassettes/VideoInfo_Providers_YoutubePlaylist/with_playlist_PL9hW1uS6HUftLdHI6RIsaf/view_count/.yml +0 -98
@@ -0,0 +1,58 @@
|
|
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,thumbnail_240_url,thumbnail_60_url
|
6
|
+
body:
|
7
|
+
encoding: US-ASCII
|
8
|
+
string: ''
|
9
|
+
headers:
|
10
|
+
User-Agent:
|
11
|
+
- VideoInfo/2.3.1
|
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-Backnode:
|
24
|
+
- web-130.adm.dailymotion.com:80
|
25
|
+
Vary:
|
26
|
+
- Authorization,Accept-Encoding
|
27
|
+
Cache-Control:
|
28
|
+
- private, max-age=900
|
29
|
+
Content-Type:
|
30
|
+
- application/json
|
31
|
+
P3p:
|
32
|
+
- policyref="http://www.dailymotion.com/w3c/p3p.xml", CP="IDC DSP CURa ADMa
|
33
|
+
DEVa TAIa OUR BUS IND UNI COM NAV INT"
|
34
|
+
Date:
|
35
|
+
- Wed, 29 Oct 2014 20:36:05 GMT
|
36
|
+
X-Dm-Lb:
|
37
|
+
- 195.8.215.129
|
38
|
+
Access-Control-Allow-Origin:
|
39
|
+
- "*"
|
40
|
+
Etag:
|
41
|
+
- W/"O1DJzTYSf9K1Wvn1OkaB4Q"
|
42
|
+
X-Response-Time:
|
43
|
+
- 0.050879 seconds
|
44
|
+
Last-Modified:
|
45
|
+
- Sat, 06 Jul 2013 19:32:30 GMT
|
46
|
+
X-Dm-Page:
|
47
|
+
- ch-fr.rest.rest_api
|
48
|
+
Content-Length:
|
49
|
+
- '441'
|
50
|
+
body:
|
51
|
+
encoding: UTF-8
|
52
|
+
string: '{"id":"x7lni3","title":"Mario Kart (R\u00e9mi Gaillard)","description":"Super
|
53
|
+
R\u00e9mi Kart est un jeu vid\u00e9o de course d\u00e9velopp\u00e9 et \u00e9dit\u00e9
|
54
|
+
par N''Importe Quoi TV. Sa principale originalit\u00e9 vient de sa r\u00e9alit\u00e9...<br
|
55
|
+
\/>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":10248384,"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","thumbnail_240_url":"http:\/\/s2.dmcdn.net\/BgWxI\/x240-b83.jpg","thumbnail_60_url":"http:\/\/s2.dmcdn.net\/BgWxI\/x60-kbf.jpg"}'
|
56
|
+
http_version:
|
57
|
+
recorded_at: Wed, 29 Oct 2014 20:36:05 GMT
|
58
|
+
recorded_with: VCR 2.9.3
|
@@ -0,0 +1,58 @@
|
|
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,thumbnail_240_url,thumbnail_60_url
|
6
|
+
body:
|
7
|
+
encoding: US-ASCII
|
8
|
+
string: ''
|
9
|
+
headers:
|
10
|
+
User-Agent:
|
11
|
+
- VideoInfo/2.3.1
|
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-Backnode:
|
24
|
+
- web-130.adm.dailymotion.com:80
|
25
|
+
Vary:
|
26
|
+
- Authorization,Accept-Encoding
|
27
|
+
Cache-Control:
|
28
|
+
- private, max-age=900
|
29
|
+
Content-Type:
|
30
|
+
- application/json
|
31
|
+
P3p:
|
32
|
+
- policyref="http://www.dailymotion.com/w3c/p3p.xml", CP="IDC DSP CURa ADMa
|
33
|
+
DEVa TAIa OUR BUS IND UNI COM NAV INT"
|
34
|
+
Date:
|
35
|
+
- Wed, 29 Oct 2014 20:36:05 GMT
|
36
|
+
X-Dm-Lb:
|
37
|
+
- 195.8.215.129
|
38
|
+
Access-Control-Allow-Origin:
|
39
|
+
- "*"
|
40
|
+
Etag:
|
41
|
+
- W/"O1DJzTYSf9K1Wvn1OkaB4Q"
|
42
|
+
X-Response-Time:
|
43
|
+
- 0.065975 seconds
|
44
|
+
Last-Modified:
|
45
|
+
- Sat, 06 Jul 2013 19:32:30 GMT
|
46
|
+
X-Dm-Page:
|
47
|
+
- ch-fr.rest.rest_api
|
48
|
+
Content-Length:
|
49
|
+
- '441'
|
50
|
+
body:
|
51
|
+
encoding: UTF-8
|
52
|
+
string: '{"id":"x7lni3","title":"Mario Kart (R\u00e9mi Gaillard)","description":"Super
|
53
|
+
R\u00e9mi Kart est un jeu vid\u00e9o de course d\u00e9velopp\u00e9 et \u00e9dit\u00e9
|
54
|
+
par N''Importe Quoi TV. Sa principale originalit\u00e9 vient de sa r\u00e9alit\u00e9...<br
|
55
|
+
\/>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":10248384,"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","thumbnail_240_url":"http:\/\/s2.dmcdn.net\/BgWxI\/x240-b83.jpg","thumbnail_60_url":"http:\/\/s2.dmcdn.net\/BgWxI\/x60-kbf.jpg"}'
|
56
|
+
http_version:
|
57
|
+
recorded_at: Wed, 29 Oct 2014 20:36:05 GMT
|
58
|
+
recorded_with: VCR 2.9.3
|
data/spec/fixtures/vcr_cassettes/VideoInfo_Providers_Dailymotion/with_video_x7lni3/_title/.yml
ADDED
@@ -0,0 +1,58 @@
|
|
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,thumbnail_240_url,thumbnail_60_url
|
6
|
+
body:
|
7
|
+
encoding: US-ASCII
|
8
|
+
string: ''
|
9
|
+
headers:
|
10
|
+
User-Agent:
|
11
|
+
- VideoInfo/2.3.1
|
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-Backnode:
|
24
|
+
- web-023.adm.dailymotion.com:80
|
25
|
+
Vary:
|
26
|
+
- Authorization,Accept-Encoding
|
27
|
+
Cache-Control:
|
28
|
+
- private, max-age=900
|
29
|
+
Content-Type:
|
30
|
+
- application/json
|
31
|
+
P3p:
|
32
|
+
- policyref="http://www.dailymotion.com/w3c/p3p.xml", CP="IDC DSP CURa ADMa
|
33
|
+
DEVa TAIa OUR BUS IND UNI COM NAV INT"
|
34
|
+
Date:
|
35
|
+
- Wed, 29 Oct 2014 20:36:04 GMT
|
36
|
+
X-Dm-Lb:
|
37
|
+
- 195.8.215.129
|
38
|
+
Access-Control-Allow-Origin:
|
39
|
+
- "*"
|
40
|
+
Etag:
|
41
|
+
- W/"O1DJzTYSf9K1Wvn1OkaB4Q"
|
42
|
+
X-Response-Time:
|
43
|
+
- 0.060334 seconds
|
44
|
+
Last-Modified:
|
45
|
+
- Sat, 06 Jul 2013 19:32:30 GMT
|
46
|
+
X-Dm-Page:
|
47
|
+
- ch-fr.rest.rest_api
|
48
|
+
Content-Length:
|
49
|
+
- '441'
|
50
|
+
body:
|
51
|
+
encoding: UTF-8
|
52
|
+
string: '{"id":"x7lni3","title":"Mario Kart (R\u00e9mi Gaillard)","description":"Super
|
53
|
+
R\u00e9mi Kart est un jeu vid\u00e9o de course d\u00e9velopp\u00e9 et \u00e9dit\u00e9
|
54
|
+
par N''Importe Quoi TV. Sa principale originalit\u00e9 vient de sa r\u00e9alit\u00e9...<br
|
55
|
+
\/>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":10248384,"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","thumbnail_240_url":"http:\/\/s2.dmcdn.net\/BgWxI\/x240-b83.jpg","thumbnail_60_url":"http:\/\/s2.dmcdn.net\/BgWxI\/x60-kbf.jpg"}'
|
56
|
+
http_version:
|
57
|
+
recorded_at: Wed, 29 Oct 2014 20:36:04 GMT
|
58
|
+
recorded_with: VCR 2.9.3
|
data/spec/fixtures/vcr_cassettes/VideoInfo_Providers_Dailymotion/with_video_x7lni3/_view_count/.yml
ADDED
@@ -0,0 +1,58 @@
|
|
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,thumbnail_240_url,thumbnail_60_url
|
6
|
+
body:
|
7
|
+
encoding: US-ASCII
|
8
|
+
string: ''
|
9
|
+
headers:
|
10
|
+
User-Agent:
|
11
|
+
- VideoInfo/2.3.1
|
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-Backnode:
|
24
|
+
- web-047.adm.dailymotion.com:80
|
25
|
+
Vary:
|
26
|
+
- Authorization,Accept-Encoding
|
27
|
+
Cache-Control:
|
28
|
+
- private, max-age=900
|
29
|
+
Content-Type:
|
30
|
+
- application/json
|
31
|
+
P3p:
|
32
|
+
- policyref="http://www.dailymotion.com/w3c/p3p.xml", CP="IDC DSP CURa ADMa
|
33
|
+
DEVa TAIa OUR BUS IND UNI COM NAV INT"
|
34
|
+
Date:
|
35
|
+
- Wed, 29 Oct 2014 20:36:06 GMT
|
36
|
+
X-Dm-Lb:
|
37
|
+
- 195.8.215.129
|
38
|
+
Access-Control-Allow-Origin:
|
39
|
+
- "*"
|
40
|
+
Etag:
|
41
|
+
- W/"O1DJzTYSf9K1Wvn1OkaB4Q"
|
42
|
+
X-Response-Time:
|
43
|
+
- 0.051616 seconds
|
44
|
+
Last-Modified:
|
45
|
+
- Sat, 06 Jul 2013 19:32:30 GMT
|
46
|
+
X-Dm-Page:
|
47
|
+
- ch-fr.rest.rest_api
|
48
|
+
Content-Length:
|
49
|
+
- '441'
|
50
|
+
body:
|
51
|
+
encoding: UTF-8
|
52
|
+
string: '{"id":"x7lni3","title":"Mario Kart (R\u00e9mi Gaillard)","description":"Super
|
53
|
+
R\u00e9mi Kart est un jeu vid\u00e9o de course d\u00e9velopp\u00e9 et \u00e9dit\u00e9
|
54
|
+
par N''Importe Quoi TV. Sa principale originalit\u00e9 vient de sa r\u00e9alit\u00e9...<br
|
55
|
+
\/>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":10248384,"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","thumbnail_240_url":"http:\/\/s2.dmcdn.net\/BgWxI\/x240-b83.jpg","thumbnail_60_url":"http:\/\/s2.dmcdn.net\/BgWxI\/x60-kbf.jpg"}'
|
56
|
+
http_version:
|
57
|
+
recorded_at: Wed, 29 Oct 2014 20:36:06 GMT
|
58
|
+
recorded_with: VCR 2.9.3
|
@@ -2,13 +2,13 @@
|
|
2
2
|
http_interactions:
|
3
3
|
- request:
|
4
4
|
method: head
|
5
|
-
uri: http://vimeo.com/api/v2/video/
|
5
|
+
uri: http://vimeo.com/api/v2/video/54189727.json
|
6
6
|
body:
|
7
7
|
encoding: US-ASCII
|
8
8
|
string: ''
|
9
9
|
headers:
|
10
10
|
Accept:
|
11
|
-
-
|
11
|
+
- "*/*"
|
12
12
|
User-Agent:
|
13
13
|
- Ruby
|
14
14
|
response:
|
@@ -17,29 +17,25 @@ http_interactions:
|
|
17
17
|
message: OK
|
18
18
|
headers:
|
19
19
|
Date:
|
20
|
-
-
|
20
|
+
- Wed, 04 Jun 2014 20:08:06 GMT
|
21
21
|
Server:
|
22
22
|
- Apache
|
23
23
|
Access-Control-Allow-Origin:
|
24
|
-
-
|
24
|
+
- "*"
|
25
25
|
X-Ratelimit-Limit:
|
26
26
|
- '3600'
|
27
27
|
X-Ratelimit-Remaining:
|
28
|
-
- '
|
28
|
+
- '3590'
|
29
29
|
X-Ratelimit-Reset:
|
30
|
-
- '
|
30
|
+
- '1401915849'
|
31
31
|
Cache-Control:
|
32
32
|
- max-age=60
|
33
33
|
Expires:
|
34
|
-
-
|
34
|
+
- Wed, 04 Jun 2014 20:09:06 GMT
|
35
35
|
Last-Modified:
|
36
|
-
-
|
36
|
+
- Wed, 04 Jun 2014 19:15:10 GMT
|
37
37
|
Etag:
|
38
|
-
- '"
|
39
|
-
X-Ua-Compatible:
|
40
|
-
- IE=edge
|
41
|
-
X-Dns-Prefetch-Control:
|
42
|
-
- 'on'
|
38
|
+
- '"b79934c3583f053e6f50c8de2084faca"'
|
43
39
|
Vary:
|
44
40
|
- Accept-Encoding
|
45
41
|
Cneonction:
|
@@ -50,56 +46,52 @@ http_interactions:
|
|
50
46
|
encoding: UTF-8
|
51
47
|
string: ''
|
52
48
|
http_version:
|
53
|
-
recorded_at:
|
49
|
+
recorded_at: Wed, 04 Jun 2014 20:08:06 GMT
|
54
50
|
- request:
|
55
51
|
method: head
|
56
|
-
uri: http://vimeo.com/api/v2/
|
52
|
+
uri: http://vimeo.com/api/v2/video/74636562.json
|
57
53
|
body:
|
58
54
|
encoding: US-ASCII
|
59
55
|
string: ''
|
60
56
|
headers:
|
61
57
|
Accept:
|
62
|
-
-
|
58
|
+
- "*/*"
|
63
59
|
User-Agent:
|
64
60
|
- Ruby
|
65
61
|
response:
|
66
62
|
status:
|
67
|
-
code:
|
68
|
-
message:
|
63
|
+
code: 404
|
64
|
+
message: Not Found
|
69
65
|
headers:
|
70
66
|
Date:
|
71
|
-
-
|
67
|
+
- Wed, 29 Oct 2014 20:50:36 GMT
|
72
68
|
Server:
|
73
69
|
- Apache
|
74
70
|
Access-Control-Allow-Origin:
|
75
|
-
-
|
71
|
+
- "*"
|
72
|
+
X-Content-Type-Options:
|
73
|
+
- nosniff
|
74
|
+
X-Frame-Options:
|
75
|
+
- deny
|
76
76
|
X-Ratelimit-Limit:
|
77
77
|
- '3600'
|
78
78
|
X-Ratelimit-Remaining:
|
79
|
-
- '
|
79
|
+
- '3578'
|
80
80
|
X-Ratelimit-Reset:
|
81
|
-
- '
|
81
|
+
- '1414618566'
|
82
82
|
Cache-Control:
|
83
|
-
- max-age=
|
83
|
+
- max-age=300, must-revalidate
|
84
84
|
Expires:
|
85
|
-
-
|
86
|
-
Last-Modified:
|
87
|
-
- Fri, 28 Feb 2014 23:19:45 GMT
|
88
|
-
Etag:
|
89
|
-
- '"066770d7b5e5c4a8ac2e5d2178671420"'
|
90
|
-
X-Ua-Compatible:
|
91
|
-
- IE=edge
|
92
|
-
X-Dns-Prefetch-Control:
|
93
|
-
- 'on'
|
85
|
+
- Wed, 29 Oct 2014 20:55:36 GMT
|
94
86
|
Vary:
|
95
87
|
- Accept-Encoding
|
96
|
-
|
88
|
+
Connection:
|
97
89
|
- close
|
98
90
|
Content-Type:
|
99
|
-
-
|
91
|
+
- text/html; charset=UTF-8
|
100
92
|
body:
|
101
93
|
encoding: UTF-8
|
102
94
|
string: ''
|
103
95
|
http_version:
|
104
|
-
recorded_at:
|
105
|
-
recorded_with: VCR 2.
|
96
|
+
recorded_at: Wed, 29 Oct 2014 20:50:36 GMT
|
97
|
+
recorded_with: VCR 2.9.3
|
@@ -17,28 +17,28 @@ http_interactions:
|
|
17
17
|
message: Not Found
|
18
18
|
headers:
|
19
19
|
Date:
|
20
|
-
- Wed,
|
20
|
+
- Wed, 29 Oct 2014 20:36:08 GMT
|
21
21
|
Server:
|
22
22
|
- Apache
|
23
23
|
Access-Control-Allow-Origin:
|
24
24
|
- "*"
|
25
|
+
X-Content-Type-Options:
|
26
|
+
- nosniff
|
27
|
+
X-Frame-Options:
|
28
|
+
- deny
|
25
29
|
X-Ratelimit-Limit:
|
26
30
|
- '3600'
|
27
31
|
X-Ratelimit-Remaining:
|
28
|
-
- '
|
32
|
+
- '3596'
|
29
33
|
X-Ratelimit-Reset:
|
30
|
-
- '
|
34
|
+
- '1414618566'
|
31
35
|
Cache-Control:
|
32
36
|
- max-age=300, must-revalidate
|
33
37
|
Expires:
|
34
|
-
- Wed,
|
35
|
-
X-Ua-Compatible:
|
36
|
-
- IE=edge
|
37
|
-
X-Dns-Prefetch-Control:
|
38
|
-
- 'on'
|
38
|
+
- Wed, 29 Oct 2014 20:41:08 GMT
|
39
39
|
Vary:
|
40
40
|
- Accept-Encoding
|
41
|
-
|
41
|
+
Connection:
|
42
42
|
- close
|
43
43
|
Content-Type:
|
44
44
|
- text/html; charset=UTF-8
|
@@ -46,5 +46,5 @@ http_interactions:
|
|
46
46
|
encoding: UTF-8
|
47
47
|
string: ''
|
48
48
|
http_version:
|
49
|
-
recorded_at: Wed,
|
50
|
-
recorded_with: VCR 2.
|
49
|
+
recorded_at: Wed, 29 Oct 2014 20:36:08 GMT
|
50
|
+
recorded_with: VCR 2.9.3
|
@@ -17,32 +17,32 @@ http_interactions:
|
|
17
17
|
message: OK
|
18
18
|
headers:
|
19
19
|
Date:
|
20
|
-
- Wed,
|
20
|
+
- Wed, 29 Oct 2014 20:36:08 GMT
|
21
21
|
Server:
|
22
22
|
- Apache
|
23
23
|
Access-Control-Allow-Origin:
|
24
24
|
- "*"
|
25
|
+
X-Content-Type-Options:
|
26
|
+
- nosniff
|
27
|
+
X-Frame-Options:
|
28
|
+
- deny
|
25
29
|
X-Ratelimit-Limit:
|
26
30
|
- '3600'
|
27
31
|
X-Ratelimit-Remaining:
|
28
|
-
- '
|
32
|
+
- '3597'
|
29
33
|
X-Ratelimit-Reset:
|
30
|
-
- '
|
34
|
+
- '1414618566'
|
31
35
|
Cache-Control:
|
32
36
|
- max-age=60
|
33
37
|
Expires:
|
34
|
-
- Wed,
|
38
|
+
- Wed, 29 Oct 2014 20:37:08 GMT
|
35
39
|
Last-Modified:
|
36
|
-
-
|
40
|
+
- Tue, 28 Oct 2014 02:13:21 GMT
|
37
41
|
Etag:
|
38
|
-
- "
|
39
|
-
X-Ua-Compatible:
|
40
|
-
- IE=edge
|
41
|
-
X-Dns-Prefetch-Control:
|
42
|
-
- 'on'
|
42
|
+
- '"34a6900f26a7c1eefc21a9638b65ac2d"'
|
43
43
|
Vary:
|
44
44
|
- Accept-Encoding
|
45
|
-
|
45
|
+
Connection:
|
46
46
|
- close
|
47
47
|
Content-Type:
|
48
48
|
- application/json
|
@@ -50,5 +50,5 @@ http_interactions:
|
|
50
50
|
encoding: UTF-8
|
51
51
|
string: ''
|
52
52
|
http_version:
|
53
|
-
recorded_at: Wed,
|
54
|
-
recorded_with: VCR 2.
|
53
|
+
recorded_at: Wed, 29 Oct 2014 20:36:08 GMT
|
54
|
+
recorded_with: VCR 2.9.3
|