ghickman/tvrenamr — Issue #8: Mismatch in episode's show name field
Author: sampsyo
Created: 2011-11-16 19:50:37+00:00
State: open

The field on the `Episode` object is called `show_name`, as defined here: https://github.com/ghickman/tvrenamr/blob/master/tvrenamr/episode.py#L6

However, `main.py` tries to access the field as `episode.show`: https://github.com/ghickman/tvrenamr/blob/master/tvrenamr/main.py#L113

Furthermore, this bug causes an infinite recursion on the `Episode` object's `__getattr__` implementation because it erroneously calls `__getitem__`. Episodes are not containers, so you probably just want something like this:

if item is 'episode_2':
return '0%s' % self.episode
else:
raise AttributeError