Current problem
When the "Take Subdirectory name into account" option is checked, some directory names used in batches will interfere with the episode numbering.
[HorribleSubs] Oshiete! Galko-chan (01-12) [1080p] (Batch)/[HorribleSubs] Oshiete! Galko-chan - 08 [1080p].mkv will correctly detect the show name but not attribute an episode number.
Suggested fix
Currently the full path is used for both name search and episode search.
anime_info = self.parser_class(self.msg, filename)
show_title = anime_info.getName()
(show_ep_start, show_ep_end) = anime_info.getEpisodeNumbers(True)
My suggestion is to use the full path for name search, and switch to filename for episode search. In my case the problem is solved with this change, but it may cause new problems for other releases.
anime_info = self.parser_class(self.msg, filename)
show_title = anime_info.getName()
ep_info = self.parser_class(self.msg, os.path.basename(filename))
(show_ep_start, show_ep_end) = ep_info.getEpisodeNumbers(True)
Current problem
When the "Take Subdirectory name into account" option is checked, some directory names used in batches will interfere with the episode numbering.
[HorribleSubs] Oshiete! Galko-chan (01-12) [1080p] (Batch)/[HorribleSubs] Oshiete! Galko-chan - 08 [1080p].mkvwill correctly detect the show name but not attribute an episode number.Suggested fix
Currently the full path is used for both name search and episode search.
My suggestion is to use the full path for name search, and switch to filename for episode search. In my case the problem is solved with this change, but it may cause new problems for other releases.