Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

move_files_destination crash when missing season number. #127

Open
f4hy opened this issue Apr 24, 2016 · 0 comments
Open

move_files_destination crash when missing season number. #127

f4hy opened this issue Apr 24, 2016 · 0 comments

Comments

@f4hy
Copy link

f4hy commented Apr 24, 2016

If including a season number in the file destination path such as from my config:

"move_files_destination": "/mnt/bigmedia/tv/%(seriesname)s/season%(seasonnumber)d/",

if running on a series which does not have a seasons number this fails with the message:

Traceback (most recent call last): File "/usr/bin/tvnamer", line 9, in <module> load_entry_point('tvnamer==2.3', 'console_scripts', 'tvnamer')() File "/usr/lib/python2.7/site-packages/tvnamer/main.py", line 418, in main tvnamer(paths = sorted(args)) File "/usr/lib/python2.7/site-packages/tvnamer/main.py", line 325, in tvnamer processFile(tvdb_instance, episode) File "/usr/lib/python2.7/site-packages/tvnamer/main.py", line 244, in processFile newPath = getMoveDestination(episode) File "/usr/lib/python2.7/site-packages/tvnamer/main.py", line 75, in getMoveDestination 'originalfilename': episode.originalfilename, KeyError: u'seasonnumber'

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant