royw-dvdprofiler2xbmc 0.1.0 → 0.1.2

Sign up to get free protection for your applications and to get access to all the features.
Files changed (78) hide show
  1. data/Rakefile +3 -3
  2. data/VERSION.yml +1 -1
  3. data/lib/dvdprofiler2xbmc/app_config.rb +8 -8
  4. data/lib/dvdprofiler2xbmc/controllers/app.rb +8 -8
  5. data/lib/dvdprofiler2xbmc/controllers/nfo_controller.rb +12 -6
  6. data/lib/dvdprofiler2xbmc/models/dvdprofiler_info.rb +15 -1
  7. data/lib/dvdprofiler2xbmc/models/media.rb +2 -1
  8. data/spec/dvdprofiler2xbmc_spec.rb +10 -8
  9. data/spec/nfo_controller_spec.rb +48 -6
  10. data/spec/samples/Collection.xml +374 -177
  11. data/spec/samples/api.themoviedb.org/2.0/{Movie.imdbLookup?imdb_id=tt0060934&api_key=7a2f6eb9b6aa01651000f0a9324db835 → Movie.imdbLookup?imdb_id=tt0028390&api_key=7a2f6eb9b6aa01651000f0a9324db835} +2 -2
  12. data/spec/samples/api.themoviedb.org/2.0/Movie.imdbLookup?imdb_id=tt0035958&api_key=7a2f6eb9b6aa01651000f0a9324db835 +8 -0
  13. data/spec/samples/api.themoviedb.org/2.0/Movie.imdbLookup?imdb_id=tt0047437&api_key=7a2f6eb9b6aa01651000f0a9324db835 +26 -0
  14. data/spec/samples/api.themoviedb.org/2.0/Movie.imdbLookup?imdb_id=tt0048445&api_key=7a2f6eb9b6aa01651000f0a9324db835 +22 -0
  15. data/spec/samples/api.themoviedb.org/2.0/Movie.imdbLookup?imdb_id=tt0048937&api_key=7a2f6eb9b6aa01651000f0a9324db835 +8 -0
  16. data/spec/samples/api.themoviedb.org/2.0/Movie.imdbLookup?imdb_id=tt0050562&api_key=7a2f6eb9b6aa01651000f0a9324db835 +8 -0
  17. data/spec/samples/api.themoviedb.org/2.0/Movie.imdbLookup?imdb_id=tt0053580&api_key=7a2f6eb9b6aa01651000f0a9324db835 +8 -0
  18. data/spec/samples/api.themoviedb.org/2.0/Movie.imdbLookup?imdb_id=tt0073636&api_key=7a2f6eb9b6aa01651000f0a9324db835 +8 -0
  19. data/spec/samples/api.themoviedb.org/2.0/Movie.imdbLookup?imdb_id=tt0084296&api_key=7a2f6eb9b6aa01651000f0a9324db835 +8 -0
  20. data/spec/samples/api.themoviedb.org/2.0/Movie.imdbLookup?imdb_id=tt0092494&api_key=7a2f6eb9b6aa01651000f0a9324db835 +26 -0
  21. data/spec/samples/api.themoviedb.org/2.0/Movie.imdbLookup?imdb_id=tt0102059&api_key=7a2f6eb9b6aa01651000f0a9324db835 +26 -0
  22. data/spec/samples/api.themoviedb.org/2.0/Movie.imdbLookup?imdb_id=tt0108171&api_key=7a2f6eb9b6aa01651000f0a9324db835 +1 -1
  23. data/spec/samples/api.themoviedb.org/2.0/Movie.imdbLookup?imdb_id=tt0114319&api_key=7a2f6eb9b6aa01651000f0a9324db835 +22 -0
  24. data/spec/samples/api.themoviedb.org/2.0/Movie.imdbLookup?imdb_id=tt0114437&api_key=7a2f6eb9b6aa01651000f0a9324db835 +8 -0
  25. data/spec/samples/api.themoviedb.org/2.0/Movie.imdbLookup?imdb_id=tt0114924&api_key=7a2f6eb9b6aa01651000f0a9324db835 +1 -1
  26. data/spec/samples/api.themoviedb.org/2.0/Movie.imdbLookup?imdb_id=tt0118617&api_key=7a2f6eb9b6aa01651000f0a9324db835 +26 -0
  27. data/spec/samples/api.themoviedb.org/2.0/Movie.imdbLookup?imdb_id=tt0213149&api_key=7a2f6eb9b6aa01651000f0a9324db835 +26 -0
  28. data/spec/samples/api.themoviedb.org/2.0/Movie.imdbLookup?imdb_id=tt0238112&api_key=7a2f6eb9b6aa01651000f0a9324db835 +26 -0
  29. data/spec/samples/api.themoviedb.org/2.0/Movie.imdbLookup?imdb_id=tt0276751&api_key=7a2f6eb9b6aa01651000f0a9324db835 +26 -0
  30. data/spec/samples/api.themoviedb.org/2.0/Movie.imdbLookup?imdb_id=tt0318974&api_key=7a2f6eb9b6aa01651000f0a9324db835 +26 -0
  31. data/spec/samples/api.themoviedb.org/2.0/Movie.imdbLookup?imdb_id=tt0368891&api_key=7a2f6eb9b6aa01651000f0a9324db835 +26 -0
  32. data/spec/samples/api.themoviedb.org/2.0/Movie.imdbLookup?imdb_id=tt0388976&api_key=7a2f6eb9b6aa01651000f0a9324db835 +8 -0
  33. data/spec/samples/api.themoviedb.org/2.0/Movie.imdbLookup?imdb_id=tt0407511&api_key=7a2f6eb9b6aa01651000f0a9324db835 +8 -0
  34. data/spec/samples/api.themoviedb.org/2.0/Movie.imdbLookup?imdb_id=tt0454824&api_key=7a2f6eb9b6aa01651000f0a9324db835 +26 -0
  35. data/spec/samples/api.themoviedb.org/2.0/Movie.imdbLookup?imdb_id=tt0465234&api_key=7a2f6eb9b6aa01651000f0a9324db835 +1 -1
  36. data/spec/samples/www.imdb.com/find?q=%2Abatteries+not+included;s=tt +16 -11
  37. data/spec/samples/www.imdb.com/find?q=About+a+Boy;s=tt +16 -11
  38. data/spec/samples/www.imdb.com/find?q=Alexander+the+Great;s=tt +15 -10
  39. data/spec/samples/www.imdb.com/find?q=Anastasia;s=tt +16 -11
  40. data/spec/samples/www.imdb.com/find?q=Call+Me%3A+The+Rise+and+Fall+of+Heidi+Fleiss;s=tt +21 -16
  41. data/spec/samples/www.imdb.com/find?q=Call+Me+The+Rise+and+Fall+of+Heidi+Fleiss;s=tt +835 -0
  42. data/spec/samples/www.imdb.com/find?q=Captain+Corelli%27s+Mandolin;s=tt +21 -16
  43. data/spec/samples/www.imdb.com/find?q=Captain+Corelli+s+Mandolin;s=tt +522 -0
  44. data/spec/samples/www.imdb.com/find?q=Flyboys;s=tt +21 -16
  45. data/spec/samples/www.imdb.com/find?q=Gung+Ho%21;s=tt +15 -10
  46. data/spec/samples/www.imdb.com/find?q=Gung+Ho;s=tt +509 -0
  47. data/spec/samples/www.imdb.com/find?q=Hot+Shots%21;s=tt +15 -10
  48. data/spec/samples/www.imdb.com/find?q=Hot+Shots;s=tt +522 -0
  49. data/spec/samples/www.imdb.com/find?q=Jet+Pilot;s=tt +505 -0
  50. data/spec/samples/www.imdb.com/find?q=Meltdown;s=tt +15 -10
  51. data/spec/samples/www.imdb.com/find?q=Mexico+Whitetails;s=tt +461 -0
  52. data/spec/samples/www.imdb.com/{find?q=National+Treasure+2;s=tt → find?q=National+Treasure+2%3A+Book+of+Secrets;s=tt} +36 -40
  53. data/spec/samples/www.imdb.com/{find?q=National+Treasure%3A+Book+of+Secrets;s=tt → find?q=National+Treasure+2+Book+of+Secrets;s=tt} +65 -74
  54. data/spec/samples/www.imdb.com/find?q=National+Treasure;s=tt +527 -0
  55. data/spec/samples/www.imdb.com/find?q=Oklahoma%21;s=tt +16 -11
  56. data/spec/samples/www.imdb.com/find?q=Oklahoma;s=tt +522 -0
  57. data/spec/samples/www.imdb.com/find?q=Pearl+Harbor+Payback+%2F+Appointment+in+Tokyo;s=tt +461 -0
  58. data/spec/samples/www.imdb.com/find?q=Pearl+Harbor+Payback+Appointment+in+Tokyo;s=tt +461 -0
  59. data/spec/samples/www.imdb.com/find?q=Pearl+Harbor;s=tt +527 -0
  60. data/spec/samples/www.imdb.com/find?q=Rodeo+Racketeers%3A+John+Wayne+Young+Duke+Series;s=tt +461 -0
  61. data/spec/samples/www.imdb.com/find?q=Rodeo+Racketeers+John+Wayne+Young+Duke+Series;s=tt +461 -0
  62. data/spec/samples/www.imdb.com/find?q=Rooster+Cogburn+%28+and+the+Lady%29;s=tt +503 -0
  63. data/spec/samples/www.imdb.com/find?q=Rooster+Cogburn+%28...and+the+Lady%29;s=tt +15 -10
  64. data/spec/samples/www.imdb.com/{find?q=rooster+cogburn;s=tt → find?q=Rooster+Cogburn;s=tt} +41 -52
  65. data/spec/samples/www.imdb.com/find?q=Sabrina;s=tt +510 -0
  66. data/spec/samples/www.imdb.com/find?q=The+Adventures+of+Indiana+Jones%3A+The+Complete+DVD+Movie+Collection;s=tt +452 -0
  67. data/spec/samples/www.imdb.com/find?q=The+Adventures+of+Indiana+Jones+The+Complete+DVD+Movie+Collection;s=tt +452 -0
  68. data/spec/samples/www.imdb.com/find?q=The+Alamo+Documentary;s=tt +501 -0
  69. data/spec/samples/www.imdb.com/find?q=The+Alamo;s=tt +22 -26
  70. data/spec/samples/www.imdb.com/find?q=The+Egg+and+I;s=tt +23 -18
  71. data/spec/samples/www.imdb.com/find?q=The+Great+American+Western%3A+Volume+6;s=tt +452 -0
  72. data/spec/samples/www.imdb.com/find?q=The+Great+American+Western+Volume+6;s=tt +452 -0
  73. data/spec/samples/www.imdb.com/find?q=The+Man+from+Snowy+River;s=tt +15 -10
  74. data/spec/samples/www.imdb.com/find?q=The+Mummy+Collector%27s+Set;s=tt +452 -0
  75. data/spec/samples/www.imdb.com/find?q=The+Mummy+Collector+s+Set;s=tt +452 -0
  76. data/spec/samples/www.imdb.com/find?q=Topper+Topper+%26+Topper+Returns;s=tt +508 -0
  77. data/spec/samples/www.imdb.com/find?q=batteries+not+included;s=tt +522 -0
  78. metadata +54 -9
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: royw-dvdprofiler2xbmc
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.0
4
+ version: 0.1.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - Roy Wright
@@ -9,7 +9,7 @@ autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
11
 
12
- date: 2009-04-21 00:00:00 -07:00
12
+ date: 2009-04-23 00:00:00 -07:00
13
13
  default_executable: dvdprofiler2xbmc
14
14
  dependencies:
15
15
  - !ruby/object:Gem::Dependency
@@ -50,7 +50,7 @@ dependencies:
50
50
  requirements:
51
51
  - - ">="
52
52
  - !ruby/object:Gem::Version
53
- version: 0.0.2
53
+ version: 0.0.3
54
54
  version:
55
55
  - !ruby/object:Gem::Dependency
56
56
  name: royw-imdb
@@ -60,7 +60,7 @@ dependencies:
60
60
  requirements:
61
61
  - - ">="
62
62
  - !ruby/object:Gem::Version
63
- version: 0.1.3
63
+ version: 0.1.5
64
64
  version:
65
65
  - !ruby/object:Gem::Dependency
66
66
  name: royw-tmdb
@@ -80,7 +80,7 @@ dependencies:
80
80
  requirements:
81
81
  - - ">="
82
82
  - !ruby/object:Gem::Version
83
- version: 0.1.3
83
+ version: 0.1.4
84
84
  version:
85
85
  - !ruby/object:Gem::Dependency
86
86
  name: log4r
@@ -163,31 +163,76 @@ files:
163
163
  - spec/samples/Die Hard - 1988.nfo
164
164
  - spec/samples/Ma and Pa Kettle.cd1.dummy
165
165
  - spec/samples/The Egg and I.dummy
166
+ - spec/samples/api.themoviedb.org/2.0/Movie.imdbLookup?imdb_id=tt0028390&api_key=7a2f6eb9b6aa01651000f0a9324db835
167
+ - spec/samples/api.themoviedb.org/2.0/Movie.imdbLookup?imdb_id=tt0035958&api_key=7a2f6eb9b6aa01651000f0a9324db835
166
168
  - spec/samples/api.themoviedb.org/2.0/Movie.imdbLookup?imdb_id=tt0039349&api_key=7a2f6eb9b6aa01651000f0a9324db835
167
- - spec/samples/api.themoviedb.org/2.0/Movie.imdbLookup?imdb_id=tt0060934&api_key=7a2f6eb9b6aa01651000f0a9324db835
169
+ - spec/samples/api.themoviedb.org/2.0/Movie.imdbLookup?imdb_id=tt0047437&api_key=7a2f6eb9b6aa01651000f0a9324db835
170
+ - spec/samples/api.themoviedb.org/2.0/Movie.imdbLookup?imdb_id=tt0048445&api_key=7a2f6eb9b6aa01651000f0a9324db835
171
+ - spec/samples/api.themoviedb.org/2.0/Movie.imdbLookup?imdb_id=tt0048937&api_key=7a2f6eb9b6aa01651000f0a9324db835
172
+ - spec/samples/api.themoviedb.org/2.0/Movie.imdbLookup?imdb_id=tt0050562&api_key=7a2f6eb9b6aa01651000f0a9324db835
173
+ - spec/samples/api.themoviedb.org/2.0/Movie.imdbLookup?imdb_id=tt0053580&api_key=7a2f6eb9b6aa01651000f0a9324db835
174
+ - spec/samples/api.themoviedb.org/2.0/Movie.imdbLookup?imdb_id=tt0073636&api_key=7a2f6eb9b6aa01651000f0a9324db835
175
+ - spec/samples/api.themoviedb.org/2.0/Movie.imdbLookup?imdb_id=tt0084296&api_key=7a2f6eb9b6aa01651000f0a9324db835
176
+ - spec/samples/api.themoviedb.org/2.0/Movie.imdbLookup?imdb_id=tt0092494&api_key=7a2f6eb9b6aa01651000f0a9324db835
168
177
  - spec/samples/api.themoviedb.org/2.0/Movie.imdbLookup?imdb_id=tt0095016&api_key=7a2f6eb9b6aa01651000f0a9324db835
178
+ - spec/samples/api.themoviedb.org/2.0/Movie.imdbLookup?imdb_id=tt0102059&api_key=7a2f6eb9b6aa01651000f0a9324db835
169
179
  - spec/samples/api.themoviedb.org/2.0/Movie.imdbLookup?imdb_id=tt0108171&api_key=7a2f6eb9b6aa01651000f0a9324db835
170
180
  - spec/samples/api.themoviedb.org/2.0/Movie.imdbLookup?imdb_id=tt0110413&api_key=7a2f6eb9b6aa01651000f0a9324db835
181
+ - spec/samples/api.themoviedb.org/2.0/Movie.imdbLookup?imdb_id=tt0114319&api_key=7a2f6eb9b6aa01651000f0a9324db835
182
+ - spec/samples/api.themoviedb.org/2.0/Movie.imdbLookup?imdb_id=tt0114437&api_key=7a2f6eb9b6aa01651000f0a9324db835
171
183
  - spec/samples/api.themoviedb.org/2.0/Movie.imdbLookup?imdb_id=tt0114924&api_key=7a2f6eb9b6aa01651000f0a9324db835
184
+ - spec/samples/api.themoviedb.org/2.0/Movie.imdbLookup?imdb_id=tt0118617&api_key=7a2f6eb9b6aa01651000f0a9324db835
185
+ - spec/samples/api.themoviedb.org/2.0/Movie.imdbLookup?imdb_id=tt0213149&api_key=7a2f6eb9b6aa01651000f0a9324db835
186
+ - spec/samples/api.themoviedb.org/2.0/Movie.imdbLookup?imdb_id=tt0238112&api_key=7a2f6eb9b6aa01651000f0a9324db835
187
+ - spec/samples/api.themoviedb.org/2.0/Movie.imdbLookup?imdb_id=tt0276751&api_key=7a2f6eb9b6aa01651000f0a9324db835
188
+ - spec/samples/api.themoviedb.org/2.0/Movie.imdbLookup?imdb_id=tt0318974&api_key=7a2f6eb9b6aa01651000f0a9324db835
189
+ - spec/samples/api.themoviedb.org/2.0/Movie.imdbLookup?imdb_id=tt0368891&api_key=7a2f6eb9b6aa01651000f0a9324db835
190
+ - spec/samples/api.themoviedb.org/2.0/Movie.imdbLookup?imdb_id=tt0388976&api_key=7a2f6eb9b6aa01651000f0a9324db835
191
+ - spec/samples/api.themoviedb.org/2.0/Movie.imdbLookup?imdb_id=tt0407511&api_key=7a2f6eb9b6aa01651000f0a9324db835
192
+ - spec/samples/api.themoviedb.org/2.0/Movie.imdbLookup?imdb_id=tt0454824&api_key=7a2f6eb9b6aa01651000f0a9324db835
172
193
  - spec/samples/api.themoviedb.org/2.0/Movie.imdbLookup?imdb_id=tt0465234&api_key=7a2f6eb9b6aa01651000f0a9324db835
173
194
  - spec/samples/www.imdb.com/find?q=%2Abatteries+not+included;s=tt
174
195
  - spec/samples/www.imdb.com/find?q=About+a+Boy;s=tt
175
196
  - spec/samples/www.imdb.com/find?q=Alexander+the+Great;s=tt
176
197
  - spec/samples/www.imdb.com/find?q=Anastasia;s=tt
177
198
  - spec/samples/www.imdb.com/find?q=Call+Me%3A+The+Rise+and+Fall+of+Heidi+Fleiss;s=tt
199
+ - spec/samples/www.imdb.com/find?q=Call+Me+The+Rise+and+Fall+of+Heidi+Fleiss;s=tt
178
200
  - spec/samples/www.imdb.com/find?q=Captain+Corelli%27s+Mandolin;s=tt
201
+ - spec/samples/www.imdb.com/find?q=Captain+Corelli+s+Mandolin;s=tt
179
202
  - spec/samples/www.imdb.com/find?q=Flyboys;s=tt
180
203
  - spec/samples/www.imdb.com/find?q=Gung+Ho%21;s=tt
204
+ - spec/samples/www.imdb.com/find?q=Gung+Ho;s=tt
181
205
  - spec/samples/www.imdb.com/find?q=Hot+Shots%21;s=tt
206
+ - spec/samples/www.imdb.com/find?q=Hot+Shots;s=tt
207
+ - spec/samples/www.imdb.com/find?q=Jet+Pilot;s=tt
182
208
  - spec/samples/www.imdb.com/find?q=Meltdown;s=tt
183
- - spec/samples/www.imdb.com/find?q=National+Treasure%3A+Book+of+Secrets;s=tt
184
- - spec/samples/www.imdb.com/find?q=National+Treasure+2;s=tt
209
+ - spec/samples/www.imdb.com/find?q=Mexico+Whitetails;s=tt
210
+ - spec/samples/www.imdb.com/find?q=National+Treasure+2%3A+Book+of+Secrets;s=tt
211
+ - spec/samples/www.imdb.com/find?q=National+Treasure+2+Book+of+Secrets;s=tt
212
+ - spec/samples/www.imdb.com/find?q=National+Treasure;s=tt
185
213
  - spec/samples/www.imdb.com/find?q=Oklahoma%21;s=tt
214
+ - spec/samples/www.imdb.com/find?q=Oklahoma;s=tt
215
+ - spec/samples/www.imdb.com/find?q=Pearl+Harbor+Payback+%2F+Appointment+in+Tokyo;s=tt
216
+ - spec/samples/www.imdb.com/find?q=Pearl+Harbor+Payback+Appointment+in+Tokyo;s=tt
217
+ - spec/samples/www.imdb.com/find?q=Pearl+Harbor;s=tt
218
+ - spec/samples/www.imdb.com/find?q=Rodeo+Racketeers%3A+John+Wayne+Young+Duke+Series;s=tt
219
+ - spec/samples/www.imdb.com/find?q=Rodeo+Racketeers+John+Wayne+Young+Duke+Series;s=tt
220
+ - spec/samples/www.imdb.com/find?q=Rooster+Cogburn+%28+and+the+Lady%29;s=tt
186
221
  - spec/samples/www.imdb.com/find?q=Rooster+Cogburn+%28...and+the+Lady%29;s=tt
222
+ - spec/samples/www.imdb.com/find?q=Rooster+Cogburn;s=tt
223
+ - spec/samples/www.imdb.com/find?q=Sabrina;s=tt
224
+ - spec/samples/www.imdb.com/find?q=The+Adventures+of+Indiana+Jones%3A+The+Complete+DVD+Movie+Collection;s=tt
225
+ - spec/samples/www.imdb.com/find?q=The+Adventures+of+Indiana+Jones+The+Complete+DVD+Movie+Collection;s=tt
226
+ - spec/samples/www.imdb.com/find?q=The+Alamo+Documentary;s=tt
187
227
  - spec/samples/www.imdb.com/find?q=The+Alamo;s=tt
188
228
  - spec/samples/www.imdb.com/find?q=The+Egg+and+I;s=tt
229
+ - spec/samples/www.imdb.com/find?q=The+Great+American+Western%3A+Volume+6;s=tt
230
+ - spec/samples/www.imdb.com/find?q=The+Great+American+Western+Volume+6;s=tt
189
231
  - spec/samples/www.imdb.com/find?q=The+Man+from+Snowy+River;s=tt
190
- - spec/samples/www.imdb.com/find?q=rooster+cogburn;s=tt
232
+ - spec/samples/www.imdb.com/find?q=The+Mummy+Collector%27s+Set;s=tt
233
+ - spec/samples/www.imdb.com/find?q=The+Mummy+Collector+s+Set;s=tt
234
+ - spec/samples/www.imdb.com/find?q=Topper+Topper+%26+Topper+Returns;s=tt
235
+ - spec/samples/www.imdb.com/find?q=batteries+not+included;s=tt
191
236
  - spec/samples/www.themoviedb.org/image/backdrops/13391/Sniper_1__Odst%c4%b9%e2%84%a2elova%c3%84%c5%a4_.jpg
192
237
  - spec/samples/www.themoviedb.org/image/backdrops/13391/Sniper_1__Odst%c4%b9%e2%84%a2elova%c3%84%c5%a4__poster.jpg
193
238
  - spec/samples/www.themoviedb.org/image/backdrops/13391/Sniper_1__Odst%c4%b9%e2%84%a2elova%c3%84%c5%a4__thumb.jpg