Compare commits

..

3 Commits

Author SHA1 Message Date
c24f0bcde3 anime-downloader bug fix 3. 2022-03-28 14:56:29 +09:00
3400fb7dde anime-downloader bug fix 1. 2022-03-28 14:52:38 +09:00
da56638809 anime-downloader bug fix 1. 2022-03-28 14:40:38 +09:00

View File

@@ -167,7 +167,11 @@ class LogicOhli24(LogicModuleBase):
return self.current_data return self.current_data
if code.startswith('http'): if code.startswith('http'):
code = code.split('c/')[1] code = code.split('c/')[1]
# if code is None:
# code = code.split('e/')[1]
logger.info(f'code:::: {code}') logger.info(f'code:::: {code}')
url = P.ModelSetting.get('ohli24_url') + '/c/' + code url = P.ModelSetting.get('ohli24_url') + '/c/' + code
@@ -197,7 +201,9 @@ class LogicOhli24(LogicModuleBase):
'분류': '_classifi', '분류': '_classifi',
'제작국가': '_country', '제작국가': '_country',
'방영일': '_date', '방영일': '_date',
'등급': '_grade' '등급': '_grade',
'총화수': '_total_chapter',
'상영시간': '_show_time'
} }
list_body_li = tree.xpath('//ul[@class="list-body"]/li') list_body_li = tree.xpath('//ul[@class="list-body"]/li')
@@ -493,10 +499,16 @@ class Ohli24QueueEntity(FfmpegQueueEntity):
match = re.compile(r'(?P<title>.*?)\s*((?P<season>\d+)%s)?\s*((?P<epi_no>\d+)%s)' % (u'', u'')).search( match = re.compile(r'(?P<title>.*?)\s*((?P<season>\d+)%s)?\s*((?P<epi_no>\d+)%s)' % (u'', u'')).search(
self.info['title']) self.info['title'])
# epi_no 초기값
epi_no = 1
if match: if match:
self.content_title = match.group('title').strip() self.content_title = match.group('title').strip()
if 'season' in match.groupdict() and match.group('season') is not None: if 'season' in match.groupdict() and match.group('season') is not None:
self.season = int(match.group('season')) self.season = int(match.group('season'))
# epi_no = 1
epi_no = int(match.group('epi_no')) epi_no = int(match.group('epi_no'))
ret = '%s.S%sE%s.%s-OHNI24.mp4' % ( ret = '%s.S%sE%s.%s-OHNI24.mp4' % (
self.content_title, '0%s' % self.season if self.season < 10 else self.season, self.content_title, '0%s' % self.season if self.season < 10 else self.season,