maddox/tvdb_party

TypeError: can't convert String into Integer when using get_series_by_id

brendanwb10 opened this issue · 1 comments

When trying your sample code, the first few steps work just fine. Once I get to the step with west_wing = tvdb.get_series_by_id(results["seriesid"]), it get the error TypeError: can't convert String into Integer. I'm running ruby 1.9.3p0 (2011-10-30 revision 33570) [x86_64-darwin10.8.0]. I've also tried several other searches that result in the same error.

If you add .first after results in the example it works. Like this:
west_wing = tvdb.get_series_by_id(results.first["seriesid"])