Fix for renaming non-anime shows and absolute numberings being applied by mistake.

This commit is contained in:
echel0n 2014-07-19 12:50:08 -07:00
parent 14fd0daa6c
commit 39d9fc6434

View file

@ -2303,7 +2303,11 @@ class TVEpisode(object):
Figures out the path where this episode SHOULD live according to the renaming rules, relative from the show dir
"""
result = self.formatted_filename()
anime_type = sickbeard.NAMING_ANIME
if not self.show.is_anime:
anime_type = 3
result = self.formatted_filename(anime_type=anime_type)
# if they want us to flatten it and we're allowed to flatten it then we will
if self.show.flatten_folders and not sickbeard.NAMING_FORCE_FOLDERS: