Python Version: 2.7.13 (default, Nov 24 2017, 17:33:09) [GCC 6.3.0 20170516]
Operating System: Linux-3.4.113-bananian-armv7l-with-debian-9.3
Locale: UTF-8
Branch: master
Database: 44.9
Commit: pymedusa/Medusa@d6eb72d4e1019e5d1286ae6ac1d7e4b318229ebe
Link to Log: https://gist.github.com/9e9fb4b020874ea836ef96e02cee192b
2018-03-02 09:34:57 ERROR Thread-17 :: [d6eb72d] Exception generated: unknown group name: u'pre_sep' Traceback (most recent call last): File "/opt/medusa/medusa/server/web/core/base.py", line 283, in async_call result = function(**kwargs) File "/opt/medusa/medusa/server/web/home/post_process.py", line 49, in processEpisode ignore_subs=argToBool(ignore_subs) File "/opt/medusa/medusa/process_tv.py", line 146, in process ignore_subs=ignore_subs) File "/opt/medusa/medusa/process_tv.py", line 335, in process_files self.process_media(path, self.video_files, force, is_priority, ignore_subs) File "/opt/medusa/medusa/process_tv.py", line 536, in process_media self.result = processor.process() File "/opt/medusa/medusa/post_processor.py", line 1182, in process proper_path = ep_obj.proper_path() File "/opt/medusa/medusa/tv/episode.py", line 1735, in proper_path result = self.formatted_filename(anime_type=anime_type) File "/opt/medusa/medusa/tv/episode.py", line 1802, in formatted_filename return sanitize_filename(self._format_pattern(name_groups[-1], multi, anime_type)) File "/opt/medusa/medusa/tv/episode.py", line 1701, in _format_pattern cur_name_group_result = re.sub('(?i)(?x)' + regex_used, regex_replacement, cur_name_group) File "/usr/lib/python2.7/re.py", line 155, in sub return _compile(pattern, flags).sub(repl, string, count) File "/usr/lib/python2.7/re.py", line 286, in _subx template = _compile_repl(template, pattern) File "/usr/lib/python2.7/re.py", line 271, in _compile_repl p = sre_parse.parse_template(repl, pattern) File "/usr/lib/python2.7/sre_parse.py", line 781, in parse_template raise IndexError(msg) IndexError: unknown group name: u'pre_sep'
_STAFF NOTIFIED_: @pymedusa/support @pymedusa/moderators
Additional information:
This has been happening for about a month now and it keeps happening when trying to post-process any episode from two anime series, Dragon Ball Super and One Piece. I didn't test it with any other anime series.
Post-processing for all other (non-anime) series works just fine.
Does anybody have some more info on this as to what might be causing this error?
I'm still getting this error message, so anime post-processing is still broken to me.
What is your custom anime naming pattern?
I've set it to custom: %S.N.%0E.%SQ.N.%RT.%RG
Oh, but I just noticed the non-custom option Show.Name.003.Ep.Nameworks!
Rambling/debugging below this point.
%S.N.S%0SE%0E. produces Show.Name.003.ext. This is what I want, but I have no idea why there's S%0S for season number in there, or why there's two zeroes, or why the S and E don't show up in the result. Maybe I'm misreading the naming legend..?
So I remove the season part
%S.N.E%0E Doesn't work
@noodle-
%S.N.S%0SE%0E. produces Show.Name.003.ext. This is what I want, but I have no idea why there's S%0S for season number in there, or why there's two zeroes, or why the S and E don't show up in the result. Maybe I'm misreading the naming legend..?
I don't use the anime feature at all, but I know you have an option below to choose the episode numbering type:
I've set it to custom: %S.N.%0E.%SQ.N.%RT.%RG
%S.N.E%0E Doesn't work
I can get the error with the following configurations:
%S.N.%0E.%SQ.N.%RT.%RG%S.N.E%0ESo the bug is related to the "Only Absolute Number" option.
I'll try to find out what the issue is, but I don't know anything about that part of the code,
so no promises :wink:
Fixed in develop.
Thanks for all the information, and for fixing the issue of course! :heart: