the_tv_db 0.0.9 → 0.0.10

Sign up to get free protection for your applications and to get access to all the features.
@@ -69,8 +69,8 @@ module TheTvDB
69
69
  data = files["#{lang}.xml"].fetch("Data")
70
70
  record = new(data["Series"]) do |r|
71
71
  r.episodes = data["Episode"]
72
- r.banners = files["banners.xml"]["Banners"]["Banner"]
73
- r.actors = files["actors.xml"]["Actors"]["Actor"]
72
+ r.build_banners_from_xml(files["banners.xml"])
73
+ r.build_actors_from_xml(files["actors.xml"])
74
74
  end
75
75
  rescue ::Zip::ZipError
76
76
  get_xml_by_id(id, lang)
@@ -88,5 +88,24 @@ module TheTvDB
88
88
  end
89
89
  end
90
90
 
91
+ def build_banners_from_xml(doc)
92
+ build_association_from_xml(:banners, doc)
93
+ end
94
+
95
+ def build_actors_from_xml(doc)
96
+ build_association_from_xml(:actors, doc)
97
+ end
98
+
99
+ def build_association_from_xml(association_name, doc)
100
+ name_for_collection = association_name.to_s.capitalize
101
+ name_for_element = name_for_collection[0..-2]
102
+
103
+ elements = if doc && doc[name_for_collection]
104
+ doc[name_for_collection][name_for_element]
105
+ end
106
+
107
+ self.send("#{association_name}=", elements)
108
+ end
109
+
91
110
  end # Series
92
111
  end # TheTvDB
@@ -1,3 +1,3 @@
1
1
  module TheTvDB
2
- VERSION = "0.0.9"
2
+ VERSION = "0.0.10"
3
3
  end
@@ -0,0 +1,3 @@
1
+ <?xml version="1.0" encoding="UTF-8" ?>
2
+ <Actors>
3
+ </Actors>
@@ -0,0 +1,117 @@
1
+ <?xml version="1.0" encoding="UTF-8" ?>
2
+ <Banners>
3
+ <Banner>
4
+ <id>941753</id>
5
+ <BannerPath>fanart/original/255608-2.jpg</BannerPath>
6
+ <BannerType>fanart</BannerType>
7
+ <BannerType2>1920x1080</BannerType2>
8
+ <Colors></Colors>
9
+ <Language>en</Language>
10
+ <Rating>10.0000</Rating>
11
+ <RatingCount>1</RatingCount>
12
+ <SeriesName>false</SeriesName>
13
+ <ThumbnailPath>_cache/fanart/original/255608-2.jpg</ThumbnailPath>
14
+ <VignettePath>fanart/vignette/255608-2.jpg</VignettePath>
15
+ </Banner>
16
+ <Banner>
17
+ <id>941758</id>
18
+ <BannerPath>fanart/original/255608-4.jpg</BannerPath>
19
+ <BannerType>fanart</BannerType>
20
+ <BannerType2>1280x720</BannerType2>
21
+ <Colors></Colors>
22
+ <Language>en</Language>
23
+ <Rating>9.0000</Rating>
24
+ <RatingCount>1</RatingCount>
25
+ <SeriesName>true</SeriesName>
26
+ <ThumbnailPath>_cache/fanart/original/255608-4.jpg</ThumbnailPath>
27
+ <VignettePath>fanart/vignette/255608-4.jpg</VignettePath>
28
+ </Banner>
29
+ <Banner>
30
+ <id>896809</id>
31
+ <BannerPath>fanart/original/255608-1.jpg</BannerPath>
32
+ <BannerType>fanart</BannerType>
33
+ <BannerType2>1280x720</BannerType2>
34
+ <Colors></Colors>
35
+ <Language>en</Language>
36
+ <Rating>5.6667</Rating>
37
+ <RatingCount>3</RatingCount>
38
+ <SeriesName>true</SeriesName>
39
+ <ThumbnailPath>_cache/fanart/original/255608-1.jpg</ThumbnailPath>
40
+ <VignettePath>fanart/vignette/255608-1.jpg</VignettePath>
41
+ </Banner>
42
+ <Banner>
43
+ <id>945611</id>
44
+ <BannerPath>posters/255608-3.jpg</BannerPath>
45
+ <BannerType>poster</BannerType>
46
+ <BannerType2>680x1000</BannerType2>
47
+ <Language>en</Language>
48
+ <Rating>10.0000</Rating>
49
+ <RatingCount>1</RatingCount>
50
+ </Banner>
51
+ <Banner>
52
+ <id>897741</id>
53
+ <BannerPath>posters/255608-2.jpg</BannerPath>
54
+ <BannerType>poster</BannerType>
55
+ <BannerType2>680x1000</BannerType2>
56
+ <Language>en</Language>
57
+ <Rating>7.8000</Rating>
58
+ <RatingCount>5</RatingCount>
59
+ </Banner>
60
+ <Banner>
61
+ <id>908802</id>
62
+ <BannerPath>seasons/255608-1.jpg</BannerPath>
63
+ <BannerType>season</BannerType>
64
+ <BannerType2>season</BannerType2>
65
+ <Language>en</Language>
66
+ <Rating>10.0000</Rating>
67
+ <RatingCount>1</RatingCount>
68
+ <Season>1</Season>
69
+ </Banner>
70
+ <Banner>
71
+ <id>934437</id>
72
+ <BannerPath>seasons/255608-2.jpg</BannerPath>
73
+ <BannerType>season</BannerType>
74
+ <BannerType2>season</BannerType2>
75
+ <Language>en</Language>
76
+ <Rating></Rating>
77
+ <RatingCount>0</RatingCount>
78
+ <Season>2</Season>
79
+ </Banner>
80
+ <Banner>
81
+ <id>908777</id>
82
+ <BannerPath>seasonswide/255608-1.jpg</BannerPath>
83
+ <BannerType>season</BannerType>
84
+ <BannerType2>seasonwide</BannerType2>
85
+ <Language>en</Language>
86
+ <Rating>10.0000</Rating>
87
+ <RatingCount>1</RatingCount>
88
+ <Season>1</Season>
89
+ </Banner>
90
+ <Banner>
91
+ <id>897109</id>
92
+ <BannerPath>graphical/255608-g3.jpg</BannerPath>
93
+ <BannerType>series</BannerType>
94
+ <BannerType2>graphical</BannerType2>
95
+ <Language>en</Language>
96
+ <Rating>9.0000</Rating>
97
+ <RatingCount>2</RatingCount>
98
+ </Banner>
99
+ <Banner>
100
+ <id>896016</id>
101
+ <BannerPath>graphical/255608-g2.jpg</BannerPath>
102
+ <BannerType>series</BannerType>
103
+ <BannerType2>graphical</BannerType2>
104
+ <Language>en</Language>
105
+ <Rating>6.0000</Rating>
106
+ <RatingCount>1</RatingCount>
107
+ </Banner>
108
+ <Banner>
109
+ <id>895314</id>
110
+ <BannerPath>graphical/255608-g.jpg</BannerPath>
111
+ <BannerType>series</BannerType>
112
+ <BannerType2>graphical</BannerType2>
113
+ <Language>en</Language>
114
+ <Rating>3.0000</Rating>
115
+ <RatingCount>1</RatingCount>
116
+ </Banner>
117
+ </Banners>
@@ -0,0 +1,932 @@
1
+ <?xml version="1.0" encoding="UTF-8" ?>
2
+ <Data><Series>
3
+ <id>255608</id>
4
+ <Actors>||</Actors>
5
+ <Airs_DayOfWeek>Tuesday</Airs_DayOfWeek>
6
+ <Airs_Time>9:00 PM</Airs_Time>
7
+ <ContentRating>TV-PG</ContentRating>
8
+ <FirstAired>2012-02-07</FirstAired>
9
+ <Genre>|Documentary|Reality|</Genre>
10
+ <IMDB_ID>tt2069270</IMDB_ID>
11
+ <Language>en</Language>
12
+ <Network>National Geographic</Network>
13
+ <NetworkID></NetworkID>
14
+ <Overview>Doomsday Preppers explores the lives of otherwise ordinary Americans who are preparing for the end of the world as we know it. Unique in their beliefs, motivations, and strategies, preppers will go to whatever lengths they can to make sure they are prepared for any of life’s uncertainties. And with our expert’s assessment, they will find out their chances of survival if their worst fears become a reality. </Overview>
15
+ <Rating>8.5</Rating>
16
+ <RatingCount>4</RatingCount>
17
+ <Runtime>60</Runtime>
18
+ <SeriesID></SeriesID>
19
+ <SeriesName>Doomsday Preppers</SeriesName>
20
+ <Status>Continuing</Status>
21
+ <added>2012-01-28 07:11:58</added>
22
+ <addedBy>27761</addedBy>
23
+ <banner>graphical/255608-g3.jpg</banner>
24
+ <fanart>fanart/original/255608-2.jpg</fanart>
25
+ <lastupdated>1369971826</lastupdated>
26
+ <poster>posters/255608-3.jpg</poster>
27
+ <zap2it_id>SH01517869</zap2it_id>
28
+ </Series>
29
+ <Episode>
30
+ <id>4259653</id>
31
+ <Combined_episodenumber>1</Combined_episodenumber>
32
+ <Combined_season>0</Combined_season>
33
+ <DVD_chapter></DVD_chapter>
34
+ <DVD_discid></DVD_discid>
35
+ <DVD_episodenumber></DVD_episodenumber>
36
+ <DVD_season></DVD_season>
37
+ <Director>Alan Madison</Director>
38
+ <EpImgFlag></EpImgFlag>
39
+ <EpisodeName>Pilot: Are You Prepared for Doomsday?</EpisodeName>
40
+ <EpisodeNumber>1</EpisodeNumber>
41
+ <FirstAired>2011-06-27</FirstAired>
42
+ <GuestStars></GuestStars>
43
+ <IMDB_ID>tt2069270</IMDB_ID>
44
+ <Language>en</Language>
45
+ <Overview>Dennis McClung and we quote: &quot;I'm preparing for a coronal mass ejection in 2012 that would likely take out the electrical grid and knock civilization back to the Stone Age.&quot;; Lisa Bedford takes urban preparation to a new level in case of a complete financial collapse; The Culver and Hunt families combine forces and have some of the best resources for self sustainability.</Overview>
46
+ <ProductionCode></ProductionCode>
47
+ <Rating>8.0</Rating>
48
+ <RatingCount>2</RatingCount>
49
+ <SeasonNumber>0</SeasonNumber>
50
+ <Writer>Alan Madison</Writer>
51
+ <absolute_number></absolute_number>
52
+ <airsafter_season></airsafter_season>
53
+ <airsbefore_episode></airsbefore_episode>
54
+ <airsbefore_season></airsbefore_season>
55
+ <filename></filename>
56
+ <lastupdated>1353241162</lastupdated>
57
+ <seasonid>483827</seasonid>
58
+ <seriesid>255608</seriesid>
59
+ </Episode>
60
+ <Episode>
61
+ <id>4407043</id>
62
+ <Combined_episodenumber>2</Combined_episodenumber>
63
+ <Combined_season>0</Combined_season>
64
+ <DVD_chapter></DVD_chapter>
65
+ <DVD_discid></DVD_discid>
66
+ <DVD_episodenumber></DVD_episodenumber>
67
+ <DVD_season></DVD_season>
68
+ <Director></Director>
69
+ <EpImgFlag></EpImgFlag>
70
+ <EpisodeName>Extra: American Doomsday</EpisodeName>
71
+ <EpisodeNumber>2</EpisodeNumber>
72
+ <FirstAired></FirstAired>
73
+ <GuestStars></GuestStars>
74
+ <IMDB_ID></IMDB_ID>
75
+ <Language>en</Language>
76
+ <Overview>America's Doomsday plan. It's the government's ultimate playbook, with a strategy for even the darkest hours—developed when Cold War tensions were high, but never used until 9/11. In American Doomsday, fly in an E4-B—the president's command, control, and communications center for times of national catastrophe; go inside the secret bunker used by government officials on September 11; and witness how the luxurious Greenbrier Resort became a critical, top secret congressional bunker. </Overview>
77
+ <ProductionCode></ProductionCode>
78
+ <Rating></Rating>
79
+ <RatingCount>0</RatingCount>
80
+ <SeasonNumber>0</SeasonNumber>
81
+ <Writer></Writer>
82
+ <absolute_number></absolute_number>
83
+ <airsafter_season></airsafter_season>
84
+ <airsbefore_episode></airsbefore_episode>
85
+ <airsbefore_season></airsbefore_season>
86
+ <filename></filename>
87
+ <lastupdated>1352758882</lastupdated>
88
+ <seasonid>483827</seasonid>
89
+ <seriesid>255608</seriesid>
90
+ </Episode>
91
+ <Episode>
92
+ <id>4251034</id>
93
+ <Combined_episodenumber>1</Combined_episodenumber>
94
+ <Combined_season>1</Combined_season>
95
+ <DVD_chapter></DVD_chapter>
96
+ <DVD_discid></DVD_discid>
97
+ <DVD_episodenumber></DVD_episodenumber>
98
+ <DVD_season></DVD_season>
99
+ <Director></Director>
100
+ <EpImgFlag>2</EpImgFlag>
101
+ <EpisodeName>Bullets, Lots of Bullets</EpisodeName>
102
+ <EpisodeNumber>1</EpisodeNumber>
103
+ <FirstAired>2012-02-07</FirstAired>
104
+ <GuestStars></GuestStars>
105
+ <IMDB_ID></IMDB_ID>
106
+ <Language>en</Language>
107
+ <Overview>Paul Range and friends prepare for a &quot;polar Shift&quot;; In California Christopher Nyerges demonstrates urban jungle survive skills in the event of a massive earthquake; Deep in the heart of Houston, Texas Megan Hurwitt hopes to survive on her own after the all the oil and gas runs out.</Overview>
108
+ <ProductionCode></ProductionCode>
109
+ <Rating>7.5</Rating>
110
+ <RatingCount>6</RatingCount>
111
+ <SeasonNumber>1</SeasonNumber>
112
+ <Writer></Writer>
113
+ <absolute_number></absolute_number>
114
+ <filename>episodes/255608/4251034.jpg</filename>
115
+ <lastupdated>1355515978</lastupdated>
116
+ <seasonid>483828</seasonid>
117
+ <seriesid>255608</seriesid>
118
+ </Episode>
119
+ <Episode>
120
+ <id>4251036</id>
121
+ <Combined_episodenumber>2</Combined_episodenumber>
122
+ <Combined_season>1</Combined_season>
123
+ <DVD_chapter></DVD_chapter>
124
+ <DVD_discid></DVD_discid>
125
+ <DVD_episodenumber></DVD_episodenumber>
126
+ <DVD_season></DVD_season>
127
+ <Director></Director>
128
+ <EpImgFlag>2</EpImgFlag>
129
+ <EpisodeName>I Hope I Am Crazy</EpisodeName>
130
+ <EpisodeNumber>2</EpisodeNumber>
131
+ <FirstAired>2012-02-07</FirstAired>
132
+ <GuestStars></GuestStars>
133
+ <IMDB_ID></IMDB_ID>
134
+ <Language>en</Language>
135
+ <Overview>David Sarti a Youtube &quot;firearms instructor&quot; and self-taught survivalists is prepared for an electrical grid failure; Kellene Bishop a Utah resident has stored away the finer things in life for a financial collapse; Kathy Harrison, the Doris Day of Doom has prepared her local community for a New Madrid earthquake; Dennis Evers brings the family together to survive global chaos caused by hyperinflation.</Overview>
136
+ <ProductionCode></ProductionCode>
137
+ <Rating>7.0</Rating>
138
+ <RatingCount>2</RatingCount>
139
+ <SeasonNumber>1</SeasonNumber>
140
+ <Writer></Writer>
141
+ <absolute_number></absolute_number>
142
+ <filename>episodes/255608/4251036.jpg</filename>
143
+ <lastupdated>1353240806</lastupdated>
144
+ <seasonid>483828</seasonid>
145
+ <seriesid>255608</seriesid>
146
+ </Episode>
147
+ <Episode>
148
+ <id>4251037</id>
149
+ <Combined_episodenumber>3</Combined_episodenumber>
150
+ <Combined_season>1</Combined_season>
151
+ <DVD_chapter></DVD_chapter>
152
+ <DVD_discid></DVD_discid>
153
+ <DVD_episodenumber></DVD_episodenumber>
154
+ <DVD_season></DVD_season>
155
+ <Director></Director>
156
+ <EpImgFlag>2</EpImgFlag>
157
+ <EpisodeName>Back to the Stone Age</EpisodeName>
158
+ <EpisodeNumber>3</EpisodeNumber>
159
+ <FirstAired>2012-02-14</FirstAired>
160
+ <GuestStars></GuestStars>
161
+ <IMDB_ID></IMDB_ID>
162
+ <Language>en</Language>
163
+ <Overview>Tim Ralston - A survival tool manufacturer himself (the Crovel), loses part of a thumb during firearms practice for the show; Jason Charles, The New York City Fireman/Prepper demonstrates expert urban survival skills; Jules Dervaes has prepared well for the collapse of the industrial food system; Pat Brabble insists on surviving hyperinflation by planning ahead.</Overview>
164
+ <ProductionCode></ProductionCode>
165
+ <Rating>7.7</Rating>
166
+ <RatingCount>6</RatingCount>
167
+ <SeasonNumber>1</SeasonNumber>
168
+ <Writer></Writer>
169
+ <absolute_number></absolute_number>
170
+ <filename>episodes/255608/4251037.jpg</filename>
171
+ <lastupdated>1353240827</lastupdated>
172
+ <seasonid>483828</seasonid>
173
+ <seriesid>255608</seriesid>
174
+ </Episode>
175
+ <Episode>
176
+ <id>4251038</id>
177
+ <Combined_episodenumber>4</Combined_episodenumber>
178
+ <Combined_season>1</Combined_season>
179
+ <DVD_chapter></DVD_chapter>
180
+ <DVD_discid></DVD_discid>
181
+ <DVD_episodenumber></DVD_episodenumber>
182
+ <DVD_season></DVD_season>
183
+ <Director></Director>
184
+ <EpImgFlag>2</EpImgFlag>
185
+ <EpisodeName>It's All Gonna Hit the Fan</EpisodeName>
186
+ <EpisodeNumber>4</EpisodeNumber>
187
+ <FirstAired>2012-02-21</FirstAired>
188
+ <GuestStars></GuestStars>
189
+ <IMDB_ID></IMDB_ID>
190
+ <Language>en</Language>
191
+ <Overview>Martin Colvill lives on the road with his wife as a &quot;survival trucker&quot; and looks to prepare for the upcoming economic collapse; Donna Nash is prepared to quarantine all her family members to protect against a global pandemic; Kevin O'Brien is concerned about losing his home due to rising sea levels created by global warming or a polar shift.</Overview>
192
+ <ProductionCode></ProductionCode>
193
+ <Rating>7.5</Rating>
194
+ <RatingCount>4</RatingCount>
195
+ <SeasonNumber>1</SeasonNumber>
196
+ <Writer></Writer>
197
+ <absolute_number></absolute_number>
198
+ <filename>episodes/255608/4251038.jpg</filename>
199
+ <lastupdated>1353517408</lastupdated>
200
+ <seasonid>483828</seasonid>
201
+ <seriesid>255608</seriesid>
202
+ </Episode>
203
+ <Episode>
204
+ <id>4271611</id>
205
+ <Combined_episodenumber>5</Combined_episodenumber>
206
+ <Combined_season>1</Combined_season>
207
+ <DVD_chapter></DVD_chapter>
208
+ <DVD_discid></DVD_discid>
209
+ <DVD_episodenumber></DVD_episodenumber>
210
+ <DVD_season></DVD_season>
211
+ <Director></Director>
212
+ <EpImgFlag>2</EpImgFlag>
213
+ <EpisodeName>Friends Can Become Enemies</EpisodeName>
214
+ <EpisodeNumber>5</EpisodeNumber>
215
+ <FirstAired>2012-02-28</FirstAired>
216
+ <GuestStars></GuestStars>
217
+ <IMDB_ID></IMDB_ID>
218
+ <Language>en</Language>
219
+ <Overview>James Patrick Douglas a man of the land in Maine shows off many needed homestead techniques to the viewers based upon overpopulation fears; Larry Hall the survival underground missile bunker builder invests in making sure his and other families are safe during any event; Becky Brown a gorgeous yet very inventive prepper (Grab n Go Food Storage) is making sure she and others are ready for martial law.</Overview>
220
+ <ProductionCode></ProductionCode>
221
+ <Rating>7.0</Rating>
222
+ <RatingCount>2</RatingCount>
223
+ <SeasonNumber>1</SeasonNumber>
224
+ <Writer></Writer>
225
+ <absolute_number></absolute_number>
226
+ <filename>episodes/255608/4271611.jpg</filename>
227
+ <lastupdated>1353240982</lastupdated>
228
+ <seasonid>483828</seasonid>
229
+ <seriesid>255608</seriesid>
230
+ </Episode>
231
+ <Episode>
232
+ <id>4264988</id>
233
+ <Combined_episodenumber>6</Combined_episodenumber>
234
+ <Combined_season>1</Combined_season>
235
+ <DVD_chapter></DVD_chapter>
236
+ <DVD_discid></DVD_discid>
237
+ <DVD_episodenumber></DVD_episodenumber>
238
+ <DVD_season></DVD_season>
239
+ <Director></Director>
240
+ <EpImgFlag>2</EpImgFlag>
241
+ <EpisodeName>Nine Meals Away from Anarchy</EpisodeName>
242
+ <EpisodeNumber>6</EpisodeNumber>
243
+ <FirstAired>2012-03-06</FirstAired>
244
+ <GuestStars></GuestStars>
245
+ <IMDB_ID></IMDB_ID>
246
+ <Language>en</Language>
247
+ <Overview>For Mike Messiner civil unrest is just round the corner and he is getting everyone ready; Colorado computer programmer Preston White has collected over 11,200 types of seeds and plans for biosphere living in a Fukushima radiated future while friends Shane and others provide supportive help; Riley Cook spends his days supporting the prepper society building underground structures.</Overview>
248
+ <ProductionCode></ProductionCode>
249
+ <Rating>7.6</Rating>
250
+ <RatingCount>5</RatingCount>
251
+ <SeasonNumber>1</SeasonNumber>
252
+ <Writer></Writer>
253
+ <absolute_number></absolute_number>
254
+ <filename>episodes/255608/4264988.jpg</filename>
255
+ <lastupdated>1353241016</lastupdated>
256
+ <seasonid>483828</seasonid>
257
+ <seriesid>255608</seriesid>
258
+ </Episode>
259
+ <Episode>
260
+ <id>4277657</id>
261
+ <Combined_episodenumber>7</Combined_episodenumber>
262
+ <Combined_season>1</Combined_season>
263
+ <DVD_chapter></DVD_chapter>
264
+ <DVD_discid></DVD_discid>
265
+ <DVD_episodenumber></DVD_episodenumber>
266
+ <DVD_season></DVD_season>
267
+ <Director></Director>
268
+ <EpImgFlag>2</EpImgFlag>
269
+ <EpisodeName>Into the Spider Hole</EpisodeName>
270
+ <EpisodeNumber>7</EpisodeNumber>
271
+ <FirstAired>2012-03-13</FirstAired>
272
+ <GuestStars></GuestStars>
273
+ <IMDB_ID></IMDB_ID>
274
+ <Language>en</Language>
275
+ <Overview>Doug Huffman is rightly prepared teaching survival techniques for the second depression based upon America's massive &quot;debts&quot;.; Dianne and Greg Rogers, dedicated parents in Canada are concerned with future events effecting their home-life; Ed and Dianna Peden (&quot;still living in the 60's&quot;), of Topeka, Kansas are preparing to survive and thrive fully underground when doomsday arrives in their decommissioned Atlas missile site.</Overview>
276
+ <ProductionCode></ProductionCode>
277
+ <Rating>7.6</Rating>
278
+ <RatingCount>5</RatingCount>
279
+ <SeasonNumber>1</SeasonNumber>
280
+ <Writer></Writer>
281
+ <absolute_number></absolute_number>
282
+ <filename>episodes/255608/4277657.jpg</filename>
283
+ <lastupdated>1353241037</lastupdated>
284
+ <seasonid>483828</seasonid>
285
+ <seriesid>255608</seriesid>
286
+ </Episode>
287
+ <Episode>
288
+ <id>4282962</id>
289
+ <Combined_episodenumber>8</Combined_episodenumber>
290
+ <Combined_season>1</Combined_season>
291
+ <DVD_chapter></DVD_chapter>
292
+ <DVD_discid></DVD_discid>
293
+ <DVD_episodenumber></DVD_episodenumber>
294
+ <DVD_season></DVD_season>
295
+ <Director></Director>
296
+ <EpImgFlag>2</EpImgFlag>
297
+ <EpisodeName>It's Gonna Get Worse</EpisodeName>
298
+ <EpisodeNumber>8</EpisodeNumber>
299
+ <FirstAired>2012-03-27</FirstAired>
300
+ <GuestStars></GuestStars>
301
+ <IMDB_ID></IMDB_ID>
302
+ <Language>en</Language>
303
+ <Overview>Bruce Beach a lifelong prepper is focused upon nuclear wars and saving children in his 42 underground buses; Jeremy and Kelly, are concerned parents in Salt Lake City, preparing for the collapse of society due to peak oil depletion; Bradford Frank of San Diego, California works around the clock in case of a worldwide pandemic that will end life as we know it.</Overview>
304
+ <ProductionCode></ProductionCode>
305
+ <Rating>7.4</Rating>
306
+ <RatingCount>5</RatingCount>
307
+ <SeasonNumber>1</SeasonNumber>
308
+ <Writer></Writer>
309
+ <absolute_number></absolute_number>
310
+ <filename>episodes/255608/4282962.jpg</filename>
311
+ <lastupdated>1351304609</lastupdated>
312
+ <seasonid>483828</seasonid>
313
+ <seriesid>255608</seriesid>
314
+ </Episode>
315
+ <Episode>
316
+ <id>4293031</id>
317
+ <Combined_episodenumber>9</Combined_episodenumber>
318
+ <Combined_season>1</Combined_season>
319
+ <DVD_chapter></DVD_chapter>
320
+ <DVD_discid></DVD_discid>
321
+ <DVD_episodenumber></DVD_episodenumber>
322
+ <DVD_season></DVD_season>
323
+ <Director></Director>
324
+ <EpImgFlag>2</EpImgFlag>
325
+ <EpisodeName>Close the Door, Load the Shotgun</EpisodeName>
326
+ <EpisodeNumber>9</EpisodeNumber>
327
+ <FirstAired>2012-04-03</FirstAired>
328
+ <GuestStars></GuestStars>
329
+ <IMDB_ID></IMDB_ID>
330
+ <Language>en</Language>
331
+ <Overview>John Major has gone to the extent of moving his family to Idaho for a better more natural lifestyle; Janet Spencer an author in Montana decided because of her location to prepare for any &quot;unnatural&quot; event; Jack &amp; Jackie Jobe, although new to prepping have done quite well for their future survival.</Overview>
332
+ <ProductionCode></ProductionCode>
333
+ <Rating>7.7</Rating>
334
+ <RatingCount>3</RatingCount>
335
+ <SeasonNumber>1</SeasonNumber>
336
+ <Writer></Writer>
337
+ <absolute_number></absolute_number>
338
+ <filename>episodes/255608/4293031.jpg</filename>
339
+ <lastupdated>1351304633</lastupdated>
340
+ <seasonid>483828</seasonid>
341
+ <seriesid>255608</seriesid>
342
+ </Episode>
343
+ <Episode>
344
+ <id>4302170</id>
345
+ <Combined_episodenumber>10</Combined_episodenumber>
346
+ <Combined_season>1</Combined_season>
347
+ <DVD_chapter></DVD_chapter>
348
+ <DVD_discid></DVD_discid>
349
+ <DVD_episodenumber></DVD_episodenumber>
350
+ <DVD_season></DVD_season>
351
+ <Director></Director>
352
+ <EpImgFlag>2</EpImgFlag>
353
+ <EpisodeName>Disaster Doesn't Wait</EpisodeName>
354
+ <EpisodeNumber>10</EpisodeNumber>
355
+ <FirstAired>2012-04-10</FirstAired>
356
+ <GuestStars></GuestStars>
357
+ <IMDB_ID></IMDB_ID>
358
+ <Language>en</Language>
359
+ <Overview>Barry, Pink and Cole have the ultimate urban underground foxhole right in the garage. Hooray! one if the best we have seen; Steve Pace a hometown survivalists is ready to take on long term electric failure; Carolina resident Laura Kunzie has concerns to a rapid airborne flu outbreak and is preparing so.</Overview>
360
+ <ProductionCode></ProductionCode>
361
+ <Rating>7.8</Rating>
362
+ <RatingCount>4</RatingCount>
363
+ <SeasonNumber>1</SeasonNumber>
364
+ <Writer></Writer>
365
+ <absolute_number></absolute_number>
366
+ <filename>episodes/255608/4302170.jpg</filename>
367
+ <lastupdated>1355089052</lastupdated>
368
+ <seasonid>483828</seasonid>
369
+ <seriesid>255608</seriesid>
370
+ </Episode>
371
+ <Episode>
372
+ <id>4302171</id>
373
+ <Combined_episodenumber>11</Combined_episodenumber>
374
+ <Combined_season>1</Combined_season>
375
+ <DVD_chapter></DVD_chapter>
376
+ <DVD_discid></DVD_discid>
377
+ <DVD_episodenumber></DVD_episodenumber>
378
+ <DVD_season></DVD_season>
379
+ <Director></Director>
380
+ <EpImgFlag>2</EpImgFlag>
381
+ <EpisodeName>I Suggest We Run</EpisodeName>
382
+ <EpisodeNumber>11</EpisodeNumber>
383
+ <FirstAired>2012-04-17</FirstAired>
384
+ <GuestStars></GuestStars>
385
+ <IMDB_ID></IMDB_ID>
386
+ <Language>en</Language>
387
+ <Overview>Texas prepper &quot;Dr Wayne&quot; bases his doomsday fears on a Chinese financial takeover and he has prepared many ways to survive these events; John &amp; Cristina Sellers, are both hardworking Americans who want to protect what they have; Jason &amp; Tanya have done their homework on how life and prepping can happen on a budget.</Overview>
388
+ <ProductionCode></ProductionCode>
389
+ <Rating>7.0</Rating>
390
+ <RatingCount>4</RatingCount>
391
+ <SeasonNumber>1</SeasonNumber>
392
+ <Writer></Writer>
393
+ <absolute_number></absolute_number>
394
+ <filename>episodes/255608/4302171.jpg</filename>
395
+ <lastupdated>1362242195</lastupdated>
396
+ <seasonid>483828</seasonid>
397
+ <seriesid>255608</seriesid>
398
+ </Episode>
399
+ <Episode>
400
+ <id>4307385</id>
401
+ <Combined_episodenumber>12</Combined_episodenumber>
402
+ <Combined_season>1</Combined_season>
403
+ <DVD_chapter></DVD_chapter>
404
+ <DVD_discid></DVD_discid>
405
+ <DVD_episodenumber></DVD_episodenumber>
406
+ <DVD_season></DVD_season>
407
+ <Director></Director>
408
+ <EpImgFlag>2</EpImgFlag>
409
+ <EpisodeName>Extreme Prep Edition</EpisodeName>
410
+ <EpisodeNumber>12</EpisodeNumber>
411
+ <FirstAired>2012-04-24</FirstAired>
412
+ <GuestStars></GuestStars>
413
+ <IMDB_ID></IMDB_ID>
414
+ <Language>en</Language>
415
+ <Overview>The five basic principles while preparing for a cataclysmic event are food, shelter, safety, evacuation, and practice.</Overview>
416
+ <ProductionCode></ProductionCode>
417
+ <Rating>7.0</Rating>
418
+ <RatingCount>4</RatingCount>
419
+ <SeasonNumber>1</SeasonNumber>
420
+ <Writer></Writer>
421
+ <absolute_number></absolute_number>
422
+ <filename>episodes/255608/4307385.jpg</filename>
423
+ <lastupdated>1355089153</lastupdated>
424
+ <seasonid>483828</seasonid>
425
+ <seriesid>255608</seriesid>
426
+ </Episode>
427
+ <Episode>
428
+ <id>4429097</id>
429
+ <Combined_episodenumber>1</Combined_episodenumber>
430
+ <Combined_season>2</Combined_season>
431
+ <DVD_chapter></DVD_chapter>
432
+ <DVD_discid></DVD_discid>
433
+ <DVD_episodenumber></DVD_episodenumber>
434
+ <DVD_season></DVD_season>
435
+ <Director></Director>
436
+ <EpImgFlag>2</EpImgFlag>
437
+ <EpisodeName>You Can't Let Evil Win</EpisodeName>
438
+ <EpisodeNumber>1</EpisodeNumber>
439
+ <FirstAired>2012-11-04</FirstAired>
440
+ <GuestStars></GuestStars>
441
+ <IMDB_ID></IMDB_ID>
442
+ <Language>en</Language>
443
+ <Overview>Some American families have drastically altered their lifestyles in order to survive what they fear will be the end of the world. Johnny O fears a terrorist attack on nuclear power plants, and his prepping philosophy is always having backups for your backups. He is a husband and father of two who lives with his wife and his wife's twin sister, who also knows their bug out plan.</Overview>
444
+ <ProductionCode></ProductionCode>
445
+ <Rating>7.5</Rating>
446
+ <RatingCount>4</RatingCount>
447
+ <SeasonNumber>2</SeasonNumber>
448
+ <Writer></Writer>
449
+ <absolute_number></absolute_number>
450
+ <filename>episodes/255608/4429097.jpg</filename>
451
+ <lastupdated>1353682512</lastupdated>
452
+ <seasonid>504485</seasonid>
453
+ <seriesid>255608</seriesid>
454
+ </Episode>
455
+ <Episode>
456
+ <id>4429098</id>
457
+ <Combined_episodenumber>2</Combined_episodenumber>
458
+ <Combined_season>2</Combined_season>
459
+ <DVD_chapter></DVD_chapter>
460
+ <DVD_discid></DVD_discid>
461
+ <DVD_episodenumber></DVD_episodenumber>
462
+ <DVD_season></DVD_season>
463
+ <Director></Director>
464
+ <EpImgFlag>2</EpImgFlag>
465
+ <EpisodeName>Am I Nuts or Are You?</EpisodeName>
466
+ <EpisodeNumber>2</EpisodeNumber>
467
+ <FirstAired>2012-11-13</FirstAired>
468
+ <GuestStars></GuestStars>
469
+ <IMDB_ID></IMDB_ID>
470
+ <Language>en</Language>
471
+ <Overview>Meet Jason Beacham, a 15-year-old boy from a small town in Missouri who has been prepping since age 11. Jason fears anarchy following economic collapse. Big Al is a musician based in Nashville, Tennessee, who has a secret bug-out location in the mountains of the west. He fears a nuclear attack from Russia. Braxton Southwick is a former professional racer who lives with his wife and their six children in a suburb outside of Salt Lake City. He is prepping for a biological terrorist attack.</Overview>
472
+ <ProductionCode></ProductionCode>
473
+ <Rating>7.0</Rating>
474
+ <RatingCount>2</RatingCount>
475
+ <SeasonNumber>2</SeasonNumber>
476
+ <Writer></Writer>
477
+ <absolute_number></absolute_number>
478
+ <filename>episodes/255608/4429098.jpg</filename>
479
+ <lastupdated>1353682559</lastupdated>
480
+ <seasonid>504485</seasonid>
481
+ <seriesid>255608</seriesid>
482
+ </Episode>
483
+ <Episode>
484
+ <id>4431331</id>
485
+ <Combined_episodenumber>3</Combined_episodenumber>
486
+ <Combined_season>2</Combined_season>
487
+ <DVD_chapter></DVD_chapter>
488
+ <DVD_discid></DVD_discid>
489
+ <DVD_episodenumber></DVD_episodenumber>
490
+ <DVD_season></DVD_season>
491
+ <Director></Director>
492
+ <EpImgFlag>2</EpImgFlag>
493
+ <EpisodeName>Bad Times All the Time</EpisodeName>
494
+ <EpisodeNumber>3</EpisodeNumber>
495
+ <FirstAired>2012-11-20</FirstAired>
496
+ <GuestStars></GuestStars>
497
+ <IMDB_ID></IMDB_ID>
498
+ <Language>en</Language>
499
+ <Overview>At some point, we've all wondered what will happen to our economy. Jay Blevins has probably thought about it more than most. He is a former law enforcement officer who is preparing for a global economic crisis. He fears that social unrest will erupt and has found creative ways to protect his family, including his own recipe for homemade pepper spray.
500
+ </Overview>
501
+ <ProductionCode></ProductionCode>
502
+ <Rating>7.5</Rating>
503
+ <RatingCount>4</RatingCount>
504
+ <SeasonNumber>2</SeasonNumber>
505
+ <Writer></Writer>
506
+ <absolute_number></absolute_number>
507
+ <filename>episodes/255608/4431331.jpg</filename>
508
+ <lastupdated>1353682639</lastupdated>
509
+ <seasonid>504485</seasonid>
510
+ <seriesid>255608</seriesid>
511
+ </Episode>
512
+ <Episode>
513
+ <id>4431332</id>
514
+ <Combined_episodenumber>4</Combined_episodenumber>
515
+ <Combined_season>2</Combined_season>
516
+ <DVD_chapter></DVD_chapter>
517
+ <DVD_discid></DVD_discid>
518
+ <DVD_episodenumber></DVD_episodenumber>
519
+ <DVD_season></DVD_season>
520
+ <Director></Director>
521
+ <EpImgFlag>2</EpImgFlag>
522
+ <EpisodeName>The Time of Reckoning</EpisodeName>
523
+ <EpisodeNumber>4</EpisodeNumber>
524
+ <FirstAired>2012-11-27</FirstAired>
525
+ <GuestStars></GuestStars>
526
+ <IMDB_ID></IMDB_ID>
527
+ <Language>en</Language>
528
+ <Overview>A single dirty bomb could cause massive chaos. Tom Perez is prepping for a terrorist attack and suspects it's only a matter of time before one gets through our defenses. He has not worked in 12 years because he spends most of his day prepping and spends much of his family's yearly income on preps.</Overview>
529
+ <ProductionCode></ProductionCode>
530
+ <Rating>7.4</Rating>
531
+ <RatingCount>5</RatingCount>
532
+ <SeasonNumber>2</SeasonNumber>
533
+ <Writer></Writer>
534
+ <absolute_number></absolute_number>
535
+ <filename>episodes/255608/4431332.jpg</filename>
536
+ <lastupdated>1357341483</lastupdated>
537
+ <seasonid>504485</seasonid>
538
+ <seriesid>255608</seriesid>
539
+ </Episode>
540
+ <Episode>
541
+ <id>4441213</id>
542
+ <Combined_episodenumber>5</Combined_episodenumber>
543
+ <Combined_season>2</Combined_season>
544
+ <DVD_chapter></DVD_chapter>
545
+ <DVD_discid></DVD_discid>
546
+ <DVD_episodenumber></DVD_episodenumber>
547
+ <DVD_season></DVD_season>
548
+ <Director></Director>
549
+ <EpImgFlag>2</EpImgFlag>
550
+ <EpisodeName>Taking From the Haves</EpisodeName>
551
+ <EpisodeNumber>5</EpisodeNumber>
552
+ <FirstAired>2012-12-04</FirstAired>
553
+ <GuestStars></GuestStars>
554
+ <IMDB_ID></IMDB_ID>
555
+ <Language>en</Language>
556
+ <Overview>Jeff Bushaw plans to fly his family to safety following the eruption of the Yellowstone supervolcano; Allen and Franco have built sustainable food production systems in preparation for worldwide food shortages; John Adrain has invented numerous security gadgets to turn his estate into a technological fortress safe from a wide range of disasters.</Overview>
557
+ <ProductionCode></ProductionCode>
558
+ <Rating>7.5</Rating>
559
+ <RatingCount>2</RatingCount>
560
+ <SeasonNumber>2</SeasonNumber>
561
+ <Writer></Writer>
562
+ <absolute_number></absolute_number>
563
+ <filename>episodes/255608/4441213.jpg</filename>
564
+ <lastupdated>1357341582</lastupdated>
565
+ <seasonid>504485</seasonid>
566
+ <seriesid>255608</seriesid>
567
+ </Episode>
568
+ <Episode>
569
+ <id>4446739</id>
570
+ <Combined_episodenumber>6</Combined_episodenumber>
571
+ <Combined_season>2</Combined_season>
572
+ <DVD_chapter></DVD_chapter>
573
+ <DVD_discid></DVD_discid>
574
+ <DVD_episodenumber></DVD_episodenumber>
575
+ <DVD_season></DVD_season>
576
+ <Director></Director>
577
+ <EpImgFlag>2</EpImgFlag>
578
+ <EpisodeName>You've Got Chaos</EpisodeName>
579
+ <EpisodeNumber>6</EpisodeNumber>
580
+ <FirstAired>2012-12-11</FirstAired>
581
+ <GuestStars></GuestStars>
582
+ <IMDB_ID></IMDB_ID>
583
+ <Language>en</Language>
584
+ <Overview>Bob Kay, a nutritional scientist in Southern California, is prepping for environmental destruction due to massive earthquakes; Ryan Croft is prepping for a global financial crisis by cultivating alternative food sources like earthworms; politician Josh Wander is preparing for a terrorist attack, stocking up kosher foods and teaching others about prepping.</Overview>
585
+ <ProductionCode></ProductionCode>
586
+ <Rating>7.0</Rating>
587
+ <RatingCount>1</RatingCount>
588
+ <SeasonNumber>2</SeasonNumber>
589
+ <Writer></Writer>
590
+ <absolute_number></absolute_number>
591
+ <filename>episodes/255608/4446739.jpg</filename>
592
+ <lastupdated>1357341627</lastupdated>
593
+ <seasonid>504485</seasonid>
594
+ <seriesid>255608</seriesid>
595
+ </Episode>
596
+ <Episode>
597
+ <id>4450712</id>
598
+ <Combined_episodenumber>7</Combined_episodenumber>
599
+ <Combined_season>2</Combined_season>
600
+ <DVD_chapter></DVD_chapter>
601
+ <DVD_discid></DVD_discid>
602
+ <DVD_episodenumber></DVD_episodenumber>
603
+ <DVD_season></DVD_season>
604
+ <Director></Director>
605
+ <EpImgFlag>2</EpImgFlag>
606
+ <EpisodeName>Escape From New York</EpisodeName>
607
+ <EpisodeNumber>7</EpisodeNumber>
608
+ <FirstAired>2012-12-18</FirstAired>
609
+ <GuestStars></GuestStars>
610
+ <IMDB_ID></IMDB_ID>
611
+ <Language>en</Language>
612
+ <Overview>Follow three New York preppers as they plan their bug-out to escape destruction from natural disasters.</Overview>
613
+ <ProductionCode></ProductionCode>
614
+ <Rating>7.0</Rating>
615
+ <RatingCount>2</RatingCount>
616
+ <SeasonNumber>2</SeasonNumber>
617
+ <Writer></Writer>
618
+ <absolute_number></absolute_number>
619
+ <filename>episodes/255608/4450712.jpg</filename>
620
+ <lastupdated>1357341684</lastupdated>
621
+ <seasonid>504485</seasonid>
622
+ <seriesid>255608</seriesid>
623
+ </Episode>
624
+ <Episode>
625
+ <id>4458861</id>
626
+ <Combined_episodenumber>8</Combined_episodenumber>
627
+ <Combined_season>2</Combined_season>
628
+ <DVD_chapter></DVD_chapter>
629
+ <DVD_discid></DVD_discid>
630
+ <DVD_episodenumber></DVD_episodenumber>
631
+ <DVD_season></DVD_season>
632
+ <Director></Director>
633
+ <EpImgFlag>2</EpImgFlag>
634
+ <EpisodeName>Prepared Not Scared</EpisodeName>
635
+ <EpisodeNumber>8</EpisodeNumber>
636
+ <FirstAired>2013-01-01</FirstAired>
637
+ <GuestStars></GuestStars>
638
+ <IMDB_ID></IMDB_ID>
639
+ <Language>en</Language>
640
+ <Overview>Brian Smith has big plans for the end of the world.The father of 12 is preparing for a total collapse of the U.S. monetary system and fears that the world's food supply will become scarce. He has stockpiled a year's worth of food, in addition to his recently acquired 47 acres of land in an undisclosed bug-out location, where he plans to grow his own tobacco and sugarcane.</Overview>
641
+ <ProductionCode></ProductionCode>
642
+ <Rating>7.0</Rating>
643
+ <RatingCount>1</RatingCount>
644
+ <SeasonNumber>2</SeasonNumber>
645
+ <Writer></Writer>
646
+ <absolute_number></absolute_number>
647
+ <filename>episodes/255608/4458861.jpg</filename>
648
+ <lastupdated>1361057549</lastupdated>
649
+ <seasonid>504485</seasonid>
650
+ <seriesid>255608</seriesid>
651
+ </Episode>
652
+ <Episode>
653
+ <id>4463809</id>
654
+ <Combined_episodenumber>9</Combined_episodenumber>
655
+ <Combined_season>2</Combined_season>
656
+ <DVD_chapter></DVD_chapter>
657
+ <DVD_discid></DVD_discid>
658
+ <DVD_episodenumber></DVD_episodenumber>
659
+ <DVD_season></DVD_season>
660
+ <Director></Director>
661
+ <EpImgFlag>2</EpImgFlag>
662
+ <EpisodeName>No Such Thing As a Fair Fight</EpisodeName>
663
+ <EpisodeNumber>9</EpisodeNumber>
664
+ <FirstAired>2013-01-08</FirstAired>
665
+ <GuestStars></GuestStars>
666
+ <IMDB_ID></IMDB_ID>
667
+ <Language>en</Language>
668
+ <Overview>Businessman by day, prepper by night. Brent lives in fear of an electromagnetic pulse (EMP) that will make the world go dark, leaving his family of 12 with nothing. To prep for life after the EMP, Brent has constructed a medieval-style castle that will serve as the ultimate bug-out fortress. Derek runs a Wild West theme park and fears that a solar flare will hit earth's atmosphere. He and his family use their amusement park as a secret prepping oasis, where they can practice strategic defense.</Overview>
669
+ <ProductionCode></ProductionCode>
670
+ <Rating>7.0</Rating>
671
+ <RatingCount>2</RatingCount>
672
+ <SeasonNumber>2</SeasonNumber>
673
+ <Writer></Writer>
674
+ <absolute_number></absolute_number>
675
+ <filename>episodes/255608/4463809.jpg</filename>
676
+ <lastupdated>1361057561</lastupdated>
677
+ <seasonid>504485</seasonid>
678
+ <seriesid>255608</seriesid>
679
+ </Episode>
680
+ <Episode>
681
+ <id>4468842</id>
682
+ <Combined_episodenumber>10</Combined_episodenumber>
683
+ <Combined_season>2</Combined_season>
684
+ <DVD_chapter></DVD_chapter>
685
+ <DVD_discid></DVD_discid>
686
+ <DVD_episodenumber></DVD_episodenumber>
687
+ <DVD_season></DVD_season>
688
+ <Director></Director>
689
+ <EpImgFlag>2</EpImgFlag>
690
+ <EpisodeName>In the Hurt Locker</EpisodeName>
691
+ <EpisodeNumber>10</EpisodeNumber>
692
+ <FirstAired>2013-01-15</FirstAired>
693
+ <GuestStars></GuestStars>
694
+ <IMDB_ID></IMDB_ID>
695
+ <Language>en</Language>
696
+ <Overview>Not all preppers are relying on their nuclear family to survive the end of time; to some, creating a tight-knit community of like-minded individuals is the difference between death and survival. Guided by his intuition and his Apache heritage, a prepper known as “Snake Blocker” is convinced a coming economic collapse will result in social chaos. To protect himself against social unrest, Snake is building a community of people with strong self-defense skills by teaching his own knife-throwing classes</Overview>
697
+ <ProductionCode></ProductionCode>
698
+ <Rating>7.0</Rating>
699
+ <RatingCount>4</RatingCount>
700
+ <SeasonNumber>2</SeasonNumber>
701
+ <Writer></Writer>
702
+ <absolute_number></absolute_number>
703
+ <filename>episodes/255608/4468842.jpg</filename>
704
+ <lastupdated>1357342022</lastupdated>
705
+ <seasonid>504485</seasonid>
706
+ <seriesid>255608</seriesid>
707
+ </Episode>
708
+ <Episode>
709
+ <id>4475307</id>
710
+ <Combined_episodenumber>11</Combined_episodenumber>
711
+ <Combined_season>2</Combined_season>
712
+ <DVD_chapter></DVD_chapter>
713
+ <DVD_discid></DVD_discid>
714
+ <DVD_episodenumber></DVD_episodenumber>
715
+ <DVD_season></DVD_season>
716
+ <Director></Director>
717
+ <EpImgFlag>1</EpImgFlag>
718
+ <EpisodeName>Prepper's Paradise</EpisodeName>
719
+ <EpisodeNumber>11</EpisodeNumber>
720
+ <FirstAired>2013-01-22</FirstAired>
721
+ <GuestStars></GuestStars>
722
+ <IMDB_ID></IMDB_ID>
723
+ <Language>en</Language>
724
+ <Overview>Doomsday Preppers visits the household of Amanda Bobbin, who began prepping after being warned in her sleep of imminent danger. These days Amanda and her husband Scott spend their time hidden away in the mountains, where they practice sustainable living to prepare themselves in the event of a comet hitting the earth's atmosphere. </Overview>
725
+ <ProductionCode></ProductionCode>
726
+ <Rating>7.0</Rating>
727
+ <RatingCount>1</RatingCount>
728
+ <SeasonNumber>2</SeasonNumber>
729
+ <Writer></Writer>
730
+ <absolute_number></absolute_number>
731
+ <filename>episodes/255608/4475307.jpg</filename>
732
+ <lastupdated>1360707802</lastupdated>
733
+ <seasonid>504485</seasonid>
734
+ <seriesid>255608</seriesid>
735
+ </Episode>
736
+ <Episode>
737
+ <id>4492295</id>
738
+ <Combined_episodenumber>12</Combined_episodenumber>
739
+ <Combined_season>2</Combined_season>
740
+ <DVD_chapter></DVD_chapter>
741
+ <DVD_discid></DVD_discid>
742
+ <DVD_episodenumber></DVD_episodenumber>
743
+ <DVD_season></DVD_season>
744
+ <Director></Director>
745
+ <EpImgFlag>2</EpImgFlag>
746
+ <EpisodeName>Hit the Ground Running</EpisodeName>
747
+ <EpisodeNumber>12</EpisodeNumber>
748
+ <FirstAired>2013-02-05</FirstAired>
749
+ <GuestStars></GuestStars>
750
+ <IMDB_ID></IMDB_ID>
751
+ <Language>en</Language>
752
+ <Overview>Former firefighter medics John and Kelly are motorcycle riders living on a prepping homestead in the mountains of Virginia in preparation for a total economic collapse. Frank, who owns a construction company in Maine, spends his golden years flying his private plane and preparing for the upcoming economic collapse. Finally, we meet mobile prepper Brian as he prepares for his fear: a terrorist attack. Brian spends the majority of his time on the road in his ultimate bug-out vehicle </Overview>
753
+ <ProductionCode></ProductionCode>
754
+ <Rating>7.0</Rating>
755
+ <RatingCount>2</RatingCount>
756
+ <SeasonNumber>2</SeasonNumber>
757
+ <Writer></Writer>
758
+ <absolute_number></absolute_number>
759
+ <filename>episodes/255608/4492295.jpg</filename>
760
+ <lastupdated>1363212923</lastupdated>
761
+ <seasonid>504485</seasonid>
762
+ <seriesid>255608</seriesid>
763
+ </Episode>
764
+ <Episode>
765
+ <id>4492296</id>
766
+ <Combined_episodenumber>13</Combined_episodenumber>
767
+ <Combined_season>2</Combined_season>
768
+ <DVD_chapter></DVD_chapter>
769
+ <DVD_discid></DVD_discid>
770
+ <DVD_episodenumber></DVD_episodenumber>
771
+ <DVD_season></DVD_season>
772
+ <Director></Director>
773
+ <EpImgFlag>2</EpImgFlag>
774
+ <EpisodeName>Solutions Not Problems</EpisodeName>
775
+ <EpisodeNumber>13</EpisodeNumber>
776
+ <FirstAired>2013-02-12</FirstAired>
777
+ <GuestStars></GuestStars>
778
+ <IMDB_ID></IMDB_ID>
779
+ <Language>en</Language>
780
+ <Overview>Prepping for an economic collapse, Jeff is converting a decommissioned missile silo into the perfect bug-out getaway. But that's not all Jeff is focused on. With an online dating profile, he is also searching for a special someone who can share his love for prepping. We'll see Jeff, a bachelor on the lookout for love, not only work on his bunker, but also go on multiple dates to find his prepper mate. We also meet Doug, who lives in the mountains of Tennesse and is known by locals as &quot;Rockman&quot;. </Overview>
781
+ <ProductionCode></ProductionCode>
782
+ <Rating>8.0</Rating>
783
+ <RatingCount>2</RatingCount>
784
+ <SeasonNumber>2</SeasonNumber>
785
+ <Writer></Writer>
786
+ <absolute_number></absolute_number>
787
+ <filename>episodes/255608/4492296.jpg</filename>
788
+ <lastupdated>1363212987</lastupdated>
789
+ <seasonid>504485</seasonid>
790
+ <seriesid>255608</seriesid>
791
+ </Episode>
792
+ <Episode>
793
+ <id>4497174</id>
794
+ <Combined_episodenumber>14</Combined_episodenumber>
795
+ <Combined_season>2</Combined_season>
796
+ <DVD_chapter></DVD_chapter>
797
+ <DVD_discid></DVD_discid>
798
+ <DVD_episodenumber></DVD_episodenumber>
799
+ <DVD_season></DVD_season>
800
+ <Director></Director>
801
+ <EpImgFlag>2</EpImgFlag>
802
+ <EpisodeName>Pain is Good</EpisodeName>
803
+ <EpisodeNumber>14</EpisodeNumber>
804
+ <FirstAired>2013-02-19</FirstAired>
805
+ <GuestStars></GuestStars>
806
+ <IMDB_ID></IMDB_ID>
807
+ <Language>en</Language>
808
+ <Overview>Meet Craig, a proud Alaskan living in the woods of Fairbanks, fearing the collapse of the American economy. He's secretly built a bug-out dome, designed by friend and prepping partner Don. Accessible only by boat, the dome will serve as a refuge for his wife and two daughters. Then we follow David, a new age spiritual prepper from Hawaii, who fears a catastrophic tsunami will strike the island but has prepped with his girlfriend to bug out to the top of a mountain. </Overview>
809
+ <ProductionCode></ProductionCode>
810
+ <Rating>7.0</Rating>
811
+ <RatingCount>1</RatingCount>
812
+ <SeasonNumber>2</SeasonNumber>
813
+ <Writer></Writer>
814
+ <absolute_number></absolute_number>
815
+ <filename>episodes/255608/4497174.jpg</filename>
816
+ <lastupdated>1363213001</lastupdated>
817
+ <seasonid>504485</seasonid>
818
+ <seriesid>255608</seriesid>
819
+ </Episode>
820
+ <Episode>
821
+ <id>4506621</id>
822
+ <Combined_episodenumber>15</Combined_episodenumber>
823
+ <Combined_season>2</Combined_season>
824
+ <DVD_chapter></DVD_chapter>
825
+ <DVD_discid></DVD_discid>
826
+ <DVD_episodenumber></DVD_episodenumber>
827
+ <DVD_season></DVD_season>
828
+ <Director></Director>
829
+ <EpImgFlag>2</EpImgFlag>
830
+ <EpisodeName>A Fortress at Sea</EpisodeName>
831
+ <EpisodeNumber>15</EpisodeNumber>
832
+ <FirstAired>2013-03-05</FirstAired>
833
+ <GuestStars></GuestStars>
834
+ <IMDB_ID></IMDB_ID>
835
+ <Language>en</Language>
836
+ <Overview>Meet the Coy family, who live in the shadow of Mount St. Helens and prep for its eruption. Each member of the family has a specific job and multiple means of escape, including over land and water. Another prepper, Capt. William E. Simpson, has spent six years singlehandedly building his perfect bunker, but it's not underground: it's his sailboat.</Overview>
837
+ <ProductionCode></ProductionCode>
838
+ <Rating>7.0</Rating>
839
+ <RatingCount>2</RatingCount>
840
+ <SeasonNumber>2</SeasonNumber>
841
+ <Writer></Writer>
842
+ <absolute_number></absolute_number>
843
+ <filename>episodes/255608/4506621.jpg</filename>
844
+ <lastupdated>1363213031</lastupdated>
845
+ <seasonid>504485</seasonid>
846
+ <seriesid>255608</seriesid>
847
+ </Episode>
848
+ <Episode>
849
+ <id>4514184</id>
850
+ <Combined_episodenumber>16</Combined_episodenumber>
851
+ <Combined_season>2</Combined_season>
852
+ <DVD_chapter></DVD_chapter>
853
+ <DVD_discid></DVD_discid>
854
+ <DVD_episodenumber></DVD_episodenumber>
855
+ <DVD_season></DVD_season>
856
+ <Director></Director>
857
+ <EpImgFlag>2</EpImgFlag>
858
+ <EpisodeName>Let Her Rip</EpisodeName>
859
+ <EpisodeNumber>16</EpisodeNumber>
860
+ <FirstAired>2013-03-12</FirstAired>
861
+ <GuestStars></GuestStars>
862
+ <IMDB_ID></IMDB_ID>
863
+ <Language>en</Language>
864
+ <Overview>Meet Mike and his girlfriend Freda, a descendant from “Devil Anse Hatfield,” the leader of the Hatfield Clan. The couple lives in the deep woods of Virginia, and fear that the current political tensions and economic unrest will lead to a world war. Next, we follow Mike Adams, in Oregon, who is anticipating a terrorist attack. Finally, we profile Joe, a nonconformist living in the backwoods of Kansas, who has already given up on modern living.</Overview>
865
+ <ProductionCode></ProductionCode>
866
+ <Rating>7.0</Rating>
867
+ <RatingCount>1</RatingCount>
868
+ <SeasonNumber>2</SeasonNumber>
869
+ <Writer></Writer>
870
+ <absolute_number></absolute_number>
871
+ <filename>episodes/255608/4514184.jpg</filename>
872
+ <lastupdated>1363212957</lastupdated>
873
+ <seasonid>504485</seasonid>
874
+ <seriesid>255608</seriesid>
875
+ </Episode>
876
+ <Episode>
877
+ <id>4519059</id>
878
+ <Combined_episodenumber>17</Combined_episodenumber>
879
+ <Combined_season>2</Combined_season>
880
+ <DVD_chapter></DVD_chapter>
881
+ <DVD_discid></DVD_discid>
882
+ <DVD_episodenumber></DVD_episodenumber>
883
+ <DVD_season></DVD_season>
884
+ <Director></Director>
885
+ <EpImgFlag>2</EpImgFlag>
886
+ <EpisodeName>Gonna Be a Big Bang</EpisodeName>
887
+ <EpisodeNumber>17</EpisodeNumber>
888
+ <FirstAired>2013-03-19</FirstAired>
889
+ <GuestStars></GuestStars>
890
+ <IMDB_ID></IMDB_ID>
891
+ <Language>en</Language>
892
+ <Overview>Brad and Krystal prep hard prepare for an economic collapse. They've stockpiled canned goods, cached weapons and secured bulletproof vests. But their holy grail of prepping is an underground bunker, which they've been struggling to obtain. Kevin and his family live the American Dream, but now they're bugging out to Costa Rica. They believe an economic collapse will make America unlivable. With just weeks until moving day, see how Kevin and his wife prepare their family for a new life.</Overview>
893
+ <ProductionCode></ProductionCode>
894
+ <Rating>6.7</Rating>
895
+ <RatingCount>3</RatingCount>
896
+ <SeasonNumber>2</SeasonNumber>
897
+ <Writer></Writer>
898
+ <absolute_number></absolute_number>
899
+ <filename>episodes/255608/4519059.jpg</filename>
900
+ <lastupdated>1363212896</lastupdated>
901
+ <seasonid>504485</seasonid>
902
+ <seriesid>255608</seriesid>
903
+ </Episode>
904
+ <Episode>
905
+ <id>4523967</id>
906
+ <Combined_episodenumber>18</Combined_episodenumber>
907
+ <Combined_season>2</Combined_season>
908
+ <DVD_chapter></DVD_chapter>
909
+ <DVD_discid></DVD_discid>
910
+ <DVD_episodenumber></DVD_episodenumber>
911
+ <DVD_season></DVD_season>
912
+ <Director></Director>
913
+ <EpImgFlag></EpImgFlag>
914
+ <EpisodeName>Lone Wolves and Lovers</EpisodeName>
915
+ <EpisodeNumber>18</EpisodeNumber>
916
+ <FirstAired>2013-03-26</FirstAired>
917
+ <GuestStars></GuestStars>
918
+ <IMDB_ID></IMDB_ID>
919
+ <Language>en</Language>
920
+ <Overview></Overview>
921
+ <ProductionCode></ProductionCode>
922
+ <Rating>6.0</Rating>
923
+ <RatingCount>1</RatingCount>
924
+ <SeasonNumber>2</SeasonNumber>
925
+ <Writer></Writer>
926
+ <absolute_number></absolute_number>
927
+ <filename></filename>
928
+ <lastupdated>1363398151</lastupdated>
929
+ <seasonid>504485</seasonid>
930
+ <seriesid>255608</seriesid>
931
+ </Episode>
932
+ </Data>
@@ -2,9 +2,9 @@ require "spec_helper"
2
2
 
3
3
  describe TheTvDB::Series do
4
4
  let(:api) { TheTvDB.new }
5
-
5
+
6
6
  context ".search" do
7
-
7
+
8
8
  it "returns an empty array when no results" do
9
9
  stub_get("GetSeries.php?language=en&seriesname=asdf").
10
10
  to_return(:status => 200, :body => fixture("series/empty.xml"))
@@ -16,16 +16,16 @@ describe TheTvDB::Series do
16
16
  to_return(:status => 200, :body => fixture("series/result.xml"))
17
17
  api.series.search("Fringe").count.should == 1
18
18
  end
19
-
19
+
20
20
  it "returns an array of results" do
21
21
  stub_get("GetSeries.php?language=en&seriesname=Wilfred").
22
22
  to_return(:status => 200, :body => fixture("series/results.xml"))
23
23
  api.series.search("Wilfred").count.should > 1
24
24
  end
25
25
  end
26
-
26
+
27
27
  context ".find" do
28
-
28
+
29
29
  context "when unauthenticated" do
30
30
  it "returns a series obejct" do
31
31
  stub_get("data/series/82066/all/", TheTvDB::SITE.to_s).
@@ -33,7 +33,7 @@ describe TheTvDB::Series do
33
33
  series = api.series.find("82066")
34
34
  series.id.should == "82066"
35
35
  end
36
-
36
+
37
37
  it "raises RecordNotFound" do
38
38
  stub_get("data/series/-1/all/", TheTvDB::SITE.to_s).
39
39
  to_return(:status => 404, :body => fixture("series/404.html"))
@@ -42,34 +42,54 @@ describe TheTvDB::Series do
42
42
  }.to raise_error(TheTvDB::RecordNotFound)
43
43
  end
44
44
  end
45
-
45
+
46
46
  context "when api key is provided" do
47
- before :all do
48
- stub_get("ASDF01234F0AF1368/series/82066/all/en.zip").
49
- to_return(:status => 200,
50
- :body => fixture("series/en.zip"),
51
- :headers => { "content-type" => "application/zip" })
52
-
53
- api = TheTvDB.new(:api_key => "ASDF01234F0AF1368")
54
- @series = api.series.find("82066")
55
- end
56
-
57
- it "returns a series object" do
58
- @series.id.should == "82066"
59
- end
60
-
61
- it "assigns episodes" do
62
- @series.episodes.should_not be_nil
63
- end
64
-
65
- it "assigns banners" do
66
- @series.banners.should_not be_nil
47
+ let(:api) { TheTvDB.new(:api_key => "ASDF01234F0AF1368") }
48
+
49
+ context "and zip has all information" do
50
+ before do
51
+ stub_get("ASDF01234F0AF1368/series/82066/all/en.zip").
52
+ to_return(:status => 200,
53
+ :body => fixture("series/en.zip"),
54
+ :headers => { "content-type" => "application/zip" })
55
+ @series = api.series.find("82066")
56
+ end
57
+
58
+ it "returns a series object" do
59
+ @series.id.should == "82066"
60
+ end
61
+
62
+ it "assigns episodes" do
63
+ @series.episodes.count.should == 97
64
+ @series.episodes.first.name.should == "Unaired Pilot"
65
+ end
66
+
67
+ it "assigns banners" do
68
+ @series.banners.count.should == 213
69
+ @series.banners.first["BannerPath"].should == "fanart/original/82066-78.jpg"
70
+ end
71
+
72
+ it "assigns actors" do
73
+ @series.actors.count.should == 10
74
+ @series.actors.first["name"] == "Anna Torv"
75
+ end
67
76
  end
68
-
69
- it "assigns actors" do
70
- @series.actors.should_not be_nil
77
+
78
+ context "when xml file in zip has no children" do
79
+ before do
80
+ stub_get("ASDF01234F0AF1368/series/82066/all/en.zip").
81
+ to_return(:status => 200,
82
+ :body => fixture("series/en_without_actors.zip"),
83
+ :headers => { "content-type" => "application/zip" })
84
+ @series = api.series.find("82066")
85
+ end
86
+
87
+ it "doesn't assign actors" do
88
+ @series.actors.should be_nil
89
+ end
71
90
  end
72
91
  end
73
-
92
+
74
93
  end
75
- end
94
+
95
+ end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: the_tv_db
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.9
4
+ version: 0.0.10
5
5
  prerelease:
6
6
  platform: ruby
7
7
  authors:
@@ -9,7 +9,7 @@ authors:
9
9
  autorequire:
10
10
  bindir: bin
11
11
  cert_chain: []
12
- date: 2013-04-16 00:00:00.000000000 Z
12
+ date: 2013-06-15 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: faraday
@@ -146,6 +146,10 @@ files:
146
146
  - spec/fixtures/series/en/actors.xml
147
147
  - spec/fixtures/series/en/banners.xml
148
148
  - spec/fixtures/series/en/en.xml
149
+ - spec/fixtures/series/en_without_actors.zip
150
+ - spec/fixtures/series/en_without_actors/actors.xml
151
+ - spec/fixtures/series/en_without_actors/banners.xml
152
+ - spec/fixtures/series/en_without_actors/en.xml
149
153
  - spec/fixtures/series/find.xml
150
154
  - spec/fixtures/series/result.xml
151
155
  - spec/fixtures/series/results.xml
@@ -189,6 +193,10 @@ test_files:
189
193
  - spec/fixtures/series/en/actors.xml
190
194
  - spec/fixtures/series/en/banners.xml
191
195
  - spec/fixtures/series/en/en.xml
196
+ - spec/fixtures/series/en_without_actors.zip
197
+ - spec/fixtures/series/en_without_actors/actors.xml
198
+ - spec/fixtures/series/en_without_actors/banners.xml
199
+ - spec/fixtures/series/en_without_actors/en.xml
192
200
  - spec/fixtures/series/find.xml
193
201
  - spec/fixtures/series/result.xml
194
202
  - spec/fixtures/series/results.xml