ekosz/Plex-Ruby — pull request #6 by rueckstiess (2012-01-24 14:39:14+00:00)
Title: comparing strings instead of ints in last_episde and last_season

Hey, I started playing around with your plex-ruby, nice work!

I found some issues when you compare episodes and season numbers for last_episode, last_season. You compare strings instead of ints. I noticed because last_episode kept returning 9 even though I had 13 episodes in my library :-)

I'm not sure if max_by is slower than inject. if you don't like max_by, then perhaps just add the ".to_i" everywhere.

Tom