video_info 2.4.2 → 2.5.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/.gitignore +1 -0
- data/.travis.yml +1 -3
- data/README.md +33 -2
- data/lib/video_info.rb +44 -2
- data/lib/video_info/provider.rb +21 -4
- data/lib/video_info/providers/vimeo.rb +81 -9
- data/lib/video_info/providers/vimeoplaylist.rb +14 -13
- data/lib/video_info/providers/vkontakte.rb +1 -1
- data/lib/video_info/providers/youtube.rb +20 -51
- data/lib/video_info/providers/youtube_api.rb +72 -0
- data/lib/video_info/providers/youtube_scraper.rb +99 -0
- data/lib/video_info/providers/youtubeplaylist.rb +28 -29
- data/lib/video_info/providers/youtubeplaylist_api.rb +57 -0
- data/lib/video_info/providers/youtubeplaylist_scraper.rb +47 -0
- data/lib/video_info/version.rb +1 -1
- data/spec/lib/video_info/providers/vimeo_playlist_spec.rb +19 -18
- data/spec/lib/video_info/providers/vimeo_spec.rb +45 -21
- data/spec/lib/video_info/providers/vkontakte_spec.rb +2 -2
- data/spec/lib/video_info/providers/youtube_api_spec.rb +392 -0
- data/spec/lib/video_info/providers/youtube_playlist_api_spec.rb +173 -0
- data/spec/lib/video_info/providers/youtube_playlist_spec.rb +6 -2
- data/spec/lib/video_info/providers/youtube_spec.rb +83 -6
- data/spec/lib/video_info_spec.rb +30 -0
- data/spec/spec_helper.rb +2 -0
- data/video_info.gemspec +4 -1
- metadata +55 -196
- data/spec/fixtures/vcr_cassettes/VideoInfo_Providers_Dailymotion/_available_/with_This_video_does_not_exist_or_has_been_deleted_/_available_/.yml +0 -60
- data/spec/fixtures/vcr_cassettes/VideoInfo_Providers_Dailymotion/_available_/with_valid_video/_available_/.yml +0 -59
- data/spec/fixtures/vcr_cassettes/VideoInfo_Providers_Dailymotion/with_video_x7lni3/_date/.yml +0 -62
- data/spec/fixtures/vcr_cassettes/VideoInfo_Providers_Dailymotion/with_video_x7lni3/_description/.yml +0 -62
- data/spec/fixtures/vcr_cassettes/VideoInfo_Providers_Dailymotion/with_video_x7lni3/_duration/.yml +0 -62
- data/spec/fixtures/vcr_cassettes/VideoInfo_Providers_Dailymotion/with_video_x7lni3/_keywords/.yml +0 -62
- data/spec/fixtures/vcr_cassettes/VideoInfo_Providers_Dailymotion/with_video_x7lni3/_thumbnail_large/.yml +0 -62
- data/spec/fixtures/vcr_cassettes/VideoInfo_Providers_Dailymotion/with_video_x7lni3/_thumbnail_medium/.yml +0 -62
- data/spec/fixtures/vcr_cassettes/VideoInfo_Providers_Dailymotion/with_video_x7lni3/_thumbnail_small/.yml +0 -62
- data/spec/fixtures/vcr_cassettes/VideoInfo_Providers_Dailymotion/with_video_x7lni3/_title/.yml +0 -62
- data/spec/fixtures/vcr_cassettes/VideoInfo_Providers_Dailymotion/with_video_x7lni3/_view_count/.yml +0 -62
- data/spec/fixtures/vcr_cassettes/VideoInfo_Providers_Vimeo/_available_/with_password_required_video/_available_/.yml +0 -119
- data/spec/fixtures/vcr_cassettes/VideoInfo_Providers_Vimeo/_available_/with_this_video_does_not_exist_video/_available_/.yml +0 -72
- data/spec/fixtures/vcr_cassettes/VideoInfo_Providers_Vimeo/_available_/with_valid_video/_available_/.yml +0 -76
- data/spec/fixtures/vcr_cassettes/VideoInfo_Providers_Vimeo/with_video_898029/_date/.yml +0 -83
- data/spec/fixtures/vcr_cassettes/VideoInfo_Providers_Vimeo/with_video_898029/_description/.yml +0 -83
- data/spec/fixtures/vcr_cassettes/VideoInfo_Providers_Vimeo/with_video_898029/_duration/.yml +0 -83
- data/spec/fixtures/vcr_cassettes/VideoInfo_Providers_Vimeo/with_video_898029/_height/.yml +0 -83
- data/spec/fixtures/vcr_cassettes/VideoInfo_Providers_Vimeo/with_video_898029/_keywords/.yml +0 -83
- data/spec/fixtures/vcr_cassettes/VideoInfo_Providers_Vimeo/with_video_898029/_thumbnail_large/.yml +0 -83
- data/spec/fixtures/vcr_cassettes/VideoInfo_Providers_Vimeo/with_video_898029/_thumbnail_medium/.yml +0 -83
- data/spec/fixtures/vcr_cassettes/VideoInfo_Providers_Vimeo/with_video_898029/_thumbnail_small/.yml +0 -83
- data/spec/fixtures/vcr_cassettes/VideoInfo_Providers_Vimeo/with_video_898029/_title/.yml +0 -83
- data/spec/fixtures/vcr_cassettes/VideoInfo_Providers_Vimeo/with_video_898029/_view_count/.yml +0 -83
- data/spec/fixtures/vcr_cassettes/VideoInfo_Providers_Vimeo/with_video_898029/_width/.yml +0 -83
- data/spec/fixtures/vcr_cassettes/VideoInfo_Providers_VimeoPlaylist/_available_/with_invalid_playlist/_available_/.yml +0 -72
- data/spec/fixtures/vcr_cassettes/VideoInfo_Providers_VimeoPlaylist/_available_/with_valid_playlist/_available_/.yml +0 -76
- data/spec/fixtures/vcr_cassettes/VideoInfo_Providers_VimeoPlaylist/with_playlist_1921098/_description/.yml +0 -81
- data/spec/fixtures/vcr_cassettes/VideoInfo_Providers_VimeoPlaylist/with_playlist_1921098/_thumbnail_large/.yml +0 -81
- data/spec/fixtures/vcr_cassettes/VideoInfo_Providers_VimeoPlaylist/with_playlist_1921098/_thumbnail_medium/.yml +0 -81
- data/spec/fixtures/vcr_cassettes/VideoInfo_Providers_VimeoPlaylist/with_playlist_1921098/_thumbnail_small/.yml +0 -81
- data/spec/fixtures/vcr_cassettes/VideoInfo_Providers_VimeoPlaylist/with_playlist_1921098/_title/.yml +0 -81
- data/spec/fixtures/vcr_cassettes/VideoInfo_Providers_VimeoPlaylist/with_playlist_1921098/_videos/.yml +0 -114
- data/spec/fixtures/vcr_cassettes/VideoInfo_Providers_Vkontakte/_available_/with_hashes/available_/.yml +0 -2255
- data/spec/fixtures/vcr_cassettes/VideoInfo_Providers_Vkontakte/_available_/with_invalid_video/available_/.yml +0 -46
- data/spec/fixtures/vcr_cassettes/VideoInfo_Providers_Vkontakte/_available_/with_private_video/available_/.yml +0 -382
- data/spec/fixtures/vcr_cassettes/VideoInfo_Providers_Vkontakte/_available_/with_redirect/available_/.yml +0 -210
- data/spec/fixtures/vcr_cassettes/VideoInfo_Providers_Vkontakte/_available_/with_redirect_to_main_page_for_auth/available_/.yml +0 -46
- data/spec/fixtures/vcr_cassettes/VideoInfo_Providers_Vkontakte/_available_/with_valid_video/available_/.yml +0 -1657
- data/spec/fixtures/vcr_cassettes/VideoInfo_Providers_Vkontakte/with_video_kirill_lyanoi_z_video2152699_168591741_2F56fd229a9dfe2dcdbe/description/.yml +0 -730
- data/spec/fixtures/vcr_cassettes/VideoInfo_Providers_Vkontakte/with_video_kirill_lyanoi_z_video2152699_168591741_2F56fd229a9dfe2dcdbe/duration/.yml +0 -731
- data/spec/fixtures/vcr_cassettes/VideoInfo_Providers_Vkontakte/with_video_kirill_lyanoi_z_video2152699_168591741_2F56fd229a9dfe2dcdbe/embed_code/.yml +0 -732
- data/spec/fixtures/vcr_cassettes/VideoInfo_Providers_Vkontakte/with_video_kirill_lyanoi_z_video2152699_168591741_2F56fd229a9dfe2dcdbe/embed_url/.yml +0 -732
- data/spec/fixtures/vcr_cassettes/VideoInfo_Providers_Vkontakte/with_video_kirill_lyanoi_z_video2152699_168591741_2F56fd229a9dfe2dcdbe/height/.yml +0 -732
- data/spec/fixtures/vcr_cassettes/VideoInfo_Providers_Vkontakte/with_video_kirill_lyanoi_z_video2152699_168591741_2F56fd229a9dfe2dcdbe/keywords/.yml +0 -732
- data/spec/fixtures/vcr_cassettes/VideoInfo_Providers_Vkontakte/with_video_kirill_lyanoi_z_video2152699_168591741_2F56fd229a9dfe2dcdbe/title/.yml +0 -731
- data/spec/fixtures/vcr_cassettes/VideoInfo_Providers_Vkontakte/with_video_kirill_lyanoi_z_video2152699_168591741_2F56fd229a9dfe2dcdbe/view_count/.yml +0 -731
- data/spec/fixtures/vcr_cassettes/VideoInfo_Providers_Vkontakte/with_video_kirill_lyanoi_z_video2152699_168591741_2F56fd229a9dfe2dcdbe/width/.yml +0 -728
- data/spec/fixtures/vcr_cassettes/VideoInfo_Providers_Vkontakte/with_video_video-54799401_165822734/title/.yml +0 -1226
- data/spec/fixtures/vcr_cassettes/VideoInfo_Providers_Vkontakte/with_video_video39576223_108370515/description/.yml +0 -997
- data/spec/fixtures/vcr_cassettes/VideoInfo_Providers_Vkontakte/with_video_video39576223_108370515/duration/.yml +0 -997
- data/spec/fixtures/vcr_cassettes/VideoInfo_Providers_Vkontakte/with_video_video39576223_108370515/embed_code/.yml +0 -997
- data/spec/fixtures/vcr_cassettes/VideoInfo_Providers_Vkontakte/with_video_video39576223_108370515/embed_url/.yml +0 -998
- data/spec/fixtures/vcr_cassettes/VideoInfo_Providers_Vkontakte/with_video_video39576223_108370515/height/.yml +0 -998
- data/spec/fixtures/vcr_cassettes/VideoInfo_Providers_Vkontakte/with_video_video39576223_108370515/keywords/.yml +0 -997
- data/spec/fixtures/vcr_cassettes/VideoInfo_Providers_Vkontakte/with_video_video39576223_108370515/title/.yml +0 -997
- data/spec/fixtures/vcr_cassettes/VideoInfo_Providers_Vkontakte/with_video_video39576223_108370515/view_count/.yml +0 -997
- data/spec/fixtures/vcr_cassettes/VideoInfo_Providers_Vkontakte/with_video_video39576223_108370515/width/.yml +0 -998
- data/spec/fixtures/vcr_cassettes/VideoInfo_Providers_Vkontakte/with_video_videos43640822_/video43640822_168790809/title/.yml +0 -597
- data/spec/fixtures/vcr_cassettes/VideoInfo_Providers_Wistia/_available_/with_invalid_video/_available_/.yml +0 -69
- data/spec/fixtures/vcr_cassettes/VideoInfo_Providers_Wistia/_available_/with_valid_video/_available_/.yml +0 -71
- data/spec/fixtures/vcr_cassettes/VideoInfo_Providers_Wistia/with_video_pxonqr42is/_duration/.yml +0 -78
- data/spec/fixtures/vcr_cassettes/VideoInfo_Providers_Wistia/with_video_pxonqr42is/_height/.yml +0 -78
- data/spec/fixtures/vcr_cassettes/VideoInfo_Providers_Wistia/with_video_pxonqr42is/_thumbnail_large/.yml +0 -78
- data/spec/fixtures/vcr_cassettes/VideoInfo_Providers_Wistia/with_video_pxonqr42is/_thumbnail_medium/.yml +0 -78
- data/spec/fixtures/vcr_cassettes/VideoInfo_Providers_Wistia/with_video_pxonqr42is/_thumbnail_small/.yml +0 -78
- data/spec/fixtures/vcr_cassettes/VideoInfo_Providers_Wistia/with_video_pxonqr42is/_title/.yml +0 -78
- data/spec/fixtures/vcr_cassettes/VideoInfo_Providers_Wistia/with_video_pxonqr42is/_width/.yml +0 -78
- data/spec/fixtures/vcr_cassettes/VideoInfo_Providers_Wistia/with_video_rs1me54mpw/_duration/.yml +0 -78
- data/spec/fixtures/vcr_cassettes/VideoInfo_Providers_Wistia/with_video_rs1me54mpw/_height/.yml +0 -78
- data/spec/fixtures/vcr_cassettes/VideoInfo_Providers_Wistia/with_video_rs1me54mpw/_thumbnail_large/.yml +0 -78
- data/spec/fixtures/vcr_cassettes/VideoInfo_Providers_Wistia/with_video_rs1me54mpw/_thumbnail_medium/.yml +0 -78
- data/spec/fixtures/vcr_cassettes/VideoInfo_Providers_Wistia/with_video_rs1me54mpw/_thumbnail_small/.yml +0 -78
- data/spec/fixtures/vcr_cassettes/VideoInfo_Providers_Wistia/with_video_rs1me54mpw/_title/.yml +0 -78
- data/spec/fixtures/vcr_cassettes/VideoInfo_Providers_Wistia/with_video_rs1me54mpw/_width/.yml +0 -78
- data/spec/fixtures/vcr_cassettes/VideoInfo_Providers_Youtube/_available_/with_valid_video/_available_/.yml +0 -56
- data/spec/fixtures/vcr_cassettes/VideoInfo_Providers_Youtube/_available_/with_video_is_unavailable_video/_available_/.yml +0 -46
- data/spec/fixtures/vcr_cassettes/VideoInfo_Providers_Youtube/_available_/with_video_no_longer_available_due_to_a_copyright_claim_video/_available_/.yml +0 -46
- 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 -63
- data/spec/fixtures/vcr_cassettes/VideoInfo_Providers_Youtube/with_video_mZqGqE0D0n4/_duration/.yml +0 -63
- 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/_available_/with_invalid_playlist/_available_/.yml +0 -46
- data/spec/fixtures/vcr_cassettes/VideoInfo_Providers_YoutubePlaylist/_available_/with_valid_playlist/_available_/.yml +0 -56
- 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/_description/.yml +0 -96
- 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 -96
- 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
@@ -1,60 +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-Backnode:
|
24
|
-
- web-033.adm.dailymotion.com:80
|
25
|
-
Vary:
|
26
|
-
- Accept-Encoding
|
27
|
-
Cache-Control:
|
28
|
-
- public, max-age=900
|
29
|
-
Content-Type:
|
30
|
-
- application/json; charset=UTF-8
|
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
|
-
- Mon, 09 Mar 2015 14:06:44 GMT
|
36
|
-
X-Dm-Lb:
|
37
|
-
- 195.8.215.157
|
38
|
-
Access-Control-Allow-Origin:
|
39
|
-
- "*"
|
40
|
-
X-Dm-Backnode-Response-Time:
|
41
|
-
- '42.188168'
|
42
|
-
Etag:
|
43
|
-
- W/"2_Rf3MwnzNBwSTK8ZWodzQ"
|
44
|
-
Last-Modified:
|
45
|
-
- Thu, 05 Mar 2015 13:24:45 GMT
|
46
|
-
Access-Control-Allow-Headers:
|
47
|
-
- Content-Type, Authorization
|
48
|
-
Access-Control-Allow-Methods:
|
49
|
-
- GET, POST, DELETE
|
50
|
-
X-Dm-Page:
|
51
|
-
- ch-fr.rest.rest_api
|
52
|
-
Content-Length:
|
53
|
-
- '110'
|
54
|
-
body:
|
55
|
-
encoding: ASCII-8BIT
|
56
|
-
string: '{"error":{"code":404,"message":"This video does not exist or has been
|
57
|
-
deleted.","type":"not_found"}}'
|
58
|
-
http_version:
|
59
|
-
recorded_at: Mon, 09 Mar 2015 14:06:44 GMT
|
60
|
-
recorded_with: VCR 2.9.3
|
@@ -1,59 +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-Backnode:
|
24
|
-
- web-088.adm.dailymotion.com:80
|
25
|
-
Vary:
|
26
|
-
- Accept-Encoding
|
27
|
-
Cache-Control:
|
28
|
-
- public, max-age=900
|
29
|
-
Content-Type:
|
30
|
-
- application/json; charset=UTF-8
|
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
|
-
- Mon, 09 Mar 2015 14:06:40 GMT
|
36
|
-
X-Dm-Lb:
|
37
|
-
- 195.8.215.129
|
38
|
-
Access-Control-Allow-Origin:
|
39
|
-
- "*"
|
40
|
-
X-Dm-Backnode-Response-Time:
|
41
|
-
- '71.099997'
|
42
|
-
Etag:
|
43
|
-
- W/"O1DJzTYSf9K1Wvn1OkaB4Q"
|
44
|
-
Last-Modified:
|
45
|
-
- Sat, 06 Jul 2013 19:32:30 GMT
|
46
|
-
Access-Control-Allow-Headers:
|
47
|
-
- Content-Type, Authorization
|
48
|
-
Access-Control-Allow-Methods:
|
49
|
-
- GET, POST, DELETE
|
50
|
-
X-Dm-Page:
|
51
|
-
- ch-fr.rest.rest_api
|
52
|
-
Content-Length:
|
53
|
-
- '103'
|
54
|
-
body:
|
55
|
-
encoding: ASCII-8BIT
|
56
|
-
string: '{"id":"x7lni3","title":"Mario Kart (R\u00e9mi Gaillard)","channel":"fun","owner":"x4r137"}'
|
57
|
-
http_version:
|
58
|
-
recorded_at: Mon, 09 Mar 2015 14:06:40 GMT
|
59
|
-
recorded_with: VCR 2.9.3
|
data/spec/fixtures/vcr_cassettes/VideoInfo_Providers_Dailymotion/with_video_x7lni3/_date/.yml
DELETED
@@ -1,62 +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,thumbnail_240_url,thumbnail_60_url
|
6
|
-
body:
|
7
|
-
encoding: US-ASCII
|
8
|
-
string: ''
|
9
|
-
headers:
|
10
|
-
User-Agent:
|
11
|
-
- VideoInfo/2.4.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-022.adm.dailymotion.com:80
|
25
|
-
Vary:
|
26
|
-
- Accept-Encoding
|
27
|
-
Cache-Control:
|
28
|
-
- public, max-age=900
|
29
|
-
Content-Type:
|
30
|
-
- application/json; charset=UTF-8
|
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
|
-
- Mon, 09 Mar 2015 14:06:46 GMT
|
36
|
-
X-Dm-Lb:
|
37
|
-
- 195.8.215.170
|
38
|
-
Access-Control-Allow-Origin:
|
39
|
-
- "*"
|
40
|
-
X-Dm-Backnode-Response-Time:
|
41
|
-
- '74.944973'
|
42
|
-
Etag:
|
43
|
-
- W/"O1DJzTYSf9K1Wvn1OkaB4Q"
|
44
|
-
Last-Modified:
|
45
|
-
- Sat, 06 Jul 2013 19:32:30 GMT
|
46
|
-
Access-Control-Allow-Headers:
|
47
|
-
- Content-Type, Authorization
|
48
|
-
Access-Control-Allow-Methods:
|
49
|
-
- GET, POST, DELETE
|
50
|
-
X-Dm-Page:
|
51
|
-
- ch-fr.rest.rest_api
|
52
|
-
Content-Length:
|
53
|
-
- '441'
|
54
|
-
body:
|
55
|
-
encoding: ASCII-8BIT
|
56
|
-
string: '{"id":"x7lni3","title":"Mario Kart (R\u00e9mi Gaillard)","description":"Super
|
57
|
-
R\u00e9mi Kart est un jeu vid\u00e9o de course d\u00e9velopp\u00e9 et \u00e9dit\u00e9
|
58
|
-
par N''Importe Quoi TV. Sa principale originalit\u00e9 vient de sa r\u00e9alit\u00e9...<br
|
59
|
-
\/>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":10263757,"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"}'
|
60
|
-
http_version:
|
61
|
-
recorded_at: Mon, 09 Mar 2015 14:06:46 GMT
|
62
|
-
recorded_with: VCR 2.9.3
|
data/spec/fixtures/vcr_cassettes/VideoInfo_Providers_Dailymotion/with_video_x7lni3/_description/.yml
DELETED
@@ -1,62 +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,thumbnail_240_url,thumbnail_60_url
|
6
|
-
body:
|
7
|
-
encoding: US-ASCII
|
8
|
-
string: ''
|
9
|
-
headers:
|
10
|
-
User-Agent:
|
11
|
-
- VideoInfo/2.4.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-052.adm.dailymotion.com:80
|
25
|
-
Vary:
|
26
|
-
- Accept-Encoding
|
27
|
-
Cache-Control:
|
28
|
-
- public, max-age=900
|
29
|
-
Content-Type:
|
30
|
-
- application/json; charset=UTF-8
|
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
|
-
- Mon, 09 Mar 2015 14:06:45 GMT
|
36
|
-
X-Dm-Lb:
|
37
|
-
- 195.8.215.170
|
38
|
-
Access-Control-Allow-Origin:
|
39
|
-
- "*"
|
40
|
-
X-Dm-Backnode-Response-Time:
|
41
|
-
- '47.418833'
|
42
|
-
Etag:
|
43
|
-
- W/"O1DJzTYSf9K1Wvn1OkaB4Q"
|
44
|
-
Last-Modified:
|
45
|
-
- Sat, 06 Jul 2013 19:32:30 GMT
|
46
|
-
Access-Control-Allow-Headers:
|
47
|
-
- Content-Type, Authorization
|
48
|
-
Access-Control-Allow-Methods:
|
49
|
-
- GET, POST, DELETE
|
50
|
-
X-Dm-Page:
|
51
|
-
- ch-fr.rest.rest_api
|
52
|
-
Content-Length:
|
53
|
-
- '441'
|
54
|
-
body:
|
55
|
-
encoding: ASCII-8BIT
|
56
|
-
string: '{"id":"x7lni3","title":"Mario Kart (R\u00e9mi Gaillard)","description":"Super
|
57
|
-
R\u00e9mi Kart est un jeu vid\u00e9o de course d\u00e9velopp\u00e9 et \u00e9dit\u00e9
|
58
|
-
par N''Importe Quoi TV. Sa principale originalit\u00e9 vient de sa r\u00e9alit\u00e9...<br
|
59
|
-
\/>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":10263757,"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"}'
|
60
|
-
http_version:
|
61
|
-
recorded_at: Mon, 09 Mar 2015 14:06:45 GMT
|
62
|
-
recorded_with: VCR 2.9.3
|
data/spec/fixtures/vcr_cassettes/VideoInfo_Providers_Dailymotion/with_video_x7lni3/_duration/.yml
DELETED
@@ -1,62 +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,thumbnail_240_url,thumbnail_60_url
|
6
|
-
body:
|
7
|
-
encoding: US-ASCII
|
8
|
-
string: ''
|
9
|
-
headers:
|
10
|
-
User-Agent:
|
11
|
-
- VideoInfo/2.4.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-092.adm.dailymotion.com:80
|
25
|
-
Vary:
|
26
|
-
- Accept-Encoding
|
27
|
-
Cache-Control:
|
28
|
-
- public, max-age=900
|
29
|
-
Content-Type:
|
30
|
-
- application/json; charset=UTF-8
|
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
|
-
- Mon, 09 Mar 2015 14:06:45 GMT
|
36
|
-
X-Dm-Lb:
|
37
|
-
- 195.8.215.157
|
38
|
-
Access-Control-Allow-Origin:
|
39
|
-
- "*"
|
40
|
-
X-Dm-Backnode-Response-Time:
|
41
|
-
- '49.103022'
|
42
|
-
Etag:
|
43
|
-
- W/"O1DJzTYSf9K1Wvn1OkaB4Q"
|
44
|
-
Last-Modified:
|
45
|
-
- Sat, 06 Jul 2013 19:32:30 GMT
|
46
|
-
Access-Control-Allow-Headers:
|
47
|
-
- Content-Type, Authorization
|
48
|
-
Access-Control-Allow-Methods:
|
49
|
-
- GET, POST, DELETE
|
50
|
-
X-Dm-Page:
|
51
|
-
- ch-fr.rest.rest_api
|
52
|
-
Content-Length:
|
53
|
-
- '441'
|
54
|
-
body:
|
55
|
-
encoding: ASCII-8BIT
|
56
|
-
string: '{"id":"x7lni3","title":"Mario Kart (R\u00e9mi Gaillard)","description":"Super
|
57
|
-
R\u00e9mi Kart est un jeu vid\u00e9o de course d\u00e9velopp\u00e9 et \u00e9dit\u00e9
|
58
|
-
par N''Importe Quoi TV. Sa principale originalit\u00e9 vient de sa r\u00e9alit\u00e9...<br
|
59
|
-
\/>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":10263757,"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"}'
|
60
|
-
http_version:
|
61
|
-
recorded_at: Mon, 09 Mar 2015 14:06:46 GMT
|
62
|
-
recorded_with: VCR 2.9.3
|
data/spec/fixtures/vcr_cassettes/VideoInfo_Providers_Dailymotion/with_video_x7lni3/_keywords/.yml
DELETED
@@ -1,62 +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,thumbnail_240_url,thumbnail_60_url
|
6
|
-
body:
|
7
|
-
encoding: US-ASCII
|
8
|
-
string: ''
|
9
|
-
headers:
|
10
|
-
User-Agent:
|
11
|
-
- VideoInfo/2.4.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-073.adm.dailymotion.com:80
|
25
|
-
Vary:
|
26
|
-
- Accept-Encoding
|
27
|
-
Cache-Control:
|
28
|
-
- public, max-age=900
|
29
|
-
Content-Type:
|
30
|
-
- application/json; charset=UTF-8
|
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
|
-
- Mon, 09 Mar 2015 14:06:45 GMT
|
36
|
-
X-Dm-Lb:
|
37
|
-
- 195.8.215.130
|
38
|
-
Access-Control-Allow-Origin:
|
39
|
-
- "*"
|
40
|
-
X-Dm-Backnode-Response-Time:
|
41
|
-
- '56.059837'
|
42
|
-
Etag:
|
43
|
-
- W/"O1DJzTYSf9K1Wvn1OkaB4Q"
|
44
|
-
Last-Modified:
|
45
|
-
- Sat, 06 Jul 2013 19:32:30 GMT
|
46
|
-
Access-Control-Allow-Headers:
|
47
|
-
- Content-Type, Authorization
|
48
|
-
Access-Control-Allow-Methods:
|
49
|
-
- GET, POST, DELETE
|
50
|
-
X-Dm-Page:
|
51
|
-
- ch-fr.rest.rest_api
|
52
|
-
Content-Length:
|
53
|
-
- '441'
|
54
|
-
body:
|
55
|
-
encoding: ASCII-8BIT
|
56
|
-
string: '{"id":"x7lni3","title":"Mario Kart (R\u00e9mi Gaillard)","description":"Super
|
57
|
-
R\u00e9mi Kart est un jeu vid\u00e9o de course d\u00e9velopp\u00e9 et \u00e9dit\u00e9
|
58
|
-
par N''Importe Quoi TV. Sa principale originalit\u00e9 vient de sa r\u00e9alit\u00e9...<br
|
59
|
-
\/>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":10263757,"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"}'
|
60
|
-
http_version:
|
61
|
-
recorded_at: Mon, 09 Mar 2015 14:06:45 GMT
|
62
|
-
recorded_with: VCR 2.9.3
|
@@ -1,62 +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,thumbnail_240_url,thumbnail_60_url
|
6
|
-
body:
|
7
|
-
encoding: US-ASCII
|
8
|
-
string: ''
|
9
|
-
headers:
|
10
|
-
User-Agent:
|
11
|
-
- VideoInfo/2.4.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-145.adm.dailymotion.com:80
|
25
|
-
Vary:
|
26
|
-
- Accept-Encoding
|
27
|
-
Cache-Control:
|
28
|
-
- public, max-age=900
|
29
|
-
Content-Type:
|
30
|
-
- application/json; charset=UTF-8
|
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
|
-
- Mon, 09 Mar 2015 14:06:47 GMT
|
36
|
-
X-Dm-Lb:
|
37
|
-
- 195.8.215.157
|
38
|
-
Access-Control-Allow-Origin:
|
39
|
-
- "*"
|
40
|
-
X-Dm-Backnode-Response-Time:
|
41
|
-
- '72.701216'
|
42
|
-
Etag:
|
43
|
-
- W/"O1DJzTYSf9K1Wvn1OkaB4Q"
|
44
|
-
Last-Modified:
|
45
|
-
- Sat, 06 Jul 2013 19:32:30 GMT
|
46
|
-
Access-Control-Allow-Headers:
|
47
|
-
- Content-Type, Authorization
|
48
|
-
Access-Control-Allow-Methods:
|
49
|
-
- GET, POST, DELETE
|
50
|
-
X-Dm-Page:
|
51
|
-
- ch-fr.rest.rest_api
|
52
|
-
Content-Length:
|
53
|
-
- '441'
|
54
|
-
body:
|
55
|
-
encoding: ASCII-8BIT
|
56
|
-
string: '{"id":"x7lni3","title":"Mario Kart (R\u00e9mi Gaillard)","description":"Super
|
57
|
-
R\u00e9mi Kart est un jeu vid\u00e9o de course d\u00e9velopp\u00e9 et \u00e9dit\u00e9
|
58
|
-
par N''Importe Quoi TV. Sa principale originalit\u00e9 vient de sa r\u00e9alit\u00e9...<br
|
59
|
-
\/>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":10263757,"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"}'
|
60
|
-
http_version:
|
61
|
-
recorded_at: Mon, 09 Mar 2015 14:06:47 GMT
|
62
|
-
recorded_with: VCR 2.9.3
|
@@ -1,62 +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,thumbnail_240_url,thumbnail_60_url
|
6
|
-
body:
|
7
|
-
encoding: US-ASCII
|
8
|
-
string: ''
|
9
|
-
headers:
|
10
|
-
User-Agent:
|
11
|
-
- VideoInfo/2.4.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-068.adm.dailymotion.com:80
|
25
|
-
Vary:
|
26
|
-
- Accept-Encoding
|
27
|
-
Cache-Control:
|
28
|
-
- public, max-age=900
|
29
|
-
Content-Type:
|
30
|
-
- application/json; charset=UTF-8
|
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
|
-
- Mon, 09 Mar 2015 14:06:46 GMT
|
36
|
-
X-Dm-Lb:
|
37
|
-
- 195.8.215.130
|
38
|
-
Access-Control-Allow-Origin:
|
39
|
-
- "*"
|
40
|
-
X-Dm-Backnode-Response-Time:
|
41
|
-
- '57.214975'
|
42
|
-
Etag:
|
43
|
-
- W/"O1DJzTYSf9K1Wvn1OkaB4Q"
|
44
|
-
Last-Modified:
|
45
|
-
- Sat, 06 Jul 2013 19:32:30 GMT
|
46
|
-
Access-Control-Allow-Headers:
|
47
|
-
- Content-Type, Authorization
|
48
|
-
Access-Control-Allow-Methods:
|
49
|
-
- GET, POST, DELETE
|
50
|
-
X-Dm-Page:
|
51
|
-
- ch-fr.rest.rest_api
|
52
|
-
Content-Length:
|
53
|
-
- '441'
|
54
|
-
body:
|
55
|
-
encoding: ASCII-8BIT
|
56
|
-
string: '{"id":"x7lni3","title":"Mario Kart (R\u00e9mi Gaillard)","description":"Super
|
57
|
-
R\u00e9mi Kart est un jeu vid\u00e9o de course d\u00e9velopp\u00e9 et \u00e9dit\u00e9
|
58
|
-
par N''Importe Quoi TV. Sa principale originalit\u00e9 vient de sa r\u00e9alit\u00e9...<br
|
59
|
-
\/>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":10263757,"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"}'
|
60
|
-
http_version:
|
61
|
-
recorded_at: Mon, 09 Mar 2015 14:06:46 GMT
|
62
|
-
recorded_with: VCR 2.9.3
|