mirror of
https://github.com/nikdoof/tvorganise.git
synced 2025-12-11 13:52:16 +00:00
Fixed regex parser to identify shows without epnames
This commit is contained in:
@@ -82,7 +82,13 @@ class TvOrganiser():
|
||||
for regex in self._config['regex']:
|
||||
match = regex.match(filename)
|
||||
if match:
|
||||
showname, seasno, epno, epname = match.groups()
|
||||
self._logger.debug(match.groups())
|
||||
|
||||
if len(match.groups()) == 4:
|
||||
showname, seasno, epno, epname = match.groups()
|
||||
else:
|
||||
showname, seasno, epno = match.groups()
|
||||
epname = ""
|
||||
|
||||
#remove ._- characters from name
|
||||
showname = re.sub("[\._]|\-(?=$)", " ", showname).strip()
|
||||
|
||||
Reference in New Issue
Block a user