1
0
Fork 0
mirror of https://github.com/evilhero/mylar synced 2025-02-22 05:50:34 +00:00

FIX:(#2181) Fix for incorrect sub-path when manually post-processing issues

This commit is contained in:
evilhero 2019-01-31 13:40:15 -05:00
parent 5016fe1b02
commit 2220d04755
2 changed files with 5 additions and 6 deletions

View file

@ -630,7 +630,7 @@ class PostProcessor(object):
if just_the_digits is not None:
temploc= just_the_digits.replace('_', ' ')
temploc = re.sub('[\#\']', '', temploc)
logger.fdebug('temploc: %s' % temploc)
#logger.fdebug('temploc: %s' % temploc)
else:
temploc = None
datematch = "False"
@ -993,7 +993,7 @@ class PostProcessor(object):
if just_the_digits is not None:
temploc= just_the_digits.replace('_', ' ')
temploc = re.sub('[\#\']', '', temploc)
logger.fdebug('temploc: %s' % temploc)
#logger.fdebug('temploc: %s' % temploc)
else:
temploc = None

View file

@ -237,10 +237,9 @@ class FileChecker(object):
tmppath = re.sub(path, '', subpath).strip()
path_list = os.path.normpath(tmppath)
#if '/' == path_list[0] or '\\' == path_list[0]:
# #need to remove any leading slashes so the os join can properly join the components
# path_list = path_list[1:]
#path_list = tmppath.split(os.sep)[-1]
if '/' == path_list[0] or '\\' == path_list[0]:
#need to remove any leading slashes so the os join can properly join the components
path_list = path_list[1:]
logger.fdebug('[SUB-PATH] subpath set to : ' + path_list)