Added manga-py source
This commit is contained in:
17
manga-py-stable_1.x/manga_py/providers/mngdoom_com.py
Normal file
17
manga-py-stable_1.x/manga_py/providers/mngdoom_com.py
Normal file
@@ -0,0 +1,17 @@
|
||||
from .funmanga_com import FunMangaCom
|
||||
|
||||
|
||||
class MngDoomCom(FunMangaCom):
|
||||
def get_files(self):
|
||||
content = self.http_get(self.chapter)
|
||||
items = self.re.search(r' images = (\[{[^;]+}\])', content)
|
||||
if not items:
|
||||
return []
|
||||
try:
|
||||
images = self.json.loads(items.group(1))
|
||||
return [i['url'] for i in images]
|
||||
except self.json.JSONDecodeError:
|
||||
return []
|
||||
|
||||
|
||||
main = MngDoomCom
|
||||
Reference in New Issue
Block a user