video_info 2.1.1 → 2.2.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (48) hide show
  1. checksums.yaml +4 -4
  2. data/LICENSE.txt +1 -1
  3. data/README.md +40 -14
  4. data/lib/video_info.rb +6 -1
  5. data/lib/video_info/providers/dailymotion.rb +85 -0
  6. data/lib/video_info/providers/youtube.rb +1 -1
  7. data/lib/video_info/providers/youtubeplaylist.rb +55 -0
  8. data/lib/video_info/version.rb +1 -1
  9. data/spec/fixtures/vcr_cassettes/VideoInfo_Providers_Dailymotion/_available_/with_This_video_does_not_exist_or_has_been_deleted_/available_/.yml +63 -0
  10. data/spec/fixtures/vcr_cassettes/VideoInfo_Providers_Dailymotion/_available_/with_valid_video/available_/.yml +60 -0
  11. data/spec/fixtures/vcr_cassettes/VideoInfo_Providers_Dailymotion/_available_/with_video_is_unavailable_video/available_/.yml +46 -0
  12. data/spec/fixtures/vcr_cassettes/VideoInfo_Providers_Dailymotion/_available_/with_video_no_longer_available_due_to_a_copyright_claim_video/available_/.yml +46 -0
  13. data/spec/fixtures/vcr_cassettes/VideoInfo_Providers_Dailymotion/with_video_x7lni3/date/.yml +63 -0
  14. data/spec/fixtures/vcr_cassettes/VideoInfo_Providers_Dailymotion/with_video_x7lni3/description/.yml +63 -0
  15. data/spec/fixtures/vcr_cassettes/VideoInfo_Providers_Dailymotion/with_video_x7lni3/duration/.yml +63 -0
  16. data/spec/fixtures/vcr_cassettes/VideoInfo_Providers_Dailymotion/with_video_x7lni3/keywords/.yml +63 -0
  17. data/spec/fixtures/vcr_cassettes/VideoInfo_Providers_Dailymotion/with_video_x7lni3/thumbnail_large/.yml +63 -0
  18. data/spec/fixtures/vcr_cassettes/VideoInfo_Providers_Dailymotion/with_video_x7lni3/thumbnail_medium/.yml +63 -0
  19. data/spec/fixtures/vcr_cassettes/VideoInfo_Providers_Dailymotion/with_video_x7lni3/thumbnail_small/.yml +63 -0
  20. data/spec/fixtures/vcr_cassettes/VideoInfo_Providers_Dailymotion/with_video_x7lni3/title/.yml +63 -0
  21. data/spec/fixtures/vcr_cassettes/VideoInfo_Providers_Dailymotion/with_video_x7lni3/view_count/.yml +63 -0
  22. data/spec/fixtures/vcr_cassettes/VideoInfo_Providers_Vkontakte/with_video_video39576223_108370515/description/.yml +305 -305
  23. data/spec/fixtures/vcr_cassettes/VideoInfo_Providers_Vkontakte/with_video_video39576223_108370515/duration/.yml +1015 -1015
  24. data/spec/fixtures/vcr_cassettes/VideoInfo_Providers_Vkontakte/with_video_video39576223_108370515/embed_code/.yml +305 -305
  25. data/spec/fixtures/vcr_cassettes/VideoInfo_Providers_Vkontakte/with_video_video39576223_108370515/embed_url/.yml +305 -305
  26. data/spec/fixtures/vcr_cassettes/VideoInfo_Providers_Vkontakte/with_video_video39576223_108370515/height/.yml +1015 -1015
  27. data/spec/fixtures/vcr_cassettes/VideoInfo_Providers_Vkontakte/with_video_video39576223_108370515/keywords/.yml +1015 -1015
  28. data/spec/fixtures/vcr_cassettes/VideoInfo_Providers_Vkontakte/with_video_video39576223_108370515/view_count/.yml +1015 -1015
  29. data/spec/fixtures/vcr_cassettes/VideoInfo_Providers_Vkontakte/with_video_video39576223_108370515/width/.yml +1015 -1015
  30. data/spec/fixtures/vcr_cassettes/VideoInfo_Providers_YoutubePlaylist/_available_/with_invalid_playlist/available_/.yml +46 -0
  31. data/spec/fixtures/vcr_cassettes/VideoInfo_Providers_YoutubePlaylist/_available_/with_valid_playlist/available_/.yml +56 -0
  32. data/spec/fixtures/vcr_cassettes/VideoInfo_Providers_YoutubePlaylist/with_playlist_PL9hW1uS6HUftLdHI6RIsaf/.yml +98 -0
  33. data/spec/fixtures/vcr_cassettes/VideoInfo_Providers_YoutubePlaylist/with_playlist_PL9hW1uS6HUftLdHI6RIsaf/date/.yml +98 -0
  34. data/spec/fixtures/vcr_cassettes/VideoInfo_Providers_YoutubePlaylist/with_playlist_PL9hW1uS6HUftLdHI6RIsaf/description/.yml +98 -0
  35. data/spec/fixtures/vcr_cassettes/VideoInfo_Providers_YoutubePlaylist/with_playlist_PL9hW1uS6HUftLdHI6RIsaf/duration/.yml +98 -0
  36. data/spec/fixtures/vcr_cassettes/VideoInfo_Providers_YoutubePlaylist/with_playlist_PL9hW1uS6HUftLdHI6RIsaf/keywords/.yml +98 -0
  37. data/spec/fixtures/vcr_cassettes/VideoInfo_Providers_YoutubePlaylist/with_playlist_PL9hW1uS6HUftLdHI6RIsaf/thumbnail_large/.yml +96 -0
  38. data/spec/fixtures/vcr_cassettes/VideoInfo_Providers_YoutubePlaylist/with_playlist_PL9hW1uS6HUftLdHI6RIsaf/thumbnail_medium/.yml +96 -0
  39. data/spec/fixtures/vcr_cassettes/VideoInfo_Providers_YoutubePlaylist/with_playlist_PL9hW1uS6HUftLdHI6RIsaf/thumbnail_small/.yml +98 -0
  40. data/spec/fixtures/vcr_cassettes/VideoInfo_Providers_YoutubePlaylist/with_playlist_PL9hW1uS6HUftLdHI6RIsaf/title/.yml +98 -0
  41. data/spec/fixtures/vcr_cassettes/VideoInfo_Providers_YoutubePlaylist/with_playlist_PL9hW1uS6HUftLdHI6RIsaf/videos/.yml +96 -0
  42. data/spec/fixtures/vcr_cassettes/VideoInfo_Providers_YoutubePlaylist/with_playlist_PL9hW1uS6HUftLdHI6RIsaf/view_count/.yml +98 -0
  43. data/spec/lib/video_info/providers/dailymotion_spec.rb +78 -0
  44. data/spec/lib/video_info/providers/youtube_playlist_spec.rb +66 -0
  45. data/spec/lib/video_info/providers/youtube_spec.rb +5 -0
  46. data/spec/lib/video_info_spec.rb +20 -0
  47. data/video_info.gemspec +4 -4
  48. metadata +64 -6
@@ -0,0 +1,46 @@
1
+ ---
2
+ http_interactions:
3
+ - request:
4
+ method: head
5
+ uri: http://gdata.youtube.com/feeds/api/videos/ffClNhwx0KU?alt=json&v=2
6
+ body:
7
+ encoding: US-ASCII
8
+ string: ''
9
+ headers:
10
+ Accept:
11
+ - '*/*'
12
+ User-Agent:
13
+ - Ruby
14
+ response:
15
+ status:
16
+ code: 403
17
+ message: Forbidden
18
+ headers:
19
+ X-Gdata-User-Country:
20
+ - FR
21
+ Content-Type:
22
+ - application/vnd.google.gdata.error+xml
23
+ Content-Length:
24
+ - '179'
25
+ Date:
26
+ - Fri, 21 Feb 2014 15:53:18 GMT
27
+ Expires:
28
+ - Fri, 21 Feb 2014 15:53:18 GMT
29
+ Cache-Control:
30
+ - private, max-age=0
31
+ X-Content-Type-Options:
32
+ - nosniff
33
+ X-Frame-Options:
34
+ - SAMEORIGIN
35
+ X-Xss-Protection:
36
+ - 1; mode=block
37
+ Server:
38
+ - GSE
39
+ Alternate-Protocol:
40
+ - 80:quic
41
+ body:
42
+ encoding: UTF-8
43
+ string: ''
44
+ http_version:
45
+ recorded_at: Fri, 21 Feb 2014 15:53:18 GMT
46
+ recorded_with: VCR 2.8.0
@@ -0,0 +1,63 @@
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.1.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-013.adm.dailymotion.com:80
25
+ Vary:
26
+ - Authorization,Accept-Encoding
27
+ Cache-Control:
28
+ - private, max-age=900, no-transform, no-cache="set-cookie"
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
+ - Fri, 21 Feb 2014 15:37:35 GMT
36
+ Keep-Alive:
37
+ - timeout=60, max=4984
38
+ X-Dm-Lb:
39
+ - 195.8.215.129
40
+ Access-Control-Allow-Origin:
41
+ - '*'
42
+ Etag:
43
+ - W/"O1DJzTYSf9K1Wvn1OkaB4Q"
44
+ Connection:
45
+ - Keep-Alive
46
+ Set-Cookie:
47
+ - ts=907530; expires=Wed, 21-Feb-2024 15:37:35 GMT; Max-Age=315532800; path=/;
48
+ domain=.dailymotion.com
49
+ Last-Modified:
50
+ - Sat, 06 Jul 2013 19:32:30 GMT
51
+ X-Dm-Page:
52
+ - fr.rest.rest_api
53
+ Content-Length:
54
+ - '441'
55
+ body:
56
+ encoding: UTF-8
57
+ string: '{"id":"x7lni3","title":"Mario Kart (R\u00e9mi Gaillard)","description":"Super
58
+ R\u00e9mi Kart est un jeu vid\u00e9o de course d\u00e9velopp\u00e9 et \u00e9dit\u00e9
59
+ par N''Importe Quoi TV. Sa principale originalit\u00e9 vient de sa r\u00e9alit\u00e9...<br
60
+ \/>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":10159320,"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"}'
61
+ http_version:
62
+ recorded_at: Fri, 21 Feb 2014 15:37:34 GMT
63
+ recorded_with: VCR 2.8.0
@@ -0,0 +1,63 @@
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.1.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-097.adm.dailymotion.com:80
25
+ Vary:
26
+ - Authorization,Accept-Encoding
27
+ Cache-Control:
28
+ - private, max-age=900, no-transform, no-cache="set-cookie"
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
+ - Fri, 21 Feb 2014 15:30:35 GMT
36
+ Keep-Alive:
37
+ - timeout=60, max=4976
38
+ X-Dm-Lb:
39
+ - 195.8.215.130
40
+ Access-Control-Allow-Origin:
41
+ - '*'
42
+ Etag:
43
+ - W/"O1DJzTYSf9K1Wvn1OkaB4Q"
44
+ Connection:
45
+ - Keep-Alive
46
+ Set-Cookie:
47
+ - ts=857853; expires=Wed, 21-Feb-2024 15:30:35 GMT; Max-Age=315532800; path=/;
48
+ domain=.dailymotion.com
49
+ Last-Modified:
50
+ - Sat, 06 Jul 2013 19:32:30 GMT
51
+ X-Dm-Page:
52
+ - fr.rest.rest_api
53
+ Content-Length:
54
+ - '441'
55
+ body:
56
+ encoding: UTF-8
57
+ string: '{"id":"x7lni3","title":"Mario Kart (R\u00e9mi Gaillard)","description":"Super
58
+ R\u00e9mi Kart est un jeu vid\u00e9o de course d\u00e9velopp\u00e9 et \u00e9dit\u00e9
59
+ par N''Importe Quoi TV. Sa principale originalit\u00e9 vient de sa r\u00e9alit\u00e9...<br
60
+ \/>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":10159320,"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"}'
61
+ http_version:
62
+ recorded_at: Fri, 21 Feb 2014 15:30:35 GMT
63
+ recorded_with: VCR 2.8.0
@@ -0,0 +1,63 @@
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.1.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-075.adm.dailymotion.com:80
25
+ Vary:
26
+ - Authorization,Accept-Encoding
27
+ Cache-Control:
28
+ - private, max-age=900, no-transform, no-cache="set-cookie"
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
+ - Fri, 21 Feb 2014 15:33:31 GMT
36
+ Keep-Alive:
37
+ - timeout=60, max=4999
38
+ X-Dm-Lb:
39
+ - 195.8.215.129
40
+ Access-Control-Allow-Origin:
41
+ - '*'
42
+ Etag:
43
+ - W/"O1DJzTYSf9K1Wvn1OkaB4Q"
44
+ Connection:
45
+ - Keep-Alive
46
+ Set-Cookie:
47
+ - ts=329367; expires=Wed, 21-Feb-2024 15:33:31 GMT; Max-Age=315532800; path=/;
48
+ domain=.dailymotion.com
49
+ Last-Modified:
50
+ - Sat, 06 Jul 2013 19:32:30 GMT
51
+ X-Dm-Page:
52
+ - fr.rest.rest_api
53
+ Content-Length:
54
+ - '441'
55
+ body:
56
+ encoding: UTF-8
57
+ string: '{"id":"x7lni3","title":"Mario Kart (R\u00e9mi Gaillard)","description":"Super
58
+ R\u00e9mi Kart est un jeu vid\u00e9o de course d\u00e9velopp\u00e9 et \u00e9dit\u00e9
59
+ par N''Importe Quoi TV. Sa principale originalit\u00e9 vient de sa r\u00e9alit\u00e9...<br
60
+ \/>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":10159320,"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"}'
61
+ http_version:
62
+ recorded_at: Fri, 21 Feb 2014 15:33:31 GMT
63
+ recorded_with: VCR 2.8.0
@@ -0,0 +1,63 @@
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.1.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-064.adm.dailymotion.com:80
25
+ Vary:
26
+ - Authorization,Accept-Encoding
27
+ Cache-Control:
28
+ - private, max-age=900, no-transform, no-cache="set-cookie"
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
+ - Fri, 21 Feb 2014 15:31:13 GMT
36
+ Keep-Alive:
37
+ - timeout=60, max=4996
38
+ X-Dm-Lb:
39
+ - 195.8.215.129
40
+ Access-Control-Allow-Origin:
41
+ - '*'
42
+ Etag:
43
+ - W/"O1DJzTYSf9K1Wvn1OkaB4Q"
44
+ Connection:
45
+ - Keep-Alive
46
+ Set-Cookie:
47
+ - ts=291463; expires=Wed, 21-Feb-2024 15:31:13 GMT; Max-Age=315532800; path=/;
48
+ domain=.dailymotion.com
49
+ Last-Modified:
50
+ - Sat, 06 Jul 2013 19:32:30 GMT
51
+ X-Dm-Page:
52
+ - fr.rest.rest_api
53
+ Content-Length:
54
+ - '441'
55
+ body:
56
+ encoding: UTF-8
57
+ string: '{"id":"x7lni3","title":"Mario Kart (R\u00e9mi Gaillard)","description":"Super
58
+ R\u00e9mi Kart est un jeu vid\u00e9o de course d\u00e9velopp\u00e9 et \u00e9dit\u00e9
59
+ par N''Importe Quoi TV. Sa principale originalit\u00e9 vient de sa r\u00e9alit\u00e9...<br
60
+ \/>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":10159320,"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"}'
61
+ http_version:
62
+ recorded_at: Fri, 21 Feb 2014 15:31:13 GMT
63
+ recorded_with: VCR 2.8.0
@@ -0,0 +1,63 @@
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.1.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-100.adm.dailymotion.com:80
25
+ Vary:
26
+ - Authorization,Accept-Encoding
27
+ Cache-Control:
28
+ - private, max-age=900, no-transform, no-cache="set-cookie"
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
+ - Fri, 21 Feb 2014 15:39:35 GMT
36
+ Keep-Alive:
37
+ - timeout=60, max=4976
38
+ X-Dm-Lb:
39
+ - 195.8.215.129
40
+ Access-Control-Allow-Origin:
41
+ - '*'
42
+ Etag:
43
+ - W/"O1DJzTYSf9K1Wvn1OkaB4Q"
44
+ Connection:
45
+ - Keep-Alive
46
+ Set-Cookie:
47
+ - ts=494671; expires=Wed, 21-Feb-2024 15:39:35 GMT; Max-Age=315532800; path=/;
48
+ domain=.dailymotion.com
49
+ Last-Modified:
50
+ - Sat, 06 Jul 2013 19:32:30 GMT
51
+ X-Dm-Page:
52
+ - fr.rest.rest_api
53
+ Content-Length:
54
+ - '441'
55
+ body:
56
+ encoding: UTF-8
57
+ string: '{"id":"x7lni3","title":"Mario Kart (R\u00e9mi Gaillard)","description":"Super
58
+ R\u00e9mi Kart est un jeu vid\u00e9o de course d\u00e9velopp\u00e9 et \u00e9dit\u00e9
59
+ par N''Importe Quoi TV. Sa principale originalit\u00e9 vient de sa r\u00e9alit\u00e9...<br
60
+ \/>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":10159320,"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"}'
61
+ http_version:
62
+ recorded_at: Fri, 21 Feb 2014 15:39:35 GMT
63
+ recorded_with: VCR 2.8.0
@@ -0,0 +1,63 @@
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.1.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-105.adm.dailymotion.com:80
25
+ Vary:
26
+ - Authorization,Accept-Encoding
27
+ Cache-Control:
28
+ - private, max-age=900, no-transform, no-cache="set-cookie"
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
+ - Fri, 21 Feb 2014 15:39:35 GMT
36
+ Keep-Alive:
37
+ - timeout=60, max=4998
38
+ X-Dm-Lb:
39
+ - 195.8.215.130
40
+ Access-Control-Allow-Origin:
41
+ - '*'
42
+ Etag:
43
+ - W/"O1DJzTYSf9K1Wvn1OkaB4Q"
44
+ Connection:
45
+ - Keep-Alive
46
+ Set-Cookie:
47
+ - ts=404706; expires=Wed, 21-Feb-2024 15:39:35 GMT; Max-Age=315532800; path=/;
48
+ domain=.dailymotion.com
49
+ Last-Modified:
50
+ - Sat, 06 Jul 2013 19:32:30 GMT
51
+ X-Dm-Page:
52
+ - fr.rest.rest_api
53
+ Content-Length:
54
+ - '441'
55
+ body:
56
+ encoding: UTF-8
57
+ string: '{"id":"x7lni3","title":"Mario Kart (R\u00e9mi Gaillard)","description":"Super
58
+ R\u00e9mi Kart est un jeu vid\u00e9o de course d\u00e9velopp\u00e9 et \u00e9dit\u00e9
59
+ par N''Importe Quoi TV. Sa principale originalit\u00e9 vient de sa r\u00e9alit\u00e9...<br
60
+ \/>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":10159320,"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"}'
61
+ http_version:
62
+ recorded_at: Fri, 21 Feb 2014 15:39:35 GMT
63
+ recorded_with: VCR 2.8.0
@@ -0,0 +1,63 @@
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.1.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-046.adm.dailymotion.com:80
25
+ Vary:
26
+ - Authorization,Accept-Encoding
27
+ Cache-Control:
28
+ - private, max-age=900, no-transform, no-cache="set-cookie"
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
+ - Fri, 21 Feb 2014 15:39:35 GMT
36
+ Keep-Alive:
37
+ - timeout=60, max=4988
38
+ X-Dm-Lb:
39
+ - 195.8.215.130
40
+ Access-Control-Allow-Origin:
41
+ - '*'
42
+ Etag:
43
+ - W/"O1DJzTYSf9K1Wvn1OkaB4Q"
44
+ Connection:
45
+ - Keep-Alive
46
+ Set-Cookie:
47
+ - ts=299587; expires=Wed, 21-Feb-2024 15:39:35 GMT; Max-Age=315532800; path=/;
48
+ domain=.dailymotion.com
49
+ Last-Modified:
50
+ - Sat, 06 Jul 2013 19:32:30 GMT
51
+ X-Dm-Page:
52
+ - fr.rest.rest_api
53
+ Content-Length:
54
+ - '441'
55
+ body:
56
+ encoding: UTF-8
57
+ string: '{"id":"x7lni3","title":"Mario Kart (R\u00e9mi Gaillard)","description":"Super
58
+ R\u00e9mi Kart est un jeu vid\u00e9o de course d\u00e9velopp\u00e9 et \u00e9dit\u00e9
59
+ par N''Importe Quoi TV. Sa principale originalit\u00e9 vient de sa r\u00e9alit\u00e9...<br
60
+ \/>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":10159320,"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"}'
61
+ http_version:
62
+ recorded_at: Fri, 21 Feb 2014 15:39:35 GMT
63
+ recorded_with: VCR 2.8.0