tvdb_party 0.2.1 → 0.2.2
Sign up to get free protection for your applications and to get access to all the features.
- data/VERSION +1 -1
- data/lib/tvdb_party/episode.rb +7 -1
- data/lib/tvdb_party/series.rb +11 -2
- data/tvdb_party.gemspec +1 -1
- metadata +1 -1
data/VERSION
CHANGED
@@ -1 +1 @@
|
|
1
|
-
0.2.
|
1
|
+
0.2.2
|
data/lib/tvdb_party/episode.rb
CHANGED
@@ -9,9 +9,15 @@ module TvdbParty
|
|
9
9
|
@name = options["EpisodeName"]
|
10
10
|
@overview = options["Overview"]
|
11
11
|
@thumb = "http://thetvdb.com/banners/" + options["filename"] if options["filename"].to_s != ""
|
12
|
-
@guest_stars = options["GuestStars"][1..-1].split("|") if options["GuestStars"]
|
13
12
|
@director = options["Director"]
|
14
13
|
@writer = options["Writer"]
|
14
|
+
|
15
|
+
if options["GuestStars"]
|
16
|
+
@guest_stars = options["GuestStars"][1..-1].split("|")
|
17
|
+
else
|
18
|
+
@guest_stars = []
|
19
|
+
end
|
20
|
+
|
15
21
|
begin
|
16
22
|
@air_date = Date.parse(options["FirstAired"])
|
17
23
|
rescue
|
data/lib/tvdb_party/series.rb
CHANGED
@@ -13,8 +13,17 @@ module TvdbParty
|
|
13
13
|
@network = options["Network"]
|
14
14
|
@runtime = options["Runtime"]
|
15
15
|
|
16
|
-
|
17
|
-
|
16
|
+
if options["Genre"]
|
17
|
+
@genres = options["Genre"][1..-1].split("|")
|
18
|
+
else
|
19
|
+
@genres = []
|
20
|
+
end
|
21
|
+
|
22
|
+
if options["Actors"]
|
23
|
+
@actors = options["Actors"][1..-1].split("|")
|
24
|
+
else
|
25
|
+
@actors = []
|
26
|
+
end
|
18
27
|
|
19
28
|
if options["Rating"] && options["Rating"].size > 0
|
20
29
|
@rating = options["Rating"].to_f
|
data/tvdb_party.gemspec
CHANGED