jtv 1.0.0 → 1.0.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 55e6cb2e9244cffac200d57c616e2596b13bf484
4
- data.tar.gz: 5b0cc8b1ba65ce9eba06d372bee8ced5d23a9bcc
3
+ metadata.gz: 8d085a732bc7bbe64b5b2e585c7cbfa014843ad5
4
+ data.tar.gz: 4be3c9e63ebf8088c69bd66cc37f47e428a49796
5
5
  SHA512:
6
- metadata.gz: 0142328529cddcedb4079abfeb955313065da1e2a036aa9431c130da12dba14cf4386632c7e0b13064cd411a075c253e40d0659f0f372812df62af67ac177b45
7
- data.tar.gz: 3d088168caf4810cc63ea011fdde152e849f7b7a7e9bdb7d1c200e644afae44d07d855c9b9da314bbde20ffb227e6f979e598c0884c468a65b51002f7d0fc572
6
+ metadata.gz: 6270b531f17caad9d4d230e12b33e8330eb0ce64bf7772529652a22242107128640da7bb926f7a06a02c09fd4e779077d3d73ec041a0a2a6d1450539eb80a47e
7
+ data.tar.gz: 3be926bab00fc3d9f4a74aa22435426ce3e511cfcda66d88f82e092131decd5697388de8e687addb167eda7db7d958772cc0d22d2292401ebfcd9055752c1ed3
data/.gitignore CHANGED
@@ -15,3 +15,4 @@ spec/reports
15
15
  test/tmp
16
16
  test/version_tmp
17
17
  tmp
18
+ bin/
@@ -0,0 +1,3 @@
1
+ language: ruby
2
+ rvm:
3
+ - '1.9.3'
@@ -16,3 +16,6 @@
16
16
 
17
17
  # v1.0.0
18
18
  * Channel access has been added
19
+
20
+ # v1.0.1
21
+ * Fixes stream and channel API
data/README.md CHANGED
@@ -1,4 +1,4 @@
1
- # Jtv
1
+ # Jtv [![Code Climate](https://codeclimate.com/github/mockra/Jtv.png)](https://codeclimate.com/github/mockra/Jtv) [![Build Status](https://travis-ci.org/mockra/Jtv.png?branch=master)](https://travis-ci.org/mockra/Jtv)
2
2
 
3
3
  This library provides a complete wrapper for the Justin.TV and Twitch.TV APIs.
4
4
 
@@ -19,7 +19,7 @@ Or install it yourself as:
19
19
  ## Justin.TV API Keys
20
20
 
21
21
  If you want access to higher rate limits for your application, then you
22
- need to sign up for a [Justin.TV developer account](http://www.justin.tv/developer/activate).
22
+ need to sign up for a [Justin.TV developer account](http://www.twitch.tv/login?auto=true&redirect_on_login=%2Fdeveloper%2Factivate).
23
23
 
24
24
  Once you have your API Keys, you can set them up using the configuration guide
25
25
  below.
data/Rakefile CHANGED
@@ -3,3 +3,5 @@ require "bundler/gem_tasks"
3
3
  require 'rspec/core/rake_task'
4
4
 
5
5
  RSpec::Core::RakeTask.new(:spec)
6
+
7
+ task default: :spec
@@ -5,11 +5,13 @@ module Jtv
5
5
  end
6
6
 
7
7
  def fans params = {}
8
- get 'channel/fans', params
8
+ id = params[:id] || params[:channel]
9
+ get "channel/fans/#{id}.json", params
9
10
  end
10
11
 
11
12
  def archives params = {}
12
- get 'channel/archives', params
13
+ id = params[:id] || params[:channel]
14
+ get "channel/archives/#{id}.json", params
13
15
  end
14
16
 
15
17
  def embed id, params = {}
@@ -3,11 +3,11 @@ require 'uri'
3
3
  module Jtv
4
4
  module Stream
5
5
  def summary params = {}
6
- get 'stream/summary', params
6
+ get 'stream/summary.json', params
7
7
  end
8
8
 
9
9
  def list params = {}
10
- get 'stream/list', params
10
+ get 'stream/list.json', params
11
11
  end
12
12
 
13
13
  def search query, params = {}
@@ -1,3 +1,3 @@
1
1
  module Jtv
2
- VERSION = "1.0.0"
2
+ VERSION = "1.0.1"
3
3
  end
@@ -12,8 +12,8 @@ describe Jtv::Channel do
12
12
  end
13
13
 
14
14
  describe '#archives', :vcr do
15
- it 'returns an array of archives for given channel' do
16
- archives = Jtv.archives id: 'dotahut', limit: 2
15
+ it 'returns an array of archives for given channel' do
16
+ archives = Jtv.archives channel: 'dotahut', limit: 2
17
17
  expect(archives).to be_an Array
18
18
  expect(archives.count).to eq 2
19
19
  expect(archives.first['video_codec']).to eq 'AVC'
@@ -41,7 +41,7 @@ describe Jtv::Channel do
41
41
  it 'returns an iframe for chat' do
42
42
  chat = Jtv.chat_embed 'justin', height: 50
43
43
  expect(chat).to be_a String
44
- expect(chat).to include 'height:50px'
44
+ expect(chat).to include '50'
45
45
  expect(chat).to include 'iframe'
46
46
  end
47
47
  end
@@ -21,7 +21,7 @@ describe Jtv::Stream do
21
21
  it 'returns streams based on search query' do
22
22
  search = Jtv.search 'league of legends', limit: 10
23
23
  expect(search.count).to eq 10
24
- expect(search.first['category']).to eq 'gaming'
24
+ expect(search.first['category']).to eq 'entertainment'
25
25
  end
26
26
  end
27
27
  end
@@ -14,15 +14,17 @@ describe Jtv::Channel do
14
14
 
15
15
  describe '#fans' do
16
16
  it 'sends fans and params to get' do
17
- client.should_receive(:get).with 'channel/fans', { channel: 'test' }
17
+ client.should_receive(:get).with 'channel/fans/test.json',
18
+ { channel: 'test' }
18
19
  client.fans channel: 'test'
19
20
  end
20
21
  end
21
22
 
22
23
  describe '#archives' do
23
24
  it 'sends archives and params to get' do
24
- client.should_receive(:get).with 'channel/archives', { channel: 'test' }
25
- client.archives channel: 'test'
25
+ client.should_receive(:get).with 'channel/archives/test.json',
26
+ { id: 'test' }
27
+ client.archives id: 'test'
26
28
  end
27
29
  end
28
30
 
@@ -7,14 +7,15 @@ describe Jtv::Stream do
7
7
 
8
8
  describe '#summary' do
9
9
  it 'sends summary and params to get' do
10
- client.should_receive(:get).with 'stream/summary', { channel: 'test' }
10
+ client.should_receive(:get).with 'stream/summary.json',
11
+ { channel: 'test' }
11
12
  client.summary channel: 'test'
12
13
  end
13
14
  end
14
15
 
15
16
  describe '#list' do
16
17
  it 'sends list and params to get' do
17
- client.should_receive(:get).with 'stream/list', { channel: 'test' }
18
+ client.should_receive(:get).with 'stream/list.json', { channel: 'test' }
18
19
  client.list channel: 'test'
19
20
  end
20
21
  end
@@ -2,7 +2,7 @@
2
2
  http_interactions:
3
3
  - request:
4
4
  method: get
5
- uri: http://api.justin.tv/channel/archives?id=dotahut&limit=2
5
+ uri: http://api.justin.tv/channel/archives/dotahut.json?channel=dotahut&limit=2
6
6
  body:
7
7
  encoding: US-ASCII
8
8
  string: ''
@@ -12,8 +12,8 @@ http_interactions:
12
12
  User-Agent:
13
13
  - Jtv Gem
14
14
  Authorization:
15
- - OAuth oauth_nonce="51bdd0301c7a46881c7635851e726de7", oauth_signature="yZqw6ElypWDy5BrEKQCNZMqks8M%3D",
16
- oauth_signature_method="HMAC-SHA1", oauth_timestamp="1361148689", oauth_version="1.0"
15
+ - OAuth oauth_nonce="313bbd99f785484b9cf6e0f0152c1d9b", oauth_signature="OAnY7J6oMHXabdyDIx83PMfMjdw%3D",
16
+ oauth_signature_method="HMAC-SHA1", oauth_timestamp="1368408351", oauth_version="1.0"
17
17
  Accept-Encoding:
18
18
  - gzip;q=1.0,deflate;q=0.6,identity;q=0.3
19
19
  response:
@@ -24,47 +24,44 @@ http_interactions:
24
24
  Server:
25
25
  - nginx
26
26
  Date:
27
- - Mon, 18 Feb 2013 00:51:29 GMT
27
+ - Mon, 13 May 2013 01:25:50 GMT
28
28
  Content-Type:
29
29
  - application/json
30
30
  Transfer-Encoding:
31
31
  - chunked
32
32
  Connection:
33
33
  - close
34
- Status:
35
- - 200 OK
36
- Via:
37
- - Twice 0.2 twice8:3346
38
- X-Runtime:
39
- - '0.027745'
40
- X-Geo:
41
- - US
42
- X-Request-Id:
43
- - 701588087b4b4105c6c82ecef540c699
44
- Etag:
45
- - '"69d23dbdb82971fa60ad0740024a8500"'
46
- X-Ua-Compatible:
47
- - IE=Edge,chrome=1
48
- Cache-Control:
49
- - must-revalidate, private, max-age=0
50
- X-Rack-Cache:
51
- - miss
52
- Set-Cookie:
53
- - language=en; domain=.twitch.tv; path=/; expires=Fri, 18-Feb-2033 00:51:29
54
- GMT
34
+ Vary:
35
+ - Accept-Language, Cookie
36
+ Content-Language:
37
+ - en
55
38
  Front-End-Https:
56
39
  - 'off'
57
40
  body:
58
41
  encoding: UTF-8
59
- string: '[{"image_url_medium":"http://static-cdn.jtvnw.net/jtv.thumbs/archive-368105393-320x240.jpg","video_rotation":"0","created_on":"2013-02-16
60
- 22:36:52 UTC","title":"DotaHut Invitational: No Tidehunter vs. Team Liquid
61
- (bo3 casted by Maut)","filtered":"unchecked","stream_name":"live_user_dotahut","video_bitrate":"1634887.0","broadcaster":"delay","save_forever":"false","broadcast_id":"4881010784","updated_on":"2013-02-16
62
- 22:36:55 UTC","file_name":"2013-2-16/live_user_dotahut_1361053132.flv","id":"368105393","broadcast_part":"6","origin_name":"3810080","file_size":"216827014","audio_codec":"aac","deleted_by_user":"false","user_id":"38409951","tag_list":"","keyframes":"","length":"1061","video_file_url":"http://media22.justin.tv/archives/2013-2-16/live_user_dotahut_1361053132.flv","servers":"23","video_codec":"AVC","last_part":"true","start_time":"2013-02-16
63
- 22:18:52 UTC"},{"image_url_medium":"http://static-cdn.jtvnw.net/jtv.thumbs/archive-368099460-320x240.jpg","video_rotation":"0","created_on":"2013-02-16
64
- 22:19:10 UTC","title":"DotaHut Invitational: No Tidehunter vs. Team Liquid
65
- (bo3 casted by Maut)","filtered":"unchecked","stream_name":"live_user_dotahut","video_bitrate":"1024628.0","broadcaster":"delay","save_forever":"false","broadcast_id":"4881010784","updated_on":"2013-02-16
66
- 22:19:12 UTC","file_name":"2013-2-16/live_user_dotahut_1361051335.flv","id":"368099460","broadcast_part":"5","origin_name":"3810080","file_size":"230157225","audio_codec":"aac","deleted_by_user":"false","user_id":"38409951","tag_list":"","keyframes":"","length":"1797","video_file_url":"http://media32.justin.tv/archives/2013-2-16/live_user_dotahut_1361051335.flv","servers":"34","video_codec":"AVC","last_part":"false","start_time":"2013-02-16
67
- 21:48:55 UTC"}]'
42
+ string: '[{"video_file_url": "http://store33.media33.justin.tv/archives/2013-3-3/live_user_dotahut_1362345627.flv",
43
+ "kind": null, "tag_list": "", "video_rotation": 0, "title": "DotaHut Invitational:
44
+ Fnatic vs. Mouz (Grand Finals) casted by Maut", "created_on": "2013-03-03
45
+ 21:45:21 UTC", "stream_name": "live_user_dotahut", "filtered": "unchecked",
46
+ "video_bitrate": null, "updated_on": "2013-05-12 15:53:11 UTC", "save_forever":
47
+ "true", "id": 373537869, "file_name": "2013-3-3/live_user_dotahut_1362345627.flv",
48
+ "broadcaster": "delay", "broadcast_id": 5016397072, "user_id": 38409951, "origin_name":
49
+ "3842704", "file_size": 286290322, "deleted_by_user": "false", "broadcast_part":
50
+ "4", "keyframes": null, "length": "1470", "image_url_medium": "http://static-cdn.jtvnw.net/jtv.thumbs/archive-373537869-150x113.jpg",
51
+ "servers": "35", "start_time": "2013-03-03 21:20:27 UTC", "last_part": "",
52
+ "video_codec": "AVC", "audio_codec": "aac", "parent_archive_id": null, "description":
53
+ null, "include_on_channel": "none", "status": null}, {"video_file_url": "http://store21.media21.justin.tv/archives/2013-3-3/live_user_dotahut_1362343814.flv",
54
+ "kind": null, "tag_list": "", "video_rotation": 0, "title": "DotaHut Invitational:
55
+ Fnatic vs. Mouz (Grand Finals) casted by Maut", "created_on": "2013-03-03
56
+ 21:20:42 UTC", "stream_name": "live_user_dotahut", "filtered": "unchecked",
57
+ "video_bitrate": null, "updated_on": "2013-03-03 21:20:44 UTC", "save_forever":
58
+ "true", "id": 373529497, "file_name": "2013-3-3/live_user_dotahut_1362343814.flv",
59
+ "broadcaster": "delay", "broadcast_id": 5016397072, "user_id": 38409951, "origin_name":
60
+ "3842704", "file_size": 253298632, "deleted_by_user": "false", "broadcast_part":
61
+ "3", "keyframes": null, "length": "1812", "image_url_medium": "http://static-cdn.jtvnw.net/jtv.thumbs/archive-373529497-150x113.jpg",
62
+ "servers": "22", "start_time": "2013-03-03 20:50:14 UTC", "last_part": "",
63
+ "video_codec": "AVC", "audio_codec": "aac", "parent_archive_id": null, "description":
64
+ null, "include_on_channel": "none", "status": null}]'
68
65
  http_version:
69
- recorded_at: Mon, 18 Feb 2013 00:51:29 GMT
66
+ recorded_at: Mon, 13 May 2013 01:25:51 GMT
70
67
  recorded_with: VCR 2.4.0
@@ -12,8 +12,8 @@ http_interactions:
12
12
  User-Agent:
13
13
  - Jtv Gem
14
14
  Authorization:
15
- - OAuth oauth_nonce="613a09775b6dbb5efbc4e91b7da1c3f4", oauth_signature="XxWxfNSnQqyKGRV3IbCTAND3GLA%3D",
16
- oauth_signature_method="HMAC-SHA1", oauth_timestamp="1361148689", oauth_version="1.0"
15
+ - OAuth oauth_nonce="33ee28e1abd9cc56f1845fcc9f7d7d01", oauth_signature="8tYl1bSPE%2FTn5%2FLd95itt7GxuCo%3D",
16
+ oauth_signature_method="HMAC-SHA1", oauth_timestamp="1368408351", oauth_version="1.0"
17
17
  Accept-Encoding:
18
18
  - gzip;q=1.0,deflate;q=0.6,identity;q=0.3
19
19
  response:
@@ -24,46 +24,49 @@ http_interactions:
24
24
  Server:
25
25
  - nginx
26
26
  Date:
27
- - Mon, 18 Feb 2013 00:51:29 GMT
27
+ - Mon, 13 May 2013 01:25:50 GMT
28
28
  Content-Type:
29
29
  - application/json
30
30
  Transfer-Encoding:
31
31
  - chunked
32
32
  Connection:
33
33
  - close
34
- Status:
35
- - 200 OK
36
- Via:
37
- - Twice 0.2 twice1:3357
38
- X-Runtime:
39
- - '0.013731'
40
- X-Geo:
41
- - US
42
- X-Request-Id:
43
- - 914065f70dc7d033f46e7f6f7afbc54e
44
- Etag:
45
- - '"bfaefa574dd7d39f6d74ff48befc9bc1"'
46
- X-Ua-Compatible:
47
- - IE=Edge,chrome=1
48
- Cache-Control:
49
- - must-revalidate, private, max-age=0
50
- X-Rack-Cache:
51
- - miss
52
- Set-Cookie:
53
- - language=en; domain=.twitch.tv; path=/; expires=Fri, 18-Feb-2033 00:51:29
54
- GMT
34
+ Vary:
35
+ - Accept-Language, Cookie
36
+ Content-Language:
37
+ - en
55
38
  Front-End-Https:
56
39
  - 'off'
57
40
  body:
58
41
  encoding: UTF-8
59
- string: '{"screen_cap_url_huge":"http://static-cdn.jtvnw.net/previews/live_user_apidemo-630x473.jpg","timezone":"America/Los_Angeles","tags":null,"category_title":"Animals","subcategory":"other_animals","category":"animals","about":null,"views_count":"38302","screen_cap_url_large":"http://static-cdn.jtvnw.net/previews/live_user_apidemo-320x240.jpg","status":null,"channel_background_image_url":null,"embed_enabled":true,"image_url_huge":"http://www-cdn.jtvnw.net/images/xarth/404_user_600x600.png","channel_url":"http://www.justin.tv/apidemo","subcategory_title":"Other
60
- Animals","title":"API demo (in HD)","channel_link_color":"#0066CC","screen_cap_url_small":"http://static-cdn.jtvnw.net/previews/live_user_apidemo-70x53.jpg","mature":null,"channel_header_image_url":null,"screen_cap_url_medium":"http://static-cdn.jtvnw.net/previews/live_user_apidemo-150x113.jpg","image_url_large":"http://www-cdn.jtvnw.net/images/xarth/404_user_300x300.png","id":6285586,"channel_column_color":"#FFFFFF","image_url_medium":"http://www-cdn.jtvnw.net/images/xarth/404_user_150x150.png","producer":false,"image_url_small":"http://www-cdn.jtvnw.net/images/xarth/404_user_70x70.png","channel_background_color":"#E1E3E6","anonymous_chatters_allowed":false,"embed_code":" <object
61
- type=\"application/x-shockwave-flash\" height=\"295\" width=\"353\" id=\"live_embed_player_flash\"
42
+ string: '{"subcategory": "other_animals", "category": "animals", "id": 6285586,
43
+ "login": "apidemo", "title": "API demo (in HD)", "status": null, "tags": null,
44
+ "producer": "false", "category_title": "Animals", "subcategory_title": "Other
45
+ Animals", "language": "en", "timezone": "", "channel_url": "http://www.justin.tv/apidemo",
46
+ "mature": null, "image_url_huge": "http://www-cdn.jtvnw.net/static/images/404_user_600x600.png",
47
+ "image_url_large": "http://www-cdn.jtvnw.net/static/images/404_user_300x300.png",
48
+ "image_url_medium": "http://www-cdn.jtvnw.net/static/images/404_user_150x150.png",
49
+ "image_url_small": "http://www-cdn.jtvnw.net/static/images/404_user_70x70.png",
50
+ "image_url_tiny": "http://www-cdn.jtvnw.net/static/images/404_user_50x50.png",
51
+ "screen_cap_url_huge": "http://static-cdn.jtvnw.net/previews/live_user_apidemo-630x473.jpg",
52
+ "screen_cap_url_large": "http://static-cdn.jtvnw.net/previews/live_user_apidemo-320x240.jpg",
53
+ "screen_cap_url_medium": "http://static-cdn.jtvnw.net/previews/live_user_apidemo-150x113.jpg",
54
+ "screen_cap_url_small": "http://static-cdn.jtvnw.net/previews/live_user_apidemo-70x53.jpg",
55
+ "embed_enabled": "true", "embed_code": "<object type=\"application/x-shockwave-flash\"
62
56
  data=\"http://www.justin.tv/widgets/live_embed_player.swf?channel=apidemo\"
63
- bgcolor=\"#000000\"><param name=\"allowFullScreen\" value=\"true\" /><param
64
- name=\"allowscriptaccess\" value=\"always\" /><param name=\"movie\" value=\"http://www.justin.tv/widgets/live_embed_player.swf\"
65
- /><param name=\"flashvars\" value=\"auto_play=false&channel=apidemo&start_volume=25\"
66
- /></object>\n","image_url_tiny":"http://www-cdn.jtvnw.net/images/xarth/404_user_50x50.png","language":"en","login":"apidemo","channel_text_color":"#222222","description":null}'
57
+ id=\"live_embed_player_flash\" height=\"300\" width=\"400\" bgcolor=\"#000000\"><param
58
+ name=\"allowFullScreen\" value=\"true\"/><param name=\"allowScriptAccess\"
59
+ value=\"always\" /><param name=\"allowNetworking\" value=\"all\" /><param
60
+ name=\"movie\" value=\"http://www.justin.tv/widgets/live_embed_player.swf\"
61
+ /><param name=\"flashvars\" value=\"hostname=www.justin.tv&channel=apidemo&auto_play=false&start_volume=25\"
62
+ /></object><a href=\"http://www.justin.tv/apidemo#r=-rid-&amp;s=em\" class=\"trk\"
63
+ style=\"padding:2px 0px 4px; display:block; width:345px; font-weight:normal;
64
+ font-size:10px; text-decoration:underline; text-align:center\">Watch live
65
+ video from apidemo on www.justin.tv</a>", "views_count": "38434", "anonymous_chatters_allowed":
66
+ "false", "about": null, "description": null, "channel_text_color": "#222222",
67
+ "channel_link_color": "#0066CC", "channel_column_color": "#FFFFFF", "channel_background_color":
68
+ "#E1E3E6", "channel_background_image_url": null, "channel_header_image_url":
69
+ null}'
67
70
  http_version:
68
- recorded_at: Mon, 18 Feb 2013 00:51:29 GMT
71
+ recorded_at: Mon, 13 May 2013 01:25:51 GMT
69
72
  recorded_with: VCR 2.4.0
@@ -12,8 +12,8 @@ http_interactions:
12
12
  User-Agent:
13
13
  - Jtv Gem
14
14
  Authorization:
15
- - OAuth oauth_nonce="c57595a8e3d82e76db2848784d7d5547", oauth_signature="fQx4lA2M9B3Fz0yqo%2BBK7M3%2FQBc%3D",
16
- oauth_signature_method="HMAC-SHA1", oauth_timestamp="1361148689", oauth_version="1.0"
15
+ - OAuth oauth_nonce="87a9c4baf558db9e5f81df358e97504f", oauth_signature="bPabe7WczeCfUid%2BTv%2FKP23shVA%3D",
16
+ oauth_signature_method="HMAC-SHA1", oauth_timestamp="1368408352", oauth_version="1.0"
17
17
  Accept-Encoding:
18
18
  - gzip;q=1.0,deflate;q=0.6,identity;q=0.3
19
19
  response:
@@ -24,40 +24,23 @@ http_interactions:
24
24
  Server:
25
25
  - nginx
26
26
  Date:
27
- - Mon, 18 Feb 2013 00:51:29 GMT
27
+ - Mon, 13 May 2013 01:25:50 GMT
28
28
  Content-Type:
29
- - application/json; charset=utf-8
29
+ - text/html; charset=utf-8
30
30
  Transfer-Encoding:
31
31
  - chunked
32
32
  Connection:
33
33
  - close
34
- Status:
35
- - 200 OK
36
- Via:
37
- - Twice 0.2 twice1:3360
38
- X-Request-Id:
39
- - ceaf57ac7f9577b8aeba91d9e057987d
40
- X-Geo:
41
- - US
42
- Etag:
43
- - '"25e067f6064fecc3520ba142a2713231"'
44
- X-Ua-Compatible:
45
- - IE=Edge,chrome=1
46
- Cache-Control:
47
- - must-revalidate, private, max-age=0
48
- X-Rack-Cache:
49
- - miss
50
- X-Runtime:
51
- - '0.012019'
34
+ Vary:
35
+ - Accept-Language, Cookie
36
+ Content-Language:
37
+ - en
52
38
  Front-End-Https:
53
39
  - 'off'
54
40
  body:
55
41
  encoding: UTF-8
56
- string: |2
57
- <iframe
58
- style="width:450px;height:50px;"
59
- src="http://www.justin.tv/chat/embed?channel=justin&hide_chat=&default_chat=jtv&tweet_suffix=&over_18=false">
60
- </iframe>
42
+ string: <iframe frameborder="0" scrolling="no" id="chat_embed" src="http://www.justin.tv/chat/embed?channel=justin&amp;default_chat=jtv&amp;popout_chat=true#r=-rid-&amp;s=em"height="50"
43
+ width="300"></iframe>
61
44
  http_version:
62
- recorded_at: Mon, 18 Feb 2013 00:51:29 GMT
45
+ recorded_at: Mon, 13 May 2013 01:25:52 GMT
63
46
  recorded_with: VCR 2.4.0
@@ -12,8 +12,8 @@ http_interactions:
12
12
  User-Agent:
13
13
  - Jtv Gem
14
14
  Authorization:
15
- - OAuth oauth_nonce="5720fa91e80dcb0d41d168d7c29e6d66", oauth_signature="PD%2FdvTUoFGnylecyoCTq3IFUI2k%3D",
16
- oauth_signature_method="HMAC-SHA1", oauth_timestamp="1361148689", oauth_version="1.0"
15
+ - OAuth oauth_nonce="73d1559a86217e6fe4844086ca31dea9", oauth_signature="K7fJ01C7hma9uyO9GxFbp0YHwUw%3D",
16
+ oauth_signature_method="HMAC-SHA1", oauth_timestamp="1368408351", oauth_version="1.0"
17
17
  Accept-Encoding:
18
18
  - gzip;q=1.0,deflate;q=0.6,identity;q=0.3
19
19
  response:
@@ -24,40 +24,30 @@ http_interactions:
24
24
  Server:
25
25
  - nginx
26
26
  Date:
27
- - Mon, 18 Feb 2013 00:51:29 GMT
27
+ - Mon, 13 May 2013 01:25:50 GMT
28
28
  Content-Type:
29
- - application/json; charset=utf-8
29
+ - text/html; charset=utf-8
30
30
  Transfer-Encoding:
31
31
  - chunked
32
32
  Connection:
33
33
  - close
34
- Status:
35
- - 200 OK
36
- Via:
37
- - Twice 0.2 twice3:3343
38
- X-Runtime:
39
- - '0.070356'
40
- X-Geo:
41
- - US
42
- X-Request-Id:
43
- - c4b42558ecf9c10d529f3e9a7f513ba5
44
- Etag:
45
- - '"b6fefa3ca3b7c1c159cef2c6007da800"'
46
- X-Ua-Compatible:
47
- - IE=Edge,chrome=1
48
- Cache-Control:
49
- - must-revalidate, private, max-age=0
50
- X-Rack-Cache:
51
- - miss
52
- Set-Cookie:
53
- - language=en; domain=.twitch.tv; path=/; expires=Fri, 18-Feb-2033 00:51:29
54
- GMT
34
+ Vary:
35
+ - Accept-Language, Cookie
36
+ Content-Language:
37
+ - en
55
38
  Front-End-Https:
56
39
  - 'off'
57
40
  body:
58
41
  encoding: UTF-8
59
- string: |2
60
- <object type="application/x-shockwave-flash" height="295" width="353" id="live_embed_player_flash" data="http://www.justin.tv/widgets/live_embed_player.swf?channel=justin" bgcolor="#000000"><param name="allowFullScreen" value="true" /><param name="allowscriptaccess" value="always" /><param name="movie" value="http://www.justin.tv/widgets/live_embed_player.swf" /><param name="flashvars" value="auto_play=false&channel=justin&start_volume=50" /></object>
42
+ string: <object type="application/x-shockwave-flash" data="http://www.justin.tv/widgets/live_embed_player.swf?channel=justin"
43
+ id="live_embed_player_flash" height="300" width="400" bgcolor="#000000"><param
44
+ name="allowFullScreen" value="true"/><param name="allowScriptAccess" value="always"
45
+ /><param name="allowNetworking" value="all" /><param name="movie" value="http://www.justin.tv/widgets/live_embed_player.swf"
46
+ /><param name="flashvars" value="hostname=www.justin.tv&channel=justin&auto_play=false&start_volume=50"
47
+ /></object><a href="http://www.justin.tv/justin#r=-rid-&amp;s=em" class="trk"
48
+ style="padding:2px 0px 4px; display:block; width:345px; font-weight:normal;
49
+ font-size:10px; text-decoration:underline; text-align:center">Watch live video
50
+ from justin on www.justin.tv</a>
61
51
  http_version:
62
- recorded_at: Mon, 18 Feb 2013 00:51:29 GMT
52
+ recorded_at: Mon, 13 May 2013 01:25:52 GMT
63
53
  recorded_with: VCR 2.4.0