goggle-box 0.1.0
Sign up to get free protection for your applications and to get access to all the features.
- data/.gitignore +4 -0
- data/.rvmrc +1 -0
- data/Gemfile +4 -0
- data/Gemfile.lock +30 -0
- data/Rakefile +2 -0
- data/Readme.md +59 -0
- data/goggle-box.gemspec +24 -0
- data/lib/goggle-box/objectify.rb +25 -0
- data/lib/goggle-box/tvrage/episode.rb +31 -0
- data/lib/goggle-box/tvrage/show.rb +22 -0
- data/lib/goggle-box/tvrage.rb +6 -0
- data/lib/goggle-box/version.rb +3 -0
- data/lib/goggle-box.rb +5 -0
- data/spec/goggle-box/tvrage/episode_spec.rb +55 -0
- data/spec/goggle-box/tvrage/search_spec.rb +63 -0
- data/spec/goggle-box/tvrage/show_spec.rb +129 -0
- data/spec/goggle-box/version_spec.rb +14 -0
- data/spec/goggle_box_spec.rb +5 -0
- data/spec/spec_helper.rb +8 -0
- data/spec/xml/tvrage/episode/single_episode.xml +33 -0
- data/spec/xml/tvrage/search/better_with_you.xml +289 -0
- data/spec/xml/tvrage/search/no_results.xml +2 -0
- data/spec/xml/tvrage/show/better_with_you.xml +29 -0
- data/spec/xml/tvrage/show/better_with_you_empty_second.xml +144 -0
- data/spec/xml/tvrage/show/better_with_you_full_one_season.xml +134 -0
- data/spec/xml/tvrage/show/no_results.xml +3 -0
- metadata +132 -0
data/.gitignore
ADDED
data/.rvmrc
ADDED
@@ -0,0 +1 @@
|
|
1
|
+
rvm use ree@goggle --create
|
data/Gemfile
ADDED
data/Gemfile.lock
ADDED
@@ -0,0 +1,30 @@
|
|
1
|
+
PATH
|
2
|
+
remote: .
|
3
|
+
specs:
|
4
|
+
goggle-box (0.0.1)
|
5
|
+
httparty
|
6
|
+
rspec
|
7
|
+
|
8
|
+
GEM
|
9
|
+
remote: http://rubygems.org/
|
10
|
+
specs:
|
11
|
+
crack (0.1.8)
|
12
|
+
diff-lcs (1.1.2)
|
13
|
+
httparty (0.6.1)
|
14
|
+
crack (= 0.1.8)
|
15
|
+
rspec (2.3.0)
|
16
|
+
rspec-core (~> 2.3.0)
|
17
|
+
rspec-expectations (~> 2.3.0)
|
18
|
+
rspec-mocks (~> 2.3.0)
|
19
|
+
rspec-core (2.3.1)
|
20
|
+
rspec-expectations (2.3.0)
|
21
|
+
diff-lcs (~> 1.1.2)
|
22
|
+
rspec-mocks (2.3.0)
|
23
|
+
|
24
|
+
PLATFORMS
|
25
|
+
ruby
|
26
|
+
|
27
|
+
DEPENDENCIES
|
28
|
+
goggle-box!
|
29
|
+
httparty
|
30
|
+
rspec
|
data/Rakefile
ADDED
data/Readme.md
ADDED
@@ -0,0 +1,59 @@
|
|
1
|
+
## GoggleBox
|
2
|
+
A simple and small Ruby Library for the TVRage API. ([here](http://services.tvrage.com/index.php?page=public))
|
3
|
+
|
4
|
+
### What is a GoggleBox?
|
5
|
+
'Goggle Box' is 'Cockney' (a dialect of British English) rhyming slang for television. Thanks to Caius for the name, which was briefly discussed in the #nwrug IRC channel.
|
6
|
+
|
7
|
+
### What does it do?
|
8
|
+
It allows you to search and retrieve Shows and Episodes from the TVRage API. Objects are returned as OpenStructs.
|
9
|
+
|
10
|
+
### Usage
|
11
|
+
|
12
|
+
#### Search
|
13
|
+
>> shows = GoggleBox::TVRage::Show.search("Better With You")
|
14
|
+
=> [#<OpenStruct status="New Series", started="2010", classification="Scripted", country="US", ended="0", genres=#<OpenStruct genre=["Comedy", "Family"]>, link="http://www.tvrage.com/Better_Together", name="Better With You", showid="25745", seasons="1">..]
|
15
|
+
|
16
|
+
#### Show Information
|
17
|
+
>> show = GoggleBox::TVRage::Show.new(shows.first.showid)
|
18
|
+
=> #<OpenStruct origin_country="US", runtime="30", startdate="Sep/22/2010", status="New Series", started="2010", timezone="GMT-5 -DST", showlink="http://tvrage.com/Better_Together", akas=#<OpenStruct aka=["Better Together", "Leapfrog", "That Couple"]>, classification="Scripted", airtime="20:30", showname="Better With You", ended=nil, network="ABC", genres=#<OpenStruct genre=["Comedy", "Family"]>, airday="Wednesday", showid="25745", seasons="1">
|
19
|
+
|
20
|
+
#### Lazy Loading (Includes Episode Listings)
|
21
|
+
>> show = GoggleBox::TVRage::Show.new(shows.first.showid, :lazy => true)
|
22
|
+
|
23
|
+
- If one season only
|
24
|
+
>> show.episodelist.season => Only season or array of seasons
|
25
|
+
>> show.episodelist.season.episode => Episodes in this season
|
26
|
+
|
27
|
+
- If more than one season
|
28
|
+
>> show.episodelist.season.first => First season
|
29
|
+
>> show.episodelist.season.second => Second season etc
|
30
|
+
>> show.episodelist.season.first.episode => Array of episodes in season etc
|
31
|
+
|
32
|
+
#### Episode Information
|
33
|
+
>> GoggleBox::TVRage::Episode.listings_by_show(show.showid)
|
34
|
+
=> #<OpenStruct season=#<OpenStruct episode=[#<OpenStruct prodnum="296777", seasonnum="01", epnum="1", link="http://www.tvrage.com/Better_With_You/episodes/1064933988", title="Pilot", airdate="2010-09-22">]..>
|
35
|
+
|
36
|
+
>> GoggleBox::TVRage::Episode.information(show.showid, '1x01')
|
37
|
+
=> #<OpenStruct number="01x01", url="http://www.tvrage.com/Better_Together/episodes/1064933988", title="Pilot", airdate="2010-09-22">
|
38
|
+
|
39
|
+
>> GoggleBox::TVRage::Episode.next_episode(show.showid)
|
40
|
+
=> #<OpenStruct number="01x11", airtime=["2011-01-05T20:30:00-5:00", "1294273800"], title="Better with Skinny Jeans", airdate="2011-01-05">
|
41
|
+
|
42
|
+
>> GoggleBox::TVRage::Episode.latest_episode(show.showid)
|
43
|
+
=> #<OpenStruct number="01x10", title="Better with Christmas Crap", airdate="2010-12-08">
|
44
|
+
|
45
|
+
### What doesn't it do?
|
46
|
+
At the minute, it doesn't access the full functionality of the TVRage API. For example, it doesn't yet hook into the TVRage Scheduler or Countdown
|
47
|
+
as these are intended for a future release.
|
48
|
+
|
49
|
+
### Still todo
|
50
|
+
1. Finish off less important TVRage functionality (countdowns etc)
|
51
|
+
2. Implement mappings to override default schema of TVRage and other providers response (season to seasons etc)
|
52
|
+
3. Plug in TheTVDB, IMDB etc
|
53
|
+
4. Tests could be better - they'll improve over time and change
|
54
|
+
|
55
|
+
### Thanks
|
56
|
+
* Caius - For the name
|
57
|
+
* hsume2 - I based the original tests on those from sofa.
|
58
|
+
|
59
|
+
:)
|
data/goggle-box.gemspec
ADDED
@@ -0,0 +1,24 @@
|
|
1
|
+
# -*- encoding: utf-8 -*-
|
2
|
+
$:.push File.expand_path("../lib", __FILE__)
|
3
|
+
require "goggle-box/version"
|
4
|
+
|
5
|
+
Gem::Specification.new do |s|
|
6
|
+
s.name = "goggle-box"
|
7
|
+
s.version = GoggleBox::VERSION
|
8
|
+
s.platform = Gem::Platform::RUBY
|
9
|
+
s.authors = ["Paul Ingham"]
|
10
|
+
s.email = ["paul.ingham@beefeatingmonkeys.com"]
|
11
|
+
s.homepage = "http://www.github.com/Numbers/goggle-box"
|
12
|
+
s.summary = %q{A small ruby library for implementing with the TVRage API.}
|
13
|
+
s.description = %q{A small ruby library for implementing with the TVRage API.}
|
14
|
+
|
15
|
+
s.rubyforge_project = "goggle-box"
|
16
|
+
|
17
|
+
s.files = `git ls-files`.split("\n")
|
18
|
+
s.test_files = `git ls-files -- {test,spec,features}/*`.split("\n")
|
19
|
+
s.executables = `git ls-files -- bin/*`.split("\n").map{ |f| File.basename(f) }
|
20
|
+
s.require_paths = ["lib"]
|
21
|
+
|
22
|
+
s.add_dependency(%q<httparty>)
|
23
|
+
s.add_development_dependency(%q<rspec>)
|
24
|
+
end
|
@@ -0,0 +1,25 @@
|
|
1
|
+
require 'ostruct'
|
2
|
+
|
3
|
+
module Objectify
|
4
|
+
def objectify(object = self)
|
5
|
+
return case object
|
6
|
+
when Hash
|
7
|
+
obj = {}
|
8
|
+
object.each { |k,v| obj[k.downcase] = objectify(v) }
|
9
|
+
OpenStruct.new(obj)
|
10
|
+
when Array
|
11
|
+
object = object.clone
|
12
|
+
object.map! { |i| objectify(i) }
|
13
|
+
else
|
14
|
+
object
|
15
|
+
end
|
16
|
+
end
|
17
|
+
end
|
18
|
+
|
19
|
+
class Hash
|
20
|
+
include Objectify
|
21
|
+
end
|
22
|
+
|
23
|
+
class Array
|
24
|
+
include Objectify
|
25
|
+
end
|
@@ -0,0 +1,31 @@
|
|
1
|
+
module GoggleBox
|
2
|
+
module TVRage
|
3
|
+
class Episode
|
4
|
+
include HTTParty
|
5
|
+
format :xml
|
6
|
+
base_uri 'services.tvrage.com'
|
7
|
+
|
8
|
+
class << self
|
9
|
+
def listings_by_show(show_id = nil)
|
10
|
+
response = get('/feeds/episode_list.php', :query => { :sid => show_id }).parsed_response['Show']['Episodelist']
|
11
|
+
response.nil? ? [] : response.objectify
|
12
|
+
end
|
13
|
+
|
14
|
+
def information(show_id, episode)
|
15
|
+
response = get('/feeds/episodeinfo.php', :query => { :sid => show_id, :ep => episode }).parsed_response['show']['episode']
|
16
|
+
response.nil? ? [] : response.objectify
|
17
|
+
end
|
18
|
+
|
19
|
+
def next_episode(show_id, episode = '1x01')
|
20
|
+
response = get('/feeds/episodeinfo.php', :query => { :sid => show_id, :ep => episode }).parsed_response['show']['nextepisode']
|
21
|
+
response.nil? ? [] : response.objectify
|
22
|
+
end
|
23
|
+
|
24
|
+
def latest_episode(show_id, episode = '1x01')
|
25
|
+
response = get('/feeds/episodeinfo.php', :query => { :sid => show_id, :ep => episode }).parsed_response['show']['latestepisode']
|
26
|
+
response.nil? ? [] : response.objectify
|
27
|
+
end
|
28
|
+
end
|
29
|
+
end
|
30
|
+
end
|
31
|
+
end
|
@@ -0,0 +1,22 @@
|
|
1
|
+
module GoggleBox
|
2
|
+
module TVRage
|
3
|
+
class Show
|
4
|
+
include HTTParty
|
5
|
+
format :xml
|
6
|
+
base_uri 'services.tvrage.com'
|
7
|
+
|
8
|
+
class << self
|
9
|
+
def search(show_name = nil)
|
10
|
+
response = get('/feeds/search.php', :query => { :show => show_name }).parsed_response['Results']['show']
|
11
|
+
response.nil? ? [] : response.objectify
|
12
|
+
end
|
13
|
+
|
14
|
+
def new(show_id = nil, options = {})
|
15
|
+
params = options[:lazy] ? { :file => 'full_show_info', :tag => 'Show' } : { :file => 'showinfo', :tag => 'Showinfo' }
|
16
|
+
response = get("/feeds/#{params[:file]}.php", :query => { :sid => show_id }).parsed_response["#{params[:tag]}"]
|
17
|
+
response.nil? ? [] : response.objectify
|
18
|
+
end
|
19
|
+
end
|
20
|
+
end
|
21
|
+
end
|
22
|
+
end
|
data/lib/goggle-box.rb
ADDED
@@ -0,0 +1,55 @@
|
|
1
|
+
require 'spec_helper'
|
2
|
+
|
3
|
+
module GoggleBox::TVRage
|
4
|
+
describe Episode do
|
5
|
+
before do
|
6
|
+
@show_id = 25745
|
7
|
+
@episode = '1x01'
|
8
|
+
xml = File.read("spec/xml/tvrage/episode/single_episode.xml")
|
9
|
+
FakeWeb.register_uri(:get, "http://services.tvrage.com/feeds/episodeinfo.php?sid=#{@show_id}&ep=#{@episode}", :body => xml)
|
10
|
+
end
|
11
|
+
|
12
|
+
describe "individual episode information" do
|
13
|
+
subject { Episode.information(@show_id, @episode) }
|
14
|
+
{
|
15
|
+
:number => "01x01",
|
16
|
+
:title => "Pilot",
|
17
|
+
:airdate => "2010-09-22",
|
18
|
+
:url => "http://www.tvrage.com/Better_Together/episodes/1064933988"
|
19
|
+
}.each do |attr, value|
|
20
|
+
it "Episode should respond to #{attr}" do
|
21
|
+
subject.send(attr).should == value
|
22
|
+
end
|
23
|
+
end
|
24
|
+
end
|
25
|
+
|
26
|
+
describe "next episode information" do
|
27
|
+
subject { Episode.next_episode(@show_id, '1x01') }
|
28
|
+
{
|
29
|
+
:number => "01x11",
|
30
|
+
:title => "Better with Skinny Jeans",
|
31
|
+
:airdate => "2011-01-05",
|
32
|
+
:airtime => ["2011-01-05T20:30:00-5:00", "1294273800"]
|
33
|
+
}.each do |attr, value|
|
34
|
+
it "Episode should respond to #{attr}" do
|
35
|
+
subject.send(attr).should == value
|
36
|
+
end
|
37
|
+
end
|
38
|
+
end
|
39
|
+
|
40
|
+
describe "latest episode information" do
|
41
|
+
subject { Episode.latest_episode(@show_id, '1x01') }
|
42
|
+
{
|
43
|
+
:number => "01x10",
|
44
|
+
:title => "Better with Christmas Crap",
|
45
|
+
:airdate => "2010-12-08"
|
46
|
+
}.each do |attr, value|
|
47
|
+
it "Episode should respond to #{attr}" do
|
48
|
+
subject.send(attr).should == value
|
49
|
+
end
|
50
|
+
end
|
51
|
+
end
|
52
|
+
|
53
|
+
end
|
54
|
+
end
|
55
|
+
|
@@ -0,0 +1,63 @@
|
|
1
|
+
require 'spec_helper'
|
2
|
+
|
3
|
+
module GoggleBox::TVRage
|
4
|
+
describe Show do
|
5
|
+
before do
|
6
|
+
@show_name = "Better With You"
|
7
|
+
end
|
8
|
+
|
9
|
+
describe "a successful search" do
|
10
|
+
before do
|
11
|
+
xml = File.read("spec/xml/tvrage/search/better_with_you.xml")
|
12
|
+
FakeWeb.register_uri(:get, "http://services.tvrage.com/feeds/search.php?show=#{URI.escape(@show_name)}", :body => xml)
|
13
|
+
end
|
14
|
+
|
15
|
+
subject { Show.search(@show_name) }
|
16
|
+
it "Resultset should be an array" do
|
17
|
+
subject.class.should be(Array)
|
18
|
+
end
|
19
|
+
|
20
|
+
it "Resultset should not be an empty array" do
|
21
|
+
subject.should have_at_least(1).items
|
22
|
+
end
|
23
|
+
|
24
|
+
it "Resultset should contain openstructs" do
|
25
|
+
subject.first.class.should be(OpenStruct)
|
26
|
+
end
|
27
|
+
|
28
|
+
{
|
29
|
+
:showid => "25745",
|
30
|
+
:name => "Better With You",
|
31
|
+
:link => "http://www.tvrage.com/Better_Together",
|
32
|
+
:country => "US",
|
33
|
+
:started => "2010",
|
34
|
+
:ended => "0",
|
35
|
+
:seasons => "1",
|
36
|
+
:status => "New Series",
|
37
|
+
:classification => "Scripted",
|
38
|
+
:genres => OpenStruct.new(:genre => ["Comedy", "Family"])
|
39
|
+
}.each do |attr, value|
|
40
|
+
it "Show should respond to #{attr}" do
|
41
|
+
subject.first.send(attr).should == value
|
42
|
+
end
|
43
|
+
end
|
44
|
+
end
|
45
|
+
|
46
|
+
describe "an unsuccessful search" do
|
47
|
+
before do
|
48
|
+
xml = File.read("spec/xml/tvrage/search/no_results.xml")
|
49
|
+
FakeWeb.register_uri(:get, "http://services.tvrage.com/feeds/search.php?show=#{URI.escape(@show_name)}", :body => xml)
|
50
|
+
end
|
51
|
+
|
52
|
+
subject { Show.search(@show_name) }
|
53
|
+
it "should be an array" do
|
54
|
+
subject.class.should be(Array)
|
55
|
+
end
|
56
|
+
|
57
|
+
it "should be an empty array" do
|
58
|
+
subject.should be_empty
|
59
|
+
end
|
60
|
+
end
|
61
|
+
|
62
|
+
end
|
63
|
+
end
|
@@ -0,0 +1,129 @@
|
|
1
|
+
require 'spec_helper'
|
2
|
+
|
3
|
+
module GoggleBox::TVRage
|
4
|
+
describe Show do
|
5
|
+
before do
|
6
|
+
@show_id = 25745
|
7
|
+
end
|
8
|
+
|
9
|
+
describe "a show with a real ID" do
|
10
|
+
before do
|
11
|
+
xml = File.read("spec/xml/tvrage/show/better_with_you.xml")
|
12
|
+
FakeWeb.register_uri(:get, "http://services.tvrage.com/feeds/showinfo.php?sid=#{@show_id}", :body => xml)
|
13
|
+
end
|
14
|
+
|
15
|
+
subject { Show.new(@show_id) }
|
16
|
+
{
|
17
|
+
:showid => "25745",
|
18
|
+
:showname => "Better With You",
|
19
|
+
:showlink => "http://www.tvrage.com/Better_Together",
|
20
|
+
:seasons => "1",
|
21
|
+
:image => "http://images.tvrage.com/shows/26/25745.jpg",
|
22
|
+
:started => "2010",
|
23
|
+
:startdate => "Sep/22/2010",
|
24
|
+
:ended => nil,
|
25
|
+
:origin_country => "US",
|
26
|
+
:status => "New Series",
|
27
|
+
:classification => "Scripted",
|
28
|
+
:summary => "Which kind of love is better, the slow and steady kind that grows over time or the truly, madly deeply kind that happens in a flash? Two couples, from two different generations, have very different outlooks on love. But together, they discover that when it comes to relationships, everyone has to find their own way. Ben and Maddie followed every rule, except for getting married. After nine years together, they're totally committed to each other and they don't need a stupid piece of paper to prove it, thank you very much. At least until Maddie's little sister Mia gets engaged. Mia and Casey are completely different from Ben and Maddie. Young and impulsive, Mia and Casey live in the moment which might have something to do with how Mia and Casey ended up both pregnant and engaged after only two months of dating. At first, Ben and Maddie are shocked... and maybe even a little jealous. Should they have gotten married at some point? They're even more jealous when Maddie and Mia's notoriously high-maintenance, meddling parents, the Putneys, welcome their new son-in-law with open arms. Maddie and Ben have to ask themselves... is their slow, cautious love as strong as Mia and Casey's untamed version? As Ben and Maddie welcome Casey into their lives and help guide him through the minefields of Maddie and Mia's eccentric family little by little both of these couples discover that married or not, it's the togetherness that counts. From creator Shana Goldberg-Meehan (Friends, Mad About You) comes a fresh, funny look at couplehood. No two relationships are quite alike. That's part of what makes them so great.",
|
29
|
+
:genres => OpenStruct.new(:genre => ["Comedy", "Family"]),
|
30
|
+
:runtime => "30",
|
31
|
+
:network => "ABC",
|
32
|
+
:airtime => "20:30",
|
33
|
+
:airday => "Wednesday",
|
34
|
+
:timezone => "GMT-5 -DST",
|
35
|
+
:akas => OpenStruct.new(:aka => ["Better Together", "Leapfrog", "That Couple"])
|
36
|
+
}.each do |attr, value|
|
37
|
+
it "Show should respond to #{attr}" do
|
38
|
+
subject.send(attr).should == value
|
39
|
+
end
|
40
|
+
end
|
41
|
+
|
42
|
+
describe "lazy loading of show and episode information together" do
|
43
|
+
before do
|
44
|
+
xml = File.read("spec/xml/tvrage/show/better_with_you_full_one_season.xml")
|
45
|
+
FakeWeb.register_uri(:get, "http://services.tvrage.com/feeds/full_show_info.php?sid=#{@show_id}", :body => xml)
|
46
|
+
end
|
47
|
+
|
48
|
+
subject { Show.new(@show_id, :lazy => true) }
|
49
|
+
{
|
50
|
+
:showid => "25745",
|
51
|
+
:name => "Better With You",
|
52
|
+
:showlink => "http://tvrage.com/Better_With_You",
|
53
|
+
:image => "http://images.tvrage.com/shows/26/25745.jpg",
|
54
|
+
:started => "Sep/22/2010",
|
55
|
+
:ended => nil,
|
56
|
+
:origin_country => "US",
|
57
|
+
:status => "New Series",
|
58
|
+
:classification => "Scripted",
|
59
|
+
:genres => OpenStruct.new(:genre => ["Comedy", "Family"]),
|
60
|
+
:runtime => "30",
|
61
|
+
:network => "ABC",
|
62
|
+
:airtime => "20:30",
|
63
|
+
:airday => "Wednesday",
|
64
|
+
:timezone => "GMT-5 -DST",
|
65
|
+
:akas => OpenStruct.new(:aka => ["Better Together", "Leapfrog", "That Couple"])
|
66
|
+
}.each do |attr, value|
|
67
|
+
it "Show should respond to #{attr}" do
|
68
|
+
subject.send(attr).should == value
|
69
|
+
end
|
70
|
+
end
|
71
|
+
|
72
|
+
it "Show should respond to episodelist" do
|
73
|
+
subject.episodelist.class.should be(OpenStruct)
|
74
|
+
end
|
75
|
+
|
76
|
+
describe "Shows with just one season" do
|
77
|
+
it "Episodelist should have an OpenStruct of a season if just one" do
|
78
|
+
subject.episodelist.season.class.should be(OpenStruct)
|
79
|
+
end
|
80
|
+
|
81
|
+
it "Season should have an array of episodes if more than one" do
|
82
|
+
subject.episodelist.season.episode.class.should be(Array)
|
83
|
+
end
|
84
|
+
|
85
|
+
it "Season should more than one episode to constitute an array" do
|
86
|
+
subject.episodelist.season.episode.size.should have_at_least(2).items
|
87
|
+
end
|
88
|
+
end
|
89
|
+
|
90
|
+
describe "Shows with more than one season" do
|
91
|
+
before do
|
92
|
+
xml = File.read("spec/xml/tvrage/show/better_with_you_empty_second.xml")
|
93
|
+
FakeWeb.register_uri(:get, "http://services.tvrage.com/feeds/full_show_info.php?sid=#{@show_id}", :body => xml)
|
94
|
+
end
|
95
|
+
|
96
|
+
it "Episodelist should have an Array of seasons" do
|
97
|
+
subject.episodelist.season.class.should be(Array)
|
98
|
+
end
|
99
|
+
|
100
|
+
it "Array of Seasons shouldn't be equal to one" do
|
101
|
+
subject.episodelist.season.size.should have_at_least(2).items
|
102
|
+
end
|
103
|
+
|
104
|
+
it "Episode should have an OpenStruct if only one episode" do
|
105
|
+
subject.episodelist.season[1].episode.class.should be(OpenStruct)
|
106
|
+
end
|
107
|
+
|
108
|
+
end
|
109
|
+
end
|
110
|
+
end
|
111
|
+
|
112
|
+
describe "an invalid show id" do
|
113
|
+
before do
|
114
|
+
xml = File.read("spec/xml/tvrage/show/no_results.xml")
|
115
|
+
FakeWeb.register_uri(:get, "http://services.tvrage.com/feeds/showinfo.php?sid=#{@show_id}", :body => xml)
|
116
|
+
end
|
117
|
+
|
118
|
+
subject { Show.new(@show_id) }
|
119
|
+
it "should be an array" do
|
120
|
+
subject.class.should be(Array)
|
121
|
+
end
|
122
|
+
|
123
|
+
it "should be an empty array" do
|
124
|
+
subject.should be_empty
|
125
|
+
end
|
126
|
+
end
|
127
|
+
|
128
|
+
end
|
129
|
+
end
|
@@ -0,0 +1,14 @@
|
|
1
|
+
require 'spec_helper'
|
2
|
+
|
3
|
+
describe GoggleBox do
|
4
|
+
describe "versioning included in the gem" do
|
5
|
+
it "should have a version" do
|
6
|
+
GoggleBox::VERSION.should_not be_blank
|
7
|
+
end
|
8
|
+
|
9
|
+
it "should match major, minor and patch" do
|
10
|
+
version = GoggleBox::VERSION.split('.')
|
11
|
+
version.size.should == 3
|
12
|
+
end
|
13
|
+
end
|
14
|
+
end
|
data/spec/spec_helper.rb
ADDED
@@ -0,0 +1,33 @@
|
|
1
|
+
<show id='25745'>
|
2
|
+
<name>Better With You</name>
|
3
|
+
<link>http://www.tvrage.com/Better_Together</link>
|
4
|
+
<started>2010-09-22</started>
|
5
|
+
<ended></ended>
|
6
|
+
<country>USA</country>
|
7
|
+
<status>New Series</status>
|
8
|
+
<classification>Scripted</classification>
|
9
|
+
<genres>
|
10
|
+
<genre>Comedy</genre>
|
11
|
+
<genre>Family</genre>
|
12
|
+
</genres>
|
13
|
+
<airtime>Wednesday at 08:30 pm</airtime>
|
14
|
+
<runtime>30</runtime>
|
15
|
+
<episode>
|
16
|
+
<number>01x01</number>
|
17
|
+
<title>Pilot</title>
|
18
|
+
<airdate>2010-09-22</airdate>
|
19
|
+
<url>http://www.tvrage.com/Better_Together/episodes/1064933988</url>
|
20
|
+
</episode>
|
21
|
+
<latestepisode>
|
22
|
+
<number>01x10</number>
|
23
|
+
<title>Better with Christmas Crap</title>
|
24
|
+
<airdate>2010-12-08</airdate>
|
25
|
+
</latestepisode>
|
26
|
+
<nextepisode>
|
27
|
+
<number>01x11</number>
|
28
|
+
<title>Better with Skinny Jeans</title>
|
29
|
+
<airdate>2011-01-05</airdate>
|
30
|
+
<airtime format='RFC3339'>2011-01-05T20:30:00-5:00</airtime>
|
31
|
+
<airtime format='GMT+0 NODST'>1294273800</airtime>
|
32
|
+
</nextepisode>
|
33
|
+
</show>
|
@@ -0,0 +1,289 @@
|
|
1
|
+
<?xml version="1.0" encoding="UTF-8" ?>
|
2
|
+
<Results>
|
3
|
+
<show>
|
4
|
+
<showid>25745</showid>
|
5
|
+
<name>Better With You</name>
|
6
|
+
<link>http://www.tvrage.com/Better_Together</link>
|
7
|
+
<country>US</country>
|
8
|
+
<started>2010</started>
|
9
|
+
<ended>0</ended>
|
10
|
+
<seasons>1</seasons>
|
11
|
+
<status>New Series</status>
|
12
|
+
<classification>Scripted</classification>
|
13
|
+
<genres>
|
14
|
+
<genre>Comedy</genre>
|
15
|
+
<genre>Family</genre>
|
16
|
+
</genres>
|
17
|
+
</show>
|
18
|
+
<show>
|
19
|
+
<showid>19907</showid>
|
20
|
+
<name>Better Off Ted</name>
|
21
|
+
<link>http://www.tvrage.com/Better_Off_Ted</link>
|
22
|
+
<country>US</country>
|
23
|
+
<started>2009</started>
|
24
|
+
<ended>2010</ended>
|
25
|
+
<seasons>2</seasons>
|
26
|
+
<status>Canceled/Ended</status>
|
27
|
+
<classification>Scripted</classification>
|
28
|
+
<genres>
|
29
|
+
<genre>Comedy</genre>
|
30
|
+
</genres>
|
31
|
+
</show>
|
32
|
+
<show>
|
33
|
+
<showid>4151</showid>
|
34
|
+
<name>Knowing Me, Knowing You with Alan Partridge</name>
|
35
|
+
<link>http://www.tvrage.com/shows/id-4151</link>
|
36
|
+
<country>UK</country>
|
37
|
+
<started>1994</started>
|
38
|
+
<ended>1995</ended>
|
39
|
+
<seasons>1</seasons>
|
40
|
+
<status>Canceled/Ended</status>
|
41
|
+
<classification>Scripted</classification>
|
42
|
+
<genres>
|
43
|
+
<genre>Comedy</genre>
|
44
|
+
</genres>
|
45
|
+
</show>
|
46
|
+
<show>
|
47
|
+
<showid>16604</showid>
|
48
|
+
<name>Better Half</name>
|
49
|
+
<link>http://www.tvrage.com/shows/id-16604</link>
|
50
|
+
<country>US</country>
|
51
|
+
<started>2007</started>
|
52
|
+
<ended>2007</ended>
|
53
|
+
<seasons>1</seasons>
|
54
|
+
<status>Canceled/Ended</status>
|
55
|
+
<classification>Reality</classification>
|
56
|
+
<genres></genres>
|
57
|
+
</show>
|
58
|
+
<show>
|
59
|
+
<showid>2771</showid>
|
60
|
+
<name>Better Days</name>
|
61
|
+
<link>http://www.tvrage.com/shows/id-2771</link>
|
62
|
+
<country>US</country>
|
63
|
+
<started>1986</started>
|
64
|
+
<ended>1986</ended>
|
65
|
+
<seasons>1</seasons>
|
66
|
+
<status>Canceled/Ended</status>
|
67
|
+
<classification>Scripted</classification>
|
68
|
+
<genres>
|
69
|
+
<genre>Comedy</genre>
|
70
|
+
</genres>
|
71
|
+
</show>
|
72
|
+
<show>
|
73
|
+
<showid>7007</showid>
|
74
|
+
<name>Would You Buy a House with a Stranger?</name>
|
75
|
+
<link>http://www.tvrage.com/Would_You_Buy_a_House_with_a_Stranger</link>
|
76
|
+
<country>UK</country>
|
77
|
+
<started>2005</started>
|
78
|
+
<ended>2006</ended>
|
79
|
+
<seasons>1</seasons>
|
80
|
+
<status>Canceled/Ended</status>
|
81
|
+
<classification>Reality</classification>
|
82
|
+
<genres></genres>
|
83
|
+
</show>
|
84
|
+
<show>
|
85
|
+
<showid>26630</showid>
|
86
|
+
<name>Better</name>
|
87
|
+
<link>http://www.tvrage.com/shows/id-26630</link>
|
88
|
+
<country>US</country>
|
89
|
+
<started>2007</started>
|
90
|
+
<ended>0</ended>
|
91
|
+
<seasons>0</seasons>
|
92
|
+
<status>Returning Series</status>
|
93
|
+
<classification>Talk Shows</classification>
|
94
|
+
<genres>
|
95
|
+
<genre>Lifestyle</genre>
|
96
|
+
</genres>
|
97
|
+
</show>
|
98
|
+
<show>
|
99
|
+
<showid>6576</showid>
|
100
|
+
<name>What I Like About You</name>
|
101
|
+
<link>http://www.tvrage.com/What_I_Like_About_You</link>
|
102
|
+
<country>US</country>
|
103
|
+
<started>2002</started>
|
104
|
+
<ended>2006</ended>
|
105
|
+
<seasons>4</seasons>
|
106
|
+
<status>Canceled/Ended</status>
|
107
|
+
<classification>Scripted</classification>
|
108
|
+
<genres>
|
109
|
+
<genre>Comedy</genre>
|
110
|
+
<genre>Drama</genre>
|
111
|
+
</genres>
|
112
|
+
</show>
|
113
|
+
<show>
|
114
|
+
<showid>18342</showid>
|
115
|
+
<name>So You Think You Can Dance (AU)</name>
|
116
|
+
<link>http://www.tvrage.com/shows/id-18342</link>
|
117
|
+
<country>AU</country>
|
118
|
+
<started>2008</started>
|
119
|
+
<ended>0</ended>
|
120
|
+
<seasons>3</seasons>
|
121
|
+
<status>Returning Series</status>
|
122
|
+
<classification>Reality</classification>
|
123
|
+
<genres>
|
124
|
+
<genre>Dance</genre>
|
125
|
+
<genre>Talent</genre>
|
126
|
+
</genres>
|
127
|
+
</show>
|
128
|
+
<show>
|
129
|
+
<showid>19799</showid>
|
130
|
+
<name>So You Think You Can Dance (NL/BE)</name>
|
131
|
+
<link>http://www.tvrage.com/shows/id-19799</link>
|
132
|
+
<country>NL</country>
|
133
|
+
<started>2008</started>
|
134
|
+
<ended>0</ended>
|
135
|
+
<seasons>3</seasons>
|
136
|
+
<status>New Series</status>
|
137
|
+
<classification>Game Show</classification>
|
138
|
+
<genres>
|
139
|
+
<genre>Dance</genre>
|
140
|
+
</genres>
|
141
|
+
</show>
|
142
|
+
<show>
|
143
|
+
<showid>18590</showid>
|
144
|
+
<name>I Can Make You Thin with Paul McKenna</name>
|
145
|
+
<link>http://www.tvrage.com/shows/id-18590</link>
|
146
|
+
<country>US</country>
|
147
|
+
<started>2008</started>
|
148
|
+
<ended>2008</ended>
|
149
|
+
<seasons>1</seasons>
|
150
|
+
<status>Canceled/Ended</status>
|
151
|
+
<classification>Reality</classification>
|
152
|
+
<genres>
|
153
|
+
<genre>Fitness</genre>
|
154
|
+
<genre>Lifestyle</genre>
|
155
|
+
</genres>
|
156
|
+
</show>
|
157
|
+
<show>
|
158
|
+
<showid>18019</showid>
|
159
|
+
<name>Never Better</name>
|
160
|
+
<link>http://www.tvrage.com/shows/id-18019</link>
|
161
|
+
<country>UK</country>
|
162
|
+
<started>2008</started>
|
163
|
+
<ended>2008</ended>
|
164
|
+
<seasons>1</seasons>
|
165
|
+
<status>Canceled/Ended</status>
|
166
|
+
<classification>Scripted</classification>
|
167
|
+
<genres>
|
168
|
+
<genre>Comedy</genre>
|
169
|
+
</genres>
|
170
|
+
</show>
|
171
|
+
<show>
|
172
|
+
<showid>7533</showid>
|
173
|
+
<name>Better Homes and Gardens</name>
|
174
|
+
<link>http://www.tvrage.com/shows/id-7533</link>
|
175
|
+
<country>AU</country>
|
176
|
+
<started>1996</started>
|
177
|
+
<ended>0</ended>
|
178
|
+
<seasons>14</seasons>
|
179
|
+
<status>Returning Series</status>
|
180
|
+
<classification>Talk Shows</classification>
|
181
|
+
<genres>
|
182
|
+
<genre>Arts & Crafts</genre>
|
183
|
+
<genre>Cooking/Food</genre>
|
184
|
+
<genre>Design/Decorating</genre>
|
185
|
+
<genre>Garden/Landscape</genre>
|
186
|
+
<genre>How To/Do It Yourself</genre>
|
187
|
+
</genres>
|
188
|
+
</show>
|
189
|
+
<show>
|
190
|
+
<showid>18334</showid>
|
191
|
+
<name>My Dad Is Better Than Your Dad</name>
|
192
|
+
<link>http://www.tvrage.com/shows/id-18334</link>
|
193
|
+
<country>US</country>
|
194
|
+
<started>2008</started>
|
195
|
+
<ended>2008</ended>
|
196
|
+
<seasons>1</seasons>
|
197
|
+
<status>Canceled/Ended</status>
|
198
|
+
<classification>Reality</classification>
|
199
|
+
<genres>
|
200
|
+
<genre>Educational</genre>
|
201
|
+
<genre>Family</genre>
|
202
|
+
<genre>Talent</genre>
|
203
|
+
</genres>
|
204
|
+
</show>
|
205
|
+
<show>
|
206
|
+
<showid>16883</showid>
|
207
|
+
<name>We Got to Do Better</name>
|
208
|
+
<link>http://www.tvrage.com/shows/id-16883</link>
|
209
|
+
<country>US</country>
|
210
|
+
<started>2007</started>
|
211
|
+
<ended>2007</ended>
|
212
|
+
<seasons>1</seasons>
|
213
|
+
<status>Canceled/Ended</status>
|
214
|
+
<classification>Reality</classification>
|
215
|
+
<genres>
|
216
|
+
<genre>Adult/Porn</genre>
|
217
|
+
<genre>Comedy</genre>
|
218
|
+
</genres>
|
219
|
+
</show>
|
220
|
+
<show>
|
221
|
+
<showid>13456</showid>
|
222
|
+
<name>Let Me Entertain You</name>
|
223
|
+
<link>http://www.tvrage.com/shows/id-13456</link>
|
224
|
+
<country>UK</country>
|
225
|
+
<started>2006</started>
|
226
|
+
<ended>2007</ended>
|
227
|
+
<seasons>2</seasons>
|
228
|
+
<status>Canceled/Ended</status>
|
229
|
+
<classification>Reality</classification>
|
230
|
+
<genres></genres>
|
231
|
+
</show>
|
232
|
+
<show>
|
233
|
+
<showid>24566</showid>
|
234
|
+
<name>So You Think You Can Dance (UK)</name>
|
235
|
+
<link>http://www.tvrage.com/shows/id-24566</link>
|
236
|
+
<country>UK</country>
|
237
|
+
<started>2010</started>
|
238
|
+
<ended>0</ended>
|
239
|
+
<seasons>1</seasons>
|
240
|
+
<status>New Series</status>
|
241
|
+
<classification>Reality</classification>
|
242
|
+
<genres>
|
243
|
+
<genre>Dance</genre>
|
244
|
+
<genre>Music</genre>
|
245
|
+
</genres>
|
246
|
+
</show>
|
247
|
+
<show>
|
248
|
+
<showid>16249</showid>
|
249
|
+
<name>So You Think You're Royal?</name>
|
250
|
+
<link>http://www.tvrage.com/shows/id-16249</link>
|
251
|
+
<country>UK</country>
|
252
|
+
<started>2007</started>
|
253
|
+
<ended>0</ended>
|
254
|
+
<seasons>1</seasons>
|
255
|
+
<status>New Series</status>
|
256
|
+
<classification>Documentary</classification>
|
257
|
+
<genres>
|
258
|
+
<genre>Family</genre>
|
259
|
+
</genres>
|
260
|
+
</show>
|
261
|
+
<show>
|
262
|
+
<showid>11947</showid>
|
263
|
+
<name>The Better Sex</name>
|
264
|
+
<link>http://www.tvrage.com/shows/id-11947</link>
|
265
|
+
<country>US</country>
|
266
|
+
<started>1977</started>
|
267
|
+
<ended>1978</ended>
|
268
|
+
<seasons>0</seasons>
|
269
|
+
<status>Canceled/Ended</status>
|
270
|
+
<classification>Game Show</classification>
|
271
|
+
<genres></genres>
|
272
|
+
</show>
|
273
|
+
<show>
|
274
|
+
<showid>1836</showid>
|
275
|
+
<name>Whatever Turns You On</name>
|
276
|
+
<link>http://www.tvrage.com/shows/id-1836</link>
|
277
|
+
<country>CA</country>
|
278
|
+
<started>1979</started>
|
279
|
+
<ended>1979</ended>
|
280
|
+
<seasons>1</seasons>
|
281
|
+
<status>Canceled/Ended</status>
|
282
|
+
<classification>Variety</classification>
|
283
|
+
<genres>
|
284
|
+
<genre>Comedy</genre>
|
285
|
+
<genre>Music</genre>
|
286
|
+
<genre>Sketch/Improv</genre>
|
287
|
+
</genres>
|
288
|
+
</show>
|
289
|
+
</Results>
|
@@ -0,0 +1,29 @@
|
|
1
|
+
<?xml version="1.0" encoding="UTF-8" ?>
|
2
|
+
<Showinfo>
|
3
|
+
<showid>25745</showid>
|
4
|
+
<showname>Better With You</showname>
|
5
|
+
<showlink>http://www.tvrage.com/Better_Together</showlink>
|
6
|
+
<seasons>1</seasons>
|
7
|
+
<image>http://images.tvrage.com/shows/26/25745.jpg</image>
|
8
|
+
<started>2010</started>
|
9
|
+
<startdate>Sep/22/2010</startdate>
|
10
|
+
<ended></ended>
|
11
|
+
<origin_country>US</origin_country>
|
12
|
+
<status>New Series</status>
|
13
|
+
<classification>Scripted</classification>
|
14
|
+
<summary>Which kind of love is better, the slow and steady kind that grows over time or the truly, madly deeply kind that happens in a flash? Two couples, from two different generations, have very different outlooks on love. But together, they discover that when it comes to relationships, everyone has to find their own way. Ben and Maddie followed every rule, except for getting married. After nine years together, they're totally committed to each other and they don't need a stupid piece of paper to prove it, thank you very much. At least until Maddie's little sister Mia gets engaged. Mia and Casey are completely different from Ben and Maddie. Young and impulsive, Mia and Casey live in the moment which might have something to do with how Mia and Casey ended up both pregnant and engaged after only two months of dating. At first, Ben and Maddie are shocked... and maybe even a little jealous. Should they have gotten married at some point? They're even more jealous when Maddie and Mia's notoriously high-maintenance, meddling parents, the Putneys, welcome their new son-in-law with open arms. Maddie and Ben have to ask themselves... is their slow, cautious love as strong as Mia and Casey's untamed version? As Ben and Maddie welcome Casey into their lives and help guide him through the minefields of Maddie and Mia's eccentric family little by little both of these couples discover that married or not, it's the togetherness that counts. From creator Shana Goldberg-Meehan (Friends, Mad About You) comes a fresh, funny look at couplehood. No two relationships are quite alike. That's part of what makes them so great.</summary>
|
15
|
+
<genres>
|
16
|
+
<genre>Comedy</genre>
|
17
|
+
<genre>Family</genre>
|
18
|
+
</genres>
|
19
|
+
<runtime>30</runtime>
|
20
|
+
<network country="US">ABC</network>
|
21
|
+
<airtime>20:30</airtime>
|
22
|
+
<airday>Wednesday</airday>
|
23
|
+
<timezone>GMT-5 -DST</timezone>
|
24
|
+
<akas>
|
25
|
+
<aka attr="working title">Better Together</aka>
|
26
|
+
<aka attr="Alternate title" country="US">Leapfrog</aka>
|
27
|
+
<aka attr="Alternate title" country="US">That Couple</aka>
|
28
|
+
</akas>
|
29
|
+
</Showinfo>
|
@@ -0,0 +1,144 @@
|
|
1
|
+
<?xml version="1.0" encoding="UTF-8" ?>
|
2
|
+
<Show>
|
3
|
+
<name>Better With You</name>
|
4
|
+
<totalseasons>1</totalseasons>
|
5
|
+
<showid>25745</showid>
|
6
|
+
<showlink>http://tvrage.com/Better_With_You</showlink>
|
7
|
+
<started>Sep/22/2010</started>
|
8
|
+
<ended></ended>
|
9
|
+
<image>http://images.tvrage.com/shows/26/25745.jpg</image>
|
10
|
+
<origin_country>US</origin_country>
|
11
|
+
<status>New Series</status>
|
12
|
+
<classification>Scripted</classification>
|
13
|
+
<genres><genre>Comedy</genre><genre>Family</genre></genres>
|
14
|
+
<runtime>30</runtime>
|
15
|
+
<network country="US">ABC</network>
|
16
|
+
<airtime>20:30</airtime>
|
17
|
+
<airday>Wednesday</airday>
|
18
|
+
<timezone>GMT-5 -DST</timezone>
|
19
|
+
<akas>
|
20
|
+
<aka attr="working title">Better Together</aka>
|
21
|
+
<aka attr="Alternate title" country="US">Leapfrog</aka>
|
22
|
+
<aka attr="Alternate title" country="US">That Couple</aka>
|
23
|
+
</akas>
|
24
|
+
<Episodelist>
|
25
|
+
<Season no="1">
|
26
|
+
<episode>
|
27
|
+
<epnum>1</epnum>
|
28
|
+
<seasonnum>01</seasonnum>
|
29
|
+
<prodnum>296777</prodnum>
|
30
|
+
<airdate>2010-09-22</airdate>
|
31
|
+
<link>http://www.tvrage.com/Better_With_You/episodes/1064933988</link>
|
32
|
+
<title>Pilot</title>
|
33
|
+
<screencap>http://images.tvrage.com/screencaps/129/25745/1064933988.png</screencap>
|
34
|
+
</episode>
|
35
|
+
<episode>
|
36
|
+
<epnum>2</epnum>
|
37
|
+
<seasonnum>02</seasonnum>
|
38
|
+
<prodnum>2J5805</prodnum>
|
39
|
+
<airdate>2010-09-29</airdate>
|
40
|
+
<link>http://www.tvrage.com/Better_With_You/episodes/1064977432</link>
|
41
|
+
<title>Better with Firehouse</title>
|
42
|
+
<screencap>http://images.tvrage.com/screencaps/129/25745/1064977432.jpg</screencap>
|
43
|
+
</episode>
|
44
|
+
<episode>
|
45
|
+
<epnum>3</epnum>
|
46
|
+
<seasonnum>03</seasonnum>
|
47
|
+
<prodnum>2J5804</prodnum>
|
48
|
+
<airdate>2010-10-06</airdate>
|
49
|
+
<link>http://www.tvrage.com/Better_With_You/episodes/1064977433</link>
|
50
|
+
<title>Better with Ben</title>
|
51
|
+
<screencap>http://images.tvrage.com/screencaps/129/25745/1064977433.jpg</screencap>
|
52
|
+
</episode>
|
53
|
+
<episode>
|
54
|
+
<epnum>4</epnum>
|
55
|
+
<seasonnum>04</seasonnum>
|
56
|
+
<prodnum>2J5802</prodnum>
|
57
|
+
<airdate>2010-10-13</airdate>
|
58
|
+
<link>http://www.tvrage.com/Better_With_You/episodes/1064977434</link>
|
59
|
+
<title>Better with Fighting</title>
|
60
|
+
<screencap>http://images.tvrage.com/screencaps/129/25745/1064977434.jpg</screencap>
|
61
|
+
</episode>
|
62
|
+
<episode>
|
63
|
+
<epnum>5</epnum>
|
64
|
+
<seasonnum>05</seasonnum>
|
65
|
+
<prodnum>2J5806</prodnum>
|
66
|
+
<airdate>2010-10-20</airdate>
|
67
|
+
<link>http://www.tvrage.com/Better_With_You/episodes/1064977435</link>
|
68
|
+
<title>Better with Little Buddy</title>
|
69
|
+
<screencap>http://images.tvrage.com/screencaps/129/25745/1064977435.jpg</screencap>
|
70
|
+
</episode>
|
71
|
+
<episode>
|
72
|
+
<epnum>6</epnum>
|
73
|
+
<seasonnum>06</seasonnum>
|
74
|
+
<prodnum>2J5807</prodnum>
|
75
|
+
<airdate>2010-10-27</airdate>
|
76
|
+
<link>http://www.tvrage.com/Better_With_You/episodes/1064985401</link>
|
77
|
+
<title>Better with Halloween</title>
|
78
|
+
<screencap>http://images.tvrage.com/screencaps/129/25745/1064985401.png</screencap>
|
79
|
+
</episode>
|
80
|
+
<episode>
|
81
|
+
<epnum>7</epnum>
|
82
|
+
<seasonnum>07</seasonnum>
|
83
|
+
<prodnum>2J5808</prodnum>
|
84
|
+
<airdate>2010-11-03</airdate>
|
85
|
+
<link>http://www.tvrage.com/Better_With_You/episodes/1064987518</link>
|
86
|
+
<title>Better With Road Joel</title>
|
87
|
+
<screencap>http://images.tvrage.com/screencaps/129/25745/1064987518.jpg</screencap>
|
88
|
+
</episode>
|
89
|
+
<episode>
|
90
|
+
<epnum>8</epnum>
|
91
|
+
<seasonnum>08</seasonnum>
|
92
|
+
<prodnum>2J5811</prodnum>
|
93
|
+
<airdate>2010-11-17</airdate>
|
94
|
+
<link>http://www.tvrage.com/Better_With_You/episodes/1064988828</link>
|
95
|
+
<title>Better with Flirting</title>
|
96
|
+
<screencap>http://images.tvrage.com/screencaps/129/25745/1064988828.png</screencap>
|
97
|
+
</episode>
|
98
|
+
<episode>
|
99
|
+
<epnum>9</epnum>
|
100
|
+
<seasonnum>09</seasonnum>
|
101
|
+
<prodnum>2J5809</prodnum>
|
102
|
+
<airdate>2010-11-24</airdate>
|
103
|
+
<link>http://www.tvrage.com/Better_With_You/episodes/1064988829</link>
|
104
|
+
<title>Better with Thanksgiving</title>
|
105
|
+
<screencap>http://images.tvrage.com/screencaps/129/25745/1064988829.jpg</screencap>
|
106
|
+
</episode>
|
107
|
+
<episode>
|
108
|
+
<epnum>10</epnum>
|
109
|
+
<seasonnum>10</seasonnum>
|
110
|
+
<prodnum>2J5810</prodnum>
|
111
|
+
<airdate>2010-12-08</airdate>
|
112
|
+
<link>http://www.tvrage.com/Better_With_You/episodes/1064995976</link>
|
113
|
+
<title>Better with Christmas Crap</title>
|
114
|
+
<screencap>http://images.tvrage.com/screencaps/129/25745/1064995976.jpg</screencap>
|
115
|
+
</episode>
|
116
|
+
<episode>
|
117
|
+
<epnum>11</epnum>
|
118
|
+
<seasonnum>11</seasonnum>
|
119
|
+
<prodnum></prodnum>
|
120
|
+
<airdate>2011-01-05</airdate>
|
121
|
+
<link>http://www.tvrage.com/Better_With_You/episodes/1065001299</link>
|
122
|
+
<title>Better with Skinny Jeans</title>
|
123
|
+
</episode>
|
124
|
+
<episode>
|
125
|
+
<epnum>12</epnum>
|
126
|
+
<seasonnum>12</seasonnum>
|
127
|
+
<prodnum></prodnum>
|
128
|
+
<airdate>2011-01-12</airdate>
|
129
|
+
<link>http://www.tvrage.com/Better_With_You/episodes/1065001300</link>
|
130
|
+
<title>Better Without a Couch</title>
|
131
|
+
</episode>
|
132
|
+
</Season>
|
133
|
+
<Season no="2">
|
134
|
+
<episode>
|
135
|
+
<epnum>12</epnum>
|
136
|
+
<seasonnum>12</seasonnum>
|
137
|
+
<prodnum></prodnum>
|
138
|
+
<airdate>2011-01-12</airdate>
|
139
|
+
<link>http://www.tvrage.com/Better_With_You/episodes/1065001300</link>
|
140
|
+
<title>Better Without a Couch</title>
|
141
|
+
</episode>
|
142
|
+
</Season>
|
143
|
+
</Episodelist>
|
144
|
+
</Show>
|
@@ -0,0 +1,134 @@
|
|
1
|
+
<?xml version="1.0" encoding="UTF-8" ?>
|
2
|
+
<Show>
|
3
|
+
<name>Better With You</name>
|
4
|
+
<totalseasons>1</totalseasons>
|
5
|
+
<showid>25745</showid>
|
6
|
+
<showlink>http://tvrage.com/Better_With_You</showlink>
|
7
|
+
<started>Sep/22/2010</started>
|
8
|
+
<ended></ended>
|
9
|
+
<image>http://images.tvrage.com/shows/26/25745.jpg</image>
|
10
|
+
<origin_country>US</origin_country>
|
11
|
+
<status>New Series</status>
|
12
|
+
<classification>Scripted</classification>
|
13
|
+
<genres><genre>Comedy</genre><genre>Family</genre></genres>
|
14
|
+
<runtime>30</runtime>
|
15
|
+
<network country="US">ABC</network>
|
16
|
+
<airtime>20:30</airtime>
|
17
|
+
<airday>Wednesday</airday>
|
18
|
+
<timezone>GMT-5 -DST</timezone>
|
19
|
+
<akas>
|
20
|
+
<aka attr="working title">Better Together</aka>
|
21
|
+
<aka attr="Alternate title" country="US">Leapfrog</aka>
|
22
|
+
<aka attr="Alternate title" country="US">That Couple</aka>
|
23
|
+
</akas>
|
24
|
+
<Episodelist>
|
25
|
+
<Season no="1">
|
26
|
+
<episode>
|
27
|
+
<epnum>1</epnum>
|
28
|
+
<seasonnum>01</seasonnum>
|
29
|
+
<prodnum>296777</prodnum>
|
30
|
+
<airdate>2010-09-22</airdate>
|
31
|
+
<link>http://www.tvrage.com/Better_With_You/episodes/1064933988</link>
|
32
|
+
<title>Pilot</title>
|
33
|
+
<screencap>http://images.tvrage.com/screencaps/129/25745/1064933988.png</screencap>
|
34
|
+
</episode>
|
35
|
+
<episode>
|
36
|
+
<epnum>2</epnum>
|
37
|
+
<seasonnum>02</seasonnum>
|
38
|
+
<prodnum>2J5805</prodnum>
|
39
|
+
<airdate>2010-09-29</airdate>
|
40
|
+
<link>http://www.tvrage.com/Better_With_You/episodes/1064977432</link>
|
41
|
+
<title>Better with Firehouse</title>
|
42
|
+
<screencap>http://images.tvrage.com/screencaps/129/25745/1064977432.jpg</screencap>
|
43
|
+
</episode>
|
44
|
+
<episode>
|
45
|
+
<epnum>3</epnum>
|
46
|
+
<seasonnum>03</seasonnum>
|
47
|
+
<prodnum>2J5804</prodnum>
|
48
|
+
<airdate>2010-10-06</airdate>
|
49
|
+
<link>http://www.tvrage.com/Better_With_You/episodes/1064977433</link>
|
50
|
+
<title>Better with Ben</title>
|
51
|
+
<screencap>http://images.tvrage.com/screencaps/129/25745/1064977433.jpg</screencap>
|
52
|
+
</episode>
|
53
|
+
<episode>
|
54
|
+
<epnum>4</epnum>
|
55
|
+
<seasonnum>04</seasonnum>
|
56
|
+
<prodnum>2J5802</prodnum>
|
57
|
+
<airdate>2010-10-13</airdate>
|
58
|
+
<link>http://www.tvrage.com/Better_With_You/episodes/1064977434</link>
|
59
|
+
<title>Better with Fighting</title>
|
60
|
+
<screencap>http://images.tvrage.com/screencaps/129/25745/1064977434.jpg</screencap>
|
61
|
+
</episode>
|
62
|
+
<episode>
|
63
|
+
<epnum>5</epnum>
|
64
|
+
<seasonnum>05</seasonnum>
|
65
|
+
<prodnum>2J5806</prodnum>
|
66
|
+
<airdate>2010-10-20</airdate>
|
67
|
+
<link>http://www.tvrage.com/Better_With_You/episodes/1064977435</link>
|
68
|
+
<title>Better with Little Buddy</title>
|
69
|
+
<screencap>http://images.tvrage.com/screencaps/129/25745/1064977435.jpg</screencap>
|
70
|
+
</episode>
|
71
|
+
<episode>
|
72
|
+
<epnum>6</epnum>
|
73
|
+
<seasonnum>06</seasonnum>
|
74
|
+
<prodnum>2J5807</prodnum>
|
75
|
+
<airdate>2010-10-27</airdate>
|
76
|
+
<link>http://www.tvrage.com/Better_With_You/episodes/1064985401</link>
|
77
|
+
<title>Better with Halloween</title>
|
78
|
+
<screencap>http://images.tvrage.com/screencaps/129/25745/1064985401.png</screencap>
|
79
|
+
</episode>
|
80
|
+
<episode>
|
81
|
+
<epnum>7</epnum>
|
82
|
+
<seasonnum>07</seasonnum>
|
83
|
+
<prodnum>2J5808</prodnum>
|
84
|
+
<airdate>2010-11-03</airdate>
|
85
|
+
<link>http://www.tvrage.com/Better_With_You/episodes/1064987518</link>
|
86
|
+
<title>Better With Road Joel</title>
|
87
|
+
<screencap>http://images.tvrage.com/screencaps/129/25745/1064987518.jpg</screencap>
|
88
|
+
</episode>
|
89
|
+
<episode>
|
90
|
+
<epnum>8</epnum>
|
91
|
+
<seasonnum>08</seasonnum>
|
92
|
+
<prodnum>2J5811</prodnum>
|
93
|
+
<airdate>2010-11-17</airdate>
|
94
|
+
<link>http://www.tvrage.com/Better_With_You/episodes/1064988828</link>
|
95
|
+
<title>Better with Flirting</title>
|
96
|
+
<screencap>http://images.tvrage.com/screencaps/129/25745/1064988828.png</screencap>
|
97
|
+
</episode>
|
98
|
+
<episode>
|
99
|
+
<epnum>9</epnum>
|
100
|
+
<seasonnum>09</seasonnum>
|
101
|
+
<prodnum>2J5809</prodnum>
|
102
|
+
<airdate>2010-11-24</airdate>
|
103
|
+
<link>http://www.tvrage.com/Better_With_You/episodes/1064988829</link>
|
104
|
+
<title>Better with Thanksgiving</title>
|
105
|
+
<screencap>http://images.tvrage.com/screencaps/129/25745/1064988829.jpg</screencap>
|
106
|
+
</episode>
|
107
|
+
<episode>
|
108
|
+
<epnum>10</epnum>
|
109
|
+
<seasonnum>10</seasonnum>
|
110
|
+
<prodnum>2J5810</prodnum>
|
111
|
+
<airdate>2010-12-08</airdate>
|
112
|
+
<link>http://www.tvrage.com/Better_With_You/episodes/1064995976</link>
|
113
|
+
<title>Better with Christmas Crap</title>
|
114
|
+
<screencap>http://images.tvrage.com/screencaps/129/25745/1064995976.jpg</screencap>
|
115
|
+
</episode>
|
116
|
+
<episode>
|
117
|
+
<epnum>11</epnum>
|
118
|
+
<seasonnum>11</seasonnum>
|
119
|
+
<prodnum></prodnum>
|
120
|
+
<airdate>2011-01-05</airdate>
|
121
|
+
<link>http://www.tvrage.com/Better_With_You/episodes/1065001299</link>
|
122
|
+
<title>Better with Skinny Jeans</title>
|
123
|
+
</episode>
|
124
|
+
<episode>
|
125
|
+
<epnum>12</epnum>
|
126
|
+
<seasonnum>12</seasonnum>
|
127
|
+
<prodnum></prodnum>
|
128
|
+
<airdate>2011-01-12</airdate>
|
129
|
+
<link>http://www.tvrage.com/Better_With_You/episodes/1065001300</link>
|
130
|
+
<title>Better Without a Couch</title>
|
131
|
+
</episode>
|
132
|
+
</Season>
|
133
|
+
</Episodelist>
|
134
|
+
</Show>
|
metadata
ADDED
@@ -0,0 +1,132 @@
|
|
1
|
+
--- !ruby/object:Gem::Specification
|
2
|
+
name: goggle-box
|
3
|
+
version: !ruby/object:Gem::Version
|
4
|
+
hash: 27
|
5
|
+
prerelease: false
|
6
|
+
segments:
|
7
|
+
- 0
|
8
|
+
- 1
|
9
|
+
- 0
|
10
|
+
version: 0.1.0
|
11
|
+
platform: ruby
|
12
|
+
authors:
|
13
|
+
- Paul Ingham
|
14
|
+
autorequire:
|
15
|
+
bindir: bin
|
16
|
+
cert_chain: []
|
17
|
+
|
18
|
+
date: 2010-12-27 00:00:00 +00:00
|
19
|
+
default_executable:
|
20
|
+
dependencies:
|
21
|
+
- !ruby/object:Gem::Dependency
|
22
|
+
name: httparty
|
23
|
+
prerelease: false
|
24
|
+
requirement: &id001 !ruby/object:Gem::Requirement
|
25
|
+
none: false
|
26
|
+
requirements:
|
27
|
+
- - ">="
|
28
|
+
- !ruby/object:Gem::Version
|
29
|
+
hash: 3
|
30
|
+
segments:
|
31
|
+
- 0
|
32
|
+
version: "0"
|
33
|
+
type: :runtime
|
34
|
+
version_requirements: *id001
|
35
|
+
- !ruby/object:Gem::Dependency
|
36
|
+
name: rspec
|
37
|
+
prerelease: false
|
38
|
+
requirement: &id002 !ruby/object:Gem::Requirement
|
39
|
+
none: false
|
40
|
+
requirements:
|
41
|
+
- - ">="
|
42
|
+
- !ruby/object:Gem::Version
|
43
|
+
hash: 3
|
44
|
+
segments:
|
45
|
+
- 0
|
46
|
+
version: "0"
|
47
|
+
type: :development
|
48
|
+
version_requirements: *id002
|
49
|
+
description: A small ruby library for implementing with the TVRage API.
|
50
|
+
email:
|
51
|
+
- paul.ingham@beefeatingmonkeys.com
|
52
|
+
executables: []
|
53
|
+
|
54
|
+
extensions: []
|
55
|
+
|
56
|
+
extra_rdoc_files: []
|
57
|
+
|
58
|
+
files:
|
59
|
+
- .gitignore
|
60
|
+
- .rvmrc
|
61
|
+
- Gemfile
|
62
|
+
- Gemfile.lock
|
63
|
+
- Rakefile
|
64
|
+
- Readme.md
|
65
|
+
- goggle-box.gemspec
|
66
|
+
- lib/goggle-box.rb
|
67
|
+
- lib/goggle-box/objectify.rb
|
68
|
+
- lib/goggle-box/tvrage.rb
|
69
|
+
- lib/goggle-box/tvrage/episode.rb
|
70
|
+
- lib/goggle-box/tvrage/show.rb
|
71
|
+
- lib/goggle-box/version.rb
|
72
|
+
- spec/goggle-box/tvrage/episode_spec.rb
|
73
|
+
- spec/goggle-box/tvrage/search_spec.rb
|
74
|
+
- spec/goggle-box/tvrage/show_spec.rb
|
75
|
+
- spec/goggle-box/version_spec.rb
|
76
|
+
- spec/goggle_box_spec.rb
|
77
|
+
- spec/spec_helper.rb
|
78
|
+
- spec/xml/tvrage/episode/single_episode.xml
|
79
|
+
- spec/xml/tvrage/search/better_with_you.xml
|
80
|
+
- spec/xml/tvrage/search/no_results.xml
|
81
|
+
- spec/xml/tvrage/show/better_with_you.xml
|
82
|
+
- spec/xml/tvrage/show/better_with_you_empty_second.xml
|
83
|
+
- spec/xml/tvrage/show/better_with_you_full_one_season.xml
|
84
|
+
- spec/xml/tvrage/show/no_results.xml
|
85
|
+
has_rdoc: true
|
86
|
+
homepage: http://www.github.com/Numbers/goggle-box
|
87
|
+
licenses: []
|
88
|
+
|
89
|
+
post_install_message:
|
90
|
+
rdoc_options: []
|
91
|
+
|
92
|
+
require_paths:
|
93
|
+
- lib
|
94
|
+
required_ruby_version: !ruby/object:Gem::Requirement
|
95
|
+
none: false
|
96
|
+
requirements:
|
97
|
+
- - ">="
|
98
|
+
- !ruby/object:Gem::Version
|
99
|
+
hash: 3
|
100
|
+
segments:
|
101
|
+
- 0
|
102
|
+
version: "0"
|
103
|
+
required_rubygems_version: !ruby/object:Gem::Requirement
|
104
|
+
none: false
|
105
|
+
requirements:
|
106
|
+
- - ">="
|
107
|
+
- !ruby/object:Gem::Version
|
108
|
+
hash: 3
|
109
|
+
segments:
|
110
|
+
- 0
|
111
|
+
version: "0"
|
112
|
+
requirements: []
|
113
|
+
|
114
|
+
rubyforge_project: goggle-box
|
115
|
+
rubygems_version: 1.3.7
|
116
|
+
signing_key:
|
117
|
+
specification_version: 3
|
118
|
+
summary: A small ruby library for implementing with the TVRage API.
|
119
|
+
test_files:
|
120
|
+
- spec/goggle-box/tvrage/episode_spec.rb
|
121
|
+
- spec/goggle-box/tvrage/search_spec.rb
|
122
|
+
- spec/goggle-box/tvrage/show_spec.rb
|
123
|
+
- spec/goggle-box/version_spec.rb
|
124
|
+
- spec/goggle_box_spec.rb
|
125
|
+
- spec/spec_helper.rb
|
126
|
+
- spec/xml/tvrage/episode/single_episode.xml
|
127
|
+
- spec/xml/tvrage/search/better_with_you.xml
|
128
|
+
- spec/xml/tvrage/search/no_results.xml
|
129
|
+
- spec/xml/tvrage/show/better_with_you.xml
|
130
|
+
- spec/xml/tvrage/show/better_with_you_empty_second.xml
|
131
|
+
- spec/xml/tvrage/show/better_with_you_full_one_season.xml
|
132
|
+
- spec/xml/tvrage/show/no_results.xml
|