From 27a08d938425e302522ea98240b96548a2a10563 Mon Sep 17 00:00:00 2001 From: projectdx Date: Mon, 28 Mar 2022 19:14:25 +0900 Subject: [PATCH] anime-downloader bug fix 5. --- logic_ohli24.py | 12 +++++++++--- 1 file changed, 9 insertions(+), 3 deletions(-) diff --git a/logic_ohli24.py b/logic_ohli24.py index b2c2856..4d83fa2 100644 --- a/logic_ohli24.py +++ b/logic_ohli24.py @@ -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}')