video_info 2.0.2 → 2.1.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/.travis.yml +6 -2
- data/README.md +2 -0
- data/lib/video_info.rb +1 -0
- data/lib/video_info/provider.rb +13 -0
- data/lib/video_info/providers/vimeo.rb +9 -1
- data/lib/video_info/providers/vkontakte.rb +16 -0
- data/lib/video_info/providers/youtube.rb +9 -1
- data/lib/video_info/version.rb +1 -1
- data/spec/fixtures/vcr_cassettes/VideoInfo_Providers_Vimeo/_available_/with_password_required_video/available_/.yml +50 -0
- data/spec/fixtures/vcr_cassettes/VideoInfo_Providers_Vimeo/_available_/with_this_video_does_not_exist_video/available_/.yml +50 -0
- data/spec/fixtures/vcr_cassettes/VideoInfo_Providers_Vimeo/_available_/with_valid_video/available_/.yml +54 -0
- data/spec/fixtures/vcr_cassettes/VideoInfo_Providers_Vimeo/with_video_898029/date/.yml +33 -26
- data/spec/fixtures/vcr_cassettes/VideoInfo_Providers_Vimeo/with_video_898029/description/.yml +32 -27
- data/spec/fixtures/vcr_cassettes/VideoInfo_Providers_Vimeo/with_video_898029/duration/.yml +32 -27
- data/spec/fixtures/vcr_cassettes/VideoInfo_Providers_Vimeo/with_video_898029/height/.yml +31 -26
- data/spec/fixtures/vcr_cassettes/VideoInfo_Providers_Vimeo/with_video_898029/keywords/.yml +32 -27
- data/spec/fixtures/vcr_cassettes/VideoInfo_Providers_Vimeo/with_video_898029/thumbnail_large/.yml +30 -25
- data/spec/fixtures/vcr_cassettes/VideoInfo_Providers_Vimeo/with_video_898029/thumbnail_medium/.yml +30 -25
- data/spec/fixtures/vcr_cassettes/VideoInfo_Providers_Vimeo/with_video_898029/thumbnail_small/.yml +31 -26
- data/spec/fixtures/vcr_cassettes/VideoInfo_Providers_Vimeo/with_video_898029/title/.yml +31 -26
- data/spec/fixtures/vcr_cassettes/VideoInfo_Providers_Vimeo/with_video_898029/view_count/.yml +31 -26
- data/spec/fixtures/vcr_cassettes/VideoInfo_Providers_Vimeo/with_video_898029/width/.yml +31 -26
- data/spec/fixtures/vcr_cassettes/VideoInfo_Providers_Vkontakte/_available_/with_invalid_video/available_/.yml +147 -0
- data/spec/fixtures/vcr_cassettes/VideoInfo_Providers_Vkontakte/_available_/with_valid_video/available_/.yml +1115 -0
- data/spec/fixtures/vcr_cassettes/VideoInfo_Providers_Vkontakte/with_video_video-54799401_165822734/title/.yml +1255 -1701
- data/spec/fixtures/vcr_cassettes/VideoInfo_Providers_Vkontakte/with_video_video39576223_108370515/description/.yml +1070 -1110
- data/spec/fixtures/vcr_cassettes/VideoInfo_Providers_Vkontakte/with_video_video39576223_108370515/duration/.yml +1070 -1110
- data/spec/fixtures/vcr_cassettes/VideoInfo_Providers_Vkontakte/with_video_video39576223_108370515/embed_code/.yml +1072 -1112
- data/spec/fixtures/vcr_cassettes/VideoInfo_Providers_Vkontakte/with_video_video39576223_108370515/embed_url/.yml +1072 -1112
- data/spec/fixtures/vcr_cassettes/VideoInfo_Providers_Vkontakte/with_video_video39576223_108370515/height/.yml +1070 -1110
- data/spec/fixtures/vcr_cassettes/VideoInfo_Providers_Vkontakte/with_video_video39576223_108370515/keywords/.yml +1070 -1110
- data/spec/fixtures/vcr_cassettes/VideoInfo_Providers_Vkontakte/with_video_video39576223_108370515/title/.yml +1029 -1110
- data/spec/fixtures/vcr_cassettes/VideoInfo_Providers_Vkontakte/with_video_video39576223_108370515/view_count/.yml +1070 -1110
- data/spec/fixtures/vcr_cassettes/VideoInfo_Providers_Vkontakte/with_video_video39576223_108370515/width/.yml +1070 -1110
- data/spec/fixtures/vcr_cassettes/VideoInfo_Providers_Youtube/_available_/with_valid_video/available_/.yml +56 -0
- data/spec/fixtures/vcr_cassettes/VideoInfo_Providers_Youtube/_available_/with_video_is_unavailable_video/available_/.yml +46 -0
- data/spec/fixtures/vcr_cassettes/VideoInfo_Providers_Youtube/_available_/with_video_no_longer_available_due_to_a_copyright_claim_video/available_/.yml +46 -0
- data/spec/fixtures/vcr_cassettes/VideoInfo_Providers_Youtube/with_video_mZqGqE0D0n4/date/.yml +16 -18
- data/spec/fixtures/vcr_cassettes/VideoInfo_Providers_Youtube/with_video_mZqGqE0D0n4/description/.yml +17 -19
- data/spec/fixtures/vcr_cassettes/VideoInfo_Providers_Youtube/with_video_mZqGqE0D0n4/duration/.yml +16 -18
- data/spec/fixtures/vcr_cassettes/VideoInfo_Providers_Youtube/with_video_mZqGqE0D0n4/keywords/.yml +19 -19
- data/spec/fixtures/vcr_cassettes/VideoInfo_Providers_Youtube/with_video_mZqGqE0D0n4/thumbnail_large/.yml +16 -18
- data/spec/fixtures/vcr_cassettes/VideoInfo_Providers_Youtube/with_video_mZqGqE0D0n4/thumbnail_medium/.yml +16 -18
- data/spec/fixtures/vcr_cassettes/VideoInfo_Providers_Youtube/with_video_mZqGqE0D0n4/thumbnail_small/.yml +16 -18
- data/spec/fixtures/vcr_cassettes/VideoInfo_Providers_Youtube/with_video_mZqGqE0D0n4/title/.yml +16 -16
- data/spec/fixtures/vcr_cassettes/VideoInfo_Providers_Youtube/with_video_mZqGqE0D0n4/view_count/.yml +16 -18
- data/spec/lib/video_info/providers/vimeo_spec.rb +17 -0
- data/spec/lib/video_info/providers/vkontakte_spec.rb +15 -2
- data/spec/lib/video_info/providers/youtube_spec.rb +18 -1
- metadata +39 -23
data/spec/fixtures/vcr_cassettes/VideoInfo_Providers_Vimeo/with_video_898029/thumbnail_small/.yml
CHANGED
@@ -8,32 +8,43 @@ http_interactions:
|
|
8
8
|
string: ''
|
9
9
|
headers:
|
10
10
|
User-Agent:
|
11
|
-
- VideoInfo/2.0.
|
11
|
+
- VideoInfo/2.0.2
|
12
12
|
Accept-Encoding:
|
13
13
|
- gzip;q=1.0,deflate;q=0.6,identity;q=0.3
|
14
14
|
Accept:
|
15
|
-
-
|
15
|
+
- "*/*"
|
16
16
|
response:
|
17
17
|
status:
|
18
18
|
code: 200
|
19
19
|
message: OK
|
20
20
|
headers:
|
21
|
+
Age:
|
22
|
+
- '2'
|
23
|
+
Date:
|
24
|
+
- Thu, 20 Feb 2014 12:43:22 GMT
|
25
|
+
Expires:
|
26
|
+
- Thu, 20 Feb 2014 12:44:22 GMT
|
27
|
+
Connection:
|
28
|
+
- Keep-Alive
|
29
|
+
Via:
|
30
|
+
- 1.1 varnish
|
31
|
+
- dnet-dca
|
32
|
+
Etag:
|
33
|
+
- "\"6dfa4929546eb170df1cf6c24e6b93e8\""
|
21
34
|
Server:
|
22
35
|
- Apache
|
23
36
|
Access-Control-Allow-Origin:
|
24
|
-
-
|
37
|
+
- "*"
|
25
38
|
X-Ratelimit-Limit:
|
26
39
|
- '3600'
|
27
40
|
X-Ratelimit-Remaining:
|
28
|
-
- '
|
41
|
+
- '3599'
|
29
42
|
X-Ratelimit-Reset:
|
30
|
-
- '
|
31
|
-
Expires:
|
32
|
-
- Fri, 25 Oct 2013 20:34:57 GMT
|
43
|
+
- '1392898630'
|
33
44
|
Last-Modified:
|
34
|
-
-
|
35
|
-
|
36
|
-
-
|
45
|
+
- Fri, 14 Feb 2014 05:07:12 GMT
|
46
|
+
X-Ua-Compatible:
|
47
|
+
- IE=edge
|
37
48
|
X-Dns-Prefetch-Control:
|
38
49
|
- 'on'
|
39
50
|
Vary:
|
@@ -44,28 +55,22 @@ http_interactions:
|
|
44
55
|
- '498'
|
45
56
|
Accept-Ranges:
|
46
57
|
- bytes
|
47
|
-
Date:
|
48
|
-
- Fri, 25 Oct 2013 20:33:58 GMT
|
49
58
|
X-Varnish:
|
50
|
-
-
|
51
|
-
Age:
|
52
|
-
- '1'
|
53
|
-
Via:
|
54
|
-
- 1.1 varnish
|
59
|
+
- 1579446639 1579446611
|
55
60
|
X-Varnish-Cache:
|
56
61
|
- '1'
|
57
|
-
|
62
|
+
Cneonction:
|
58
63
|
- close
|
59
64
|
X-Vserver:
|
60
|
-
- 10.90.128.
|
65
|
+
- 10.90.128.147
|
61
66
|
body:
|
62
67
|
encoding: UTF-8
|
63
|
-
string:
|
68
|
+
string: "[{\"id\":898029,\"title\":\"Cherry Bloom - King Of The Knife\",\"description\":\"The
|
64
69
|
first video from the upcoming album Secret Sounds, to download in-stores April
|
65
|
-
14. Checkout http
|
66
|
-
13:10:39"
|
67
|
-
Zangs"
|
68
|
-
bloom, secret sounds, king of the knife, rock, alternative"
|
70
|
+
14. Checkout http:\\/\\/www.cherrybloom.net\",\"url\":\"http:\\/\\/vimeo.com\\/898029\",\"upload_date\":\"2008-04-14
|
71
|
+
13:10:39\",\"thumbnail_small\":\"http:\\/\\/b.vimeocdn.com\\/ts\\/343\\/731\\/34373130_100.jpg\",\"thumbnail_medium\":\"http:\\/\\/b.vimeocdn.com\\/ts\\/343\\/731\\/34373130_200.jpg\",\"thumbnail_large\":\"http:\\/\\/b.vimeocdn.com\\/ts\\/343\\/731\\/34373130_640.jpg\",\"user_id\":206215,\"user_name\":\"Octave
|
72
|
+
Zangs\",\"user_url\":\"http:\\/\\/vimeo.com\\/octave\",\"user_portrait_small\":\"http:\\/\\/b.vimeocdn.com\\/ps\\/257\\/715\\/2577152_30.jpg\",\"user_portrait_medium\":\"http:\\/\\/b.vimeocdn.com\\/ps\\/257\\/715\\/2577152_75.jpg\",\"user_portrait_large\":\"http:\\/\\/b.vimeocdn.com\\/ps\\/257\\/715\\/2577152_100.jpg\",\"user_portrait_huge\":\"http:\\/\\/b.vimeocdn.com\\/ps\\/257\\/715\\/2577152_300.jpg\",\"stats_number_of_likes\":11,\"stats_number_of_plays\":4563,\"stats_number_of_comments\":4,\"duration\":175,\"width\":640,\"height\":360,\"tags\":\"cherry
|
73
|
+
bloom, secret sounds, king of the knife, rock, alternative\",\"embed_privacy\":\"anywhere\"}]"
|
69
74
|
http_version:
|
70
|
-
recorded_at:
|
71
|
-
recorded_with: VCR 2.
|
75
|
+
recorded_at: Thu, 20 Feb 2014 12:43:22 GMT
|
76
|
+
recorded_with: VCR 2.8.0
|
@@ -8,32 +8,43 @@ http_interactions:
|
|
8
8
|
string: ''
|
9
9
|
headers:
|
10
10
|
User-Agent:
|
11
|
-
- VideoInfo/2.0.
|
11
|
+
- VideoInfo/2.0.2
|
12
12
|
Accept-Encoding:
|
13
13
|
- gzip;q=1.0,deflate;q=0.6,identity;q=0.3
|
14
14
|
Accept:
|
15
|
-
-
|
15
|
+
- "*/*"
|
16
16
|
response:
|
17
17
|
status:
|
18
18
|
code: 200
|
19
19
|
message: OK
|
20
20
|
headers:
|
21
|
+
Age:
|
22
|
+
- '1'
|
23
|
+
Date:
|
24
|
+
- Thu, 20 Feb 2014 12:43:21 GMT
|
25
|
+
Expires:
|
26
|
+
- Thu, 20 Feb 2014 12:44:21 GMT
|
27
|
+
Connection:
|
28
|
+
- Keep-Alive
|
29
|
+
Via:
|
30
|
+
- 1.1 varnish
|
31
|
+
- dnet-dca
|
32
|
+
Etag:
|
33
|
+
- "\"6dfa4929546eb170df1cf6c24e6b93e8\""
|
21
34
|
Server:
|
22
35
|
- Apache
|
23
36
|
Access-Control-Allow-Origin:
|
24
|
-
-
|
37
|
+
- "*"
|
25
38
|
X-Ratelimit-Limit:
|
26
39
|
- '3600'
|
27
40
|
X-Ratelimit-Remaining:
|
28
|
-
- '
|
41
|
+
- '3598'
|
29
42
|
X-Ratelimit-Reset:
|
30
|
-
- '
|
31
|
-
Expires:
|
32
|
-
- Fri, 25 Oct 2013 20:34:56 GMT
|
43
|
+
- '1392892121'
|
33
44
|
Last-Modified:
|
34
|
-
-
|
35
|
-
|
36
|
-
-
|
45
|
+
- Fri, 14 Feb 2014 05:07:12 GMT
|
46
|
+
X-Ua-Compatible:
|
47
|
+
- IE=edge
|
37
48
|
X-Dns-Prefetch-Control:
|
38
49
|
- 'on'
|
39
50
|
Vary:
|
@@ -44,28 +55,22 @@ http_interactions:
|
|
44
55
|
- '498'
|
45
56
|
Accept-Ranges:
|
46
57
|
- bytes
|
47
|
-
Date:
|
48
|
-
- Fri, 25 Oct 2013 20:33:56 GMT
|
49
58
|
X-Varnish:
|
50
|
-
- '
|
51
|
-
Age:
|
52
|
-
- '0'
|
53
|
-
Via:
|
54
|
-
- 1.1 varnish
|
59
|
+
- '1744118388'
|
55
60
|
X-Varnish-Cache:
|
56
61
|
- '0'
|
57
|
-
|
62
|
+
Nncoection:
|
58
63
|
- close
|
59
64
|
X-Vserver:
|
60
|
-
- 10.90.128.
|
65
|
+
- 10.90.128.146
|
61
66
|
body:
|
62
67
|
encoding: UTF-8
|
63
|
-
string:
|
68
|
+
string: "[{\"id\":898029,\"title\":\"Cherry Bloom - King Of The Knife\",\"description\":\"The
|
64
69
|
first video from the upcoming album Secret Sounds, to download in-stores April
|
65
|
-
14. Checkout http
|
66
|
-
13:10:39"
|
67
|
-
Zangs"
|
68
|
-
bloom, secret sounds, king of the knife, rock, alternative"
|
70
|
+
14. Checkout http:\\/\\/www.cherrybloom.net\",\"url\":\"http:\\/\\/vimeo.com\\/898029\",\"upload_date\":\"2008-04-14
|
71
|
+
13:10:39\",\"thumbnail_small\":\"http:\\/\\/b.vimeocdn.com\\/ts\\/343\\/731\\/34373130_100.jpg\",\"thumbnail_medium\":\"http:\\/\\/b.vimeocdn.com\\/ts\\/343\\/731\\/34373130_200.jpg\",\"thumbnail_large\":\"http:\\/\\/b.vimeocdn.com\\/ts\\/343\\/731\\/34373130_640.jpg\",\"user_id\":206215,\"user_name\":\"Octave
|
72
|
+
Zangs\",\"user_url\":\"http:\\/\\/vimeo.com\\/octave\",\"user_portrait_small\":\"http:\\/\\/b.vimeocdn.com\\/ps\\/257\\/715\\/2577152_30.jpg\",\"user_portrait_medium\":\"http:\\/\\/b.vimeocdn.com\\/ps\\/257\\/715\\/2577152_75.jpg\",\"user_portrait_large\":\"http:\\/\\/b.vimeocdn.com\\/ps\\/257\\/715\\/2577152_100.jpg\",\"user_portrait_huge\":\"http:\\/\\/b.vimeocdn.com\\/ps\\/257\\/715\\/2577152_300.jpg\",\"stats_number_of_likes\":11,\"stats_number_of_plays\":4563,\"stats_number_of_comments\":4,\"duration\":175,\"width\":640,\"height\":360,\"tags\":\"cherry
|
73
|
+
bloom, secret sounds, king of the knife, rock, alternative\",\"embed_privacy\":\"anywhere\"}]"
|
69
74
|
http_version:
|
70
|
-
recorded_at:
|
71
|
-
recorded_with: VCR 2.
|
75
|
+
recorded_at: Thu, 20 Feb 2014 12:43:21 GMT
|
76
|
+
recorded_with: VCR 2.8.0
|
data/spec/fixtures/vcr_cassettes/VideoInfo_Providers_Vimeo/with_video_898029/view_count/.yml
CHANGED
@@ -8,32 +8,43 @@ http_interactions:
|
|
8
8
|
string: ''
|
9
9
|
headers:
|
10
10
|
User-Agent:
|
11
|
-
- VideoInfo/2.0.
|
11
|
+
- VideoInfo/2.0.2
|
12
12
|
Accept-Encoding:
|
13
13
|
- gzip;q=1.0,deflate;q=0.6,identity;q=0.3
|
14
14
|
Accept:
|
15
|
-
-
|
15
|
+
- "*/*"
|
16
16
|
response:
|
17
17
|
status:
|
18
18
|
code: 200
|
19
19
|
message: OK
|
20
20
|
headers:
|
21
|
+
Age:
|
22
|
+
- '3'
|
23
|
+
Date:
|
24
|
+
- Thu, 20 Feb 2014 12:43:22 GMT
|
25
|
+
Expires:
|
26
|
+
- Thu, 20 Feb 2014 12:44:22 GMT
|
27
|
+
Connection:
|
28
|
+
- Keep-Alive
|
29
|
+
Via:
|
30
|
+
- 1.1 varnish
|
31
|
+
- dnet-dca
|
32
|
+
Etag:
|
33
|
+
- "\"6dfa4929546eb170df1cf6c24e6b93e8\""
|
21
34
|
Server:
|
22
35
|
- Apache
|
23
36
|
Access-Control-Allow-Origin:
|
24
|
-
-
|
37
|
+
- "*"
|
25
38
|
X-Ratelimit-Limit:
|
26
39
|
- '3600'
|
27
40
|
X-Ratelimit-Remaining:
|
28
|
-
- '
|
41
|
+
- '3599'
|
29
42
|
X-Ratelimit-Reset:
|
30
|
-
- '
|
31
|
-
Expires:
|
32
|
-
- Fri, 25 Oct 2013 20:34:59 GMT
|
43
|
+
- '1392898630'
|
33
44
|
Last-Modified:
|
34
|
-
-
|
35
|
-
|
36
|
-
-
|
45
|
+
- Fri, 14 Feb 2014 05:07:12 GMT
|
46
|
+
X-Ua-Compatible:
|
47
|
+
- IE=edge
|
37
48
|
X-Dns-Prefetch-Control:
|
38
49
|
- 'on'
|
39
50
|
Vary:
|
@@ -44,28 +55,22 @@ http_interactions:
|
|
44
55
|
- '498'
|
45
56
|
Accept-Ranges:
|
46
57
|
- bytes
|
47
|
-
Date:
|
48
|
-
- Fri, 25 Oct 2013 20:33:59 GMT
|
49
58
|
X-Varnish:
|
50
|
-
-
|
51
|
-
Age:
|
52
|
-
- '0'
|
53
|
-
Via:
|
54
|
-
- 1.1 varnish
|
59
|
+
- 1579446639 1579446611
|
55
60
|
X-Varnish-Cache:
|
56
|
-
- '
|
57
|
-
|
61
|
+
- '1'
|
62
|
+
Cneonction:
|
58
63
|
- close
|
59
64
|
X-Vserver:
|
60
65
|
- 10.90.128.147
|
61
66
|
body:
|
62
67
|
encoding: UTF-8
|
63
|
-
string:
|
68
|
+
string: "[{\"id\":898029,\"title\":\"Cherry Bloom - King Of The Knife\",\"description\":\"The
|
64
69
|
first video from the upcoming album Secret Sounds, to download in-stores April
|
65
|
-
14. Checkout http
|
66
|
-
13:10:39"
|
67
|
-
Zangs"
|
68
|
-
bloom, secret sounds, king of the knife, rock, alternative"
|
70
|
+
14. Checkout http:\\/\\/www.cherrybloom.net\",\"url\":\"http:\\/\\/vimeo.com\\/898029\",\"upload_date\":\"2008-04-14
|
71
|
+
13:10:39\",\"thumbnail_small\":\"http:\\/\\/b.vimeocdn.com\\/ts\\/343\\/731\\/34373130_100.jpg\",\"thumbnail_medium\":\"http:\\/\\/b.vimeocdn.com\\/ts\\/343\\/731\\/34373130_200.jpg\",\"thumbnail_large\":\"http:\\/\\/b.vimeocdn.com\\/ts\\/343\\/731\\/34373130_640.jpg\",\"user_id\":206215,\"user_name\":\"Octave
|
72
|
+
Zangs\",\"user_url\":\"http:\\/\\/vimeo.com\\/octave\",\"user_portrait_small\":\"http:\\/\\/b.vimeocdn.com\\/ps\\/257\\/715\\/2577152_30.jpg\",\"user_portrait_medium\":\"http:\\/\\/b.vimeocdn.com\\/ps\\/257\\/715\\/2577152_75.jpg\",\"user_portrait_large\":\"http:\\/\\/b.vimeocdn.com\\/ps\\/257\\/715\\/2577152_100.jpg\",\"user_portrait_huge\":\"http:\\/\\/b.vimeocdn.com\\/ps\\/257\\/715\\/2577152_300.jpg\",\"stats_number_of_likes\":11,\"stats_number_of_plays\":4563,\"stats_number_of_comments\":4,\"duration\":175,\"width\":640,\"height\":360,\"tags\":\"cherry
|
73
|
+
bloom, secret sounds, king of the knife, rock, alternative\",\"embed_privacy\":\"anywhere\"}]"
|
69
74
|
http_version:
|
70
|
-
recorded_at:
|
71
|
-
recorded_with: VCR 2.
|
75
|
+
recorded_at: Thu, 20 Feb 2014 12:43:23 GMT
|
76
|
+
recorded_with: VCR 2.8.0
|
@@ -8,32 +8,43 @@ http_interactions:
|
|
8
8
|
string: ''
|
9
9
|
headers:
|
10
10
|
User-Agent:
|
11
|
-
- VideoInfo/2.0.
|
11
|
+
- VideoInfo/2.0.2
|
12
12
|
Accept-Encoding:
|
13
13
|
- gzip;q=1.0,deflate;q=0.6,identity;q=0.3
|
14
14
|
Accept:
|
15
|
-
-
|
15
|
+
- "*/*"
|
16
16
|
response:
|
17
17
|
status:
|
18
18
|
code: 200
|
19
19
|
message: OK
|
20
20
|
headers:
|
21
|
+
Age:
|
22
|
+
- '2'
|
23
|
+
Date:
|
24
|
+
- Thu, 20 Feb 2014 12:43:22 GMT
|
25
|
+
Expires:
|
26
|
+
- Thu, 20 Feb 2014 12:44:22 GMT
|
27
|
+
Connection:
|
28
|
+
- Keep-Alive
|
29
|
+
Via:
|
30
|
+
- 1.1 varnish
|
31
|
+
- dnet-dca
|
32
|
+
Etag:
|
33
|
+
- "\"6dfa4929546eb170df1cf6c24e6b93e8\""
|
21
34
|
Server:
|
22
35
|
- Apache
|
23
36
|
Access-Control-Allow-Origin:
|
24
|
-
-
|
37
|
+
- "*"
|
25
38
|
X-Ratelimit-Limit:
|
26
39
|
- '3600'
|
27
40
|
X-Ratelimit-Remaining:
|
28
|
-
- '
|
41
|
+
- '3599'
|
29
42
|
X-Ratelimit-Reset:
|
30
|
-
- '
|
31
|
-
Expires:
|
32
|
-
- Fri, 25 Oct 2013 20:34:57 GMT
|
43
|
+
- '1392898630'
|
33
44
|
Last-Modified:
|
34
|
-
-
|
35
|
-
|
36
|
-
-
|
45
|
+
- Fri, 14 Feb 2014 05:07:12 GMT
|
46
|
+
X-Ua-Compatible:
|
47
|
+
- IE=edge
|
37
48
|
X-Dns-Prefetch-Control:
|
38
49
|
- 'on'
|
39
50
|
Vary:
|
@@ -44,28 +55,22 @@ http_interactions:
|
|
44
55
|
- '498'
|
45
56
|
Accept-Ranges:
|
46
57
|
- bytes
|
47
|
-
Date:
|
48
|
-
- Fri, 25 Oct 2013 20:33:57 GMT
|
49
58
|
X-Varnish:
|
50
|
-
-
|
51
|
-
Age:
|
52
|
-
- '0'
|
53
|
-
Via:
|
54
|
-
- 1.1 varnish
|
59
|
+
- 1579446639 1579446611
|
55
60
|
X-Varnish-Cache:
|
56
61
|
- '1'
|
57
|
-
|
62
|
+
Cneonction:
|
58
63
|
- close
|
59
64
|
X-Vserver:
|
60
|
-
- 10.90.128.
|
65
|
+
- 10.90.128.147
|
61
66
|
body:
|
62
67
|
encoding: UTF-8
|
63
|
-
string:
|
68
|
+
string: "[{\"id\":898029,\"title\":\"Cherry Bloom - King Of The Knife\",\"description\":\"The
|
64
69
|
first video from the upcoming album Secret Sounds, to download in-stores April
|
65
|
-
14. Checkout http
|
66
|
-
13:10:39"
|
67
|
-
Zangs"
|
68
|
-
bloom, secret sounds, king of the knife, rock, alternative"
|
70
|
+
14. Checkout http:\\/\\/www.cherrybloom.net\",\"url\":\"http:\\/\\/vimeo.com\\/898029\",\"upload_date\":\"2008-04-14
|
71
|
+
13:10:39\",\"thumbnail_small\":\"http:\\/\\/b.vimeocdn.com\\/ts\\/343\\/731\\/34373130_100.jpg\",\"thumbnail_medium\":\"http:\\/\\/b.vimeocdn.com\\/ts\\/343\\/731\\/34373130_200.jpg\",\"thumbnail_large\":\"http:\\/\\/b.vimeocdn.com\\/ts\\/343\\/731\\/34373130_640.jpg\",\"user_id\":206215,\"user_name\":\"Octave
|
72
|
+
Zangs\",\"user_url\":\"http:\\/\\/vimeo.com\\/octave\",\"user_portrait_small\":\"http:\\/\\/b.vimeocdn.com\\/ps\\/257\\/715\\/2577152_30.jpg\",\"user_portrait_medium\":\"http:\\/\\/b.vimeocdn.com\\/ps\\/257\\/715\\/2577152_75.jpg\",\"user_portrait_large\":\"http:\\/\\/b.vimeocdn.com\\/ps\\/257\\/715\\/2577152_100.jpg\",\"user_portrait_huge\":\"http:\\/\\/b.vimeocdn.com\\/ps\\/257\\/715\\/2577152_300.jpg\",\"stats_number_of_likes\":11,\"stats_number_of_plays\":4563,\"stats_number_of_comments\":4,\"duration\":175,\"width\":640,\"height\":360,\"tags\":\"cherry
|
73
|
+
bloom, secret sounds, king of the knife, rock, alternative\",\"embed_privacy\":\"anywhere\"}]"
|
69
74
|
http_version:
|
70
|
-
recorded_at:
|
71
|
-
recorded_with: VCR 2.
|
75
|
+
recorded_at: Thu, 20 Feb 2014 12:43:22 GMT
|
76
|
+
recorded_with: VCR 2.8.0
|
@@ -0,0 +1,147 @@
|
|
1
|
+
---
|
2
|
+
http_interactions:
|
3
|
+
- request:
|
4
|
+
method: get
|
5
|
+
uri: http://vk.com/video39576223_invalid
|
6
|
+
body:
|
7
|
+
encoding: US-ASCII
|
8
|
+
string: ''
|
9
|
+
headers:
|
10
|
+
User-Agent:
|
11
|
+
- VideoInfo/2.0.2
|
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: 404
|
19
|
+
message: Not Found
|
20
|
+
headers:
|
21
|
+
Server:
|
22
|
+
- nginx/1.2.4
|
23
|
+
Date:
|
24
|
+
- Wed, 19 Feb 2014 16:11:08 GMT
|
25
|
+
Content-Type:
|
26
|
+
- text/html
|
27
|
+
Content-Length:
|
28
|
+
- '397'
|
29
|
+
Connection:
|
30
|
+
- keep-alive
|
31
|
+
body:
|
32
|
+
encoding: UTF-8
|
33
|
+
string: |
|
34
|
+
<!DOCTYPE HTML PUBLIC "-//IETF//DTD HTML 2.0//EN">
|
35
|
+
<html><head>
|
36
|
+
<title>404 Not Found</title>
|
37
|
+
</head>
|
38
|
+
<body style="background: #3f5d81 url(http://vk.me/images/error404.png) no-repeat 50% 50%; width: 100%; height: 100%; overflow: hidden;">
|
39
|
+
<a style="position: absolute; left: 50%; top: 50%; margin: -265px -345px 0px; height: 530px; width: 690px;" href="http://vk.com/"></a>
|
40
|
+
</body>
|
41
|
+
</html>
|
42
|
+
http_version:
|
43
|
+
recorded_at: Wed, 19 Feb 2014 16:11:09 GMT
|
44
|
+
- request:
|
45
|
+
method: get
|
46
|
+
uri: http://vk.com/video39576223_invalid
|
47
|
+
body:
|
48
|
+
encoding: US-ASCII
|
49
|
+
string: ''
|
50
|
+
headers:
|
51
|
+
User-Agent:
|
52
|
+
- VideoInfo/2.0.2
|
53
|
+
Accept-Encoding:
|
54
|
+
- gzip;q=1.0,deflate;q=0.6,identity;q=0.3
|
55
|
+
Accept:
|
56
|
+
- "*/*"
|
57
|
+
response:
|
58
|
+
status:
|
59
|
+
code: 404
|
60
|
+
message: Not Found
|
61
|
+
headers:
|
62
|
+
Server:
|
63
|
+
- nginx/1.2.4
|
64
|
+
Date:
|
65
|
+
- Wed, 19 Feb 2014 16:14:50 GMT
|
66
|
+
Content-Type:
|
67
|
+
- text/html
|
68
|
+
Content-Length:
|
69
|
+
- '403'
|
70
|
+
Connection:
|
71
|
+
- keep-alive
|
72
|
+
body:
|
73
|
+
encoding: UTF-8
|
74
|
+
string: |
|
75
|
+
<!DOCTYPE HTML PUBLIC "-//IETF//DTD HTML 2.0//EN">
|
76
|
+
<html><head>
|
77
|
+
<title>404 Not Found</title>
|
78
|
+
</head>
|
79
|
+
<body style="background: #3f5d81 url(http://userapi.com/images/error404.png) no-repeat 50% 50%; width: 100%; height: 100%; overflow: hidden;">
|
80
|
+
<a style="position: absolute; left: 50%; top: 50%; margin: -265px -345px 0px; height: 530px; width: 690px;" href="http://vk.com/"></a>
|
81
|
+
</body>
|
82
|
+
</html>
|
83
|
+
http_version:
|
84
|
+
recorded_at: Wed, 19 Feb 2014 16:14:50 GMT
|
85
|
+
- request:
|
86
|
+
method: head
|
87
|
+
uri: http://vk.com/video39576223_invalid
|
88
|
+
body:
|
89
|
+
encoding: US-ASCII
|
90
|
+
string: ''
|
91
|
+
headers:
|
92
|
+
Accept:
|
93
|
+
- "*/*"
|
94
|
+
User-Agent:
|
95
|
+
- Ruby
|
96
|
+
response:
|
97
|
+
status:
|
98
|
+
code: 501
|
99
|
+
message: Not Implemented
|
100
|
+
headers:
|
101
|
+
Server:
|
102
|
+
- nginx/1.2.4
|
103
|
+
Date:
|
104
|
+
- Wed, 19 Feb 2014 16:15:42 GMT
|
105
|
+
Content-Type:
|
106
|
+
- text/html
|
107
|
+
Content-Length:
|
108
|
+
- '181'
|
109
|
+
Connection:
|
110
|
+
- keep-alive
|
111
|
+
body:
|
112
|
+
encoding: UTF-8
|
113
|
+
string: ''
|
114
|
+
http_version:
|
115
|
+
recorded_at: Wed, 19 Feb 2014 16:15:43 GMT
|
116
|
+
- request:
|
117
|
+
method: head
|
118
|
+
uri: http://vk.com/video39576223_invalid
|
119
|
+
body:
|
120
|
+
encoding: US-ASCII
|
121
|
+
string: ''
|
122
|
+
headers:
|
123
|
+
Accept:
|
124
|
+
- "*/*"
|
125
|
+
User-Agent:
|
126
|
+
- Ruby
|
127
|
+
response:
|
128
|
+
status:
|
129
|
+
code: 501
|
130
|
+
message: Not Implemented
|
131
|
+
headers:
|
132
|
+
Server:
|
133
|
+
- nginx/1.2.4
|
134
|
+
Date:
|
135
|
+
- Wed, 19 Feb 2014 16:16:56 GMT
|
136
|
+
Content-Type:
|
137
|
+
- text/html
|
138
|
+
Content-Length:
|
139
|
+
- '181'
|
140
|
+
Connection:
|
141
|
+
- keep-alive
|
142
|
+
body:
|
143
|
+
encoding: UTF-8
|
144
|
+
string: ''
|
145
|
+
http_version:
|
146
|
+
recorded_at: Wed, 19 Feb 2014 16:16:56 GMT
|
147
|
+
recorded_with: VCR 2.8.0
|