anime-downloader bug fix 1.

This commit is contained in:
2022-03-28 14:52:38 +09:00
parent da56638809
commit 3400fb7dde

View File

@@ -498,10 +498,16 @@ class Ohli24QueueEntity(FfmpegQueueEntity):
match = re.compile(r'(?P<title>.*?)\s*((?P<season>\d+)%s)?\s*((?P<epi_no>\d+)%s)' % (u'', u'')).search(
self.info['title'])
# epi_no 초기값
epi_no = 1
if match:
self.content_title = match.group('title').strip()
if 'season' in match.groupdict() and match.group('season') is not None:
self.season = int(match.group('season'))
# epi_no = 1
epi_no = int(match.group('epi_no'))
ret = '%s.S%sE%s.%s-OHNI24.mp4' % (
self.content_title, '0%s' % self.season if self.season < 10 else self.season,