anime-downloader bug fix 5.

This commit is contained in:
2022-03-28 19:14:25 +09:00
parent c57c94b448
commit 27a08d9384

View File

@@ -172,12 +172,18 @@ class LogicOhli24(LogicModuleBase):
if code.startswith('http'):
if code.split('c/')[1] is not None:
# if code.split('c/')[1] is not None:
# code = code.split('c/')[1]
# code_type = 'c'
# elif code.split('e/')[1] is not None:
# code_type = 'e'
# code = code.split('e/')[1]
if '/c/' in code:
code = code.split('c/')[1]
code_type = 'c'
elif code.split('e/')[1] is not None:
code_type = 'e'
elif '/e/' in code:
code = code.split('e/')[1]
code_type = 'e'
logger.info(f'code:::: {code}')