1
0
Fork 0
mirror of https://github.com/evilhero/mylar synced 2025-02-02 04:21:43 +00:00

FIX:(#1298) Fix for post-processing filenames that do not have a year or volume label present within filename

This commit is contained in:
evilhero 2016-06-09 10:39:28 -04:00
parent e9e9a932c9
commit 0f6f3792b7

View file

@ -439,7 +439,7 @@ class PostProcessor(object):
# then spit out the error message and don't post-process it.
watch_values = cs['WatchValues']
logger.info(watch_values)
if watch_values['ComicVersion'] is None:
if any([watch_values['ComicVersion'] is None, watch_values['ComicVersion'] == 'None']):
tmp_watchlist_vol = '1'
else:
tmp_watchlist_vol = re.sub("[^0-9]", "", watch_values['ComicVersion']).strip()