|
|
@ -1,19 +1,18 @@
|
|
|
|
# -*- coding: utf-8 -*-
|
|
|
|
# -*- coding: utf-8 -*-
|
|
|
|
|
|
|
|
|
|
|
|
# Copyright 2015-2019 Mike Fährmann
|
|
|
|
# Copyright 2015-2021 Mike Fährmann
|
|
|
|
#
|
|
|
|
#
|
|
|
|
# This program is free software; you can redistribute it and/or modify
|
|
|
|
# This program is free software; you can redistribute it and/or modify
|
|
|
|
# it under the terms of the GNU General Public License version 2 as
|
|
|
|
# it under the terms of the GNU General Public License version 2 as
|
|
|
|
# published by the Free Software Foundation.
|
|
|
|
# published by the Free Software Foundation.
|
|
|
|
|
|
|
|
|
|
|
|
"""Extract manga-chapters from https://dynasty-scans.com/"""
|
|
|
|
"""Extractors for https://dynasty-scans.com/"""
|
|
|
|
|
|
|
|
|
|
|
|
from .common import ChapterExtractor, Extractor, Message
|
|
|
|
from .common import ChapterExtractor, Extractor, Message
|
|
|
|
from .. import text
|
|
|
|
from .. import text
|
|
|
|
import json
|
|
|
|
import json
|
|
|
|
import re
|
|
|
|
import re
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
BASE_PATTERN = r"(?:https?://)?(?:www\.)?dynasty-scans\.com"
|
|
|
|
BASE_PATTERN = r"(?:https?://)?(?:www\.)?dynasty-scans\.com"
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
@ -36,7 +35,7 @@ class DynastyscansBase():
|
|
|
|
return {
|
|
|
|
return {
|
|
|
|
"url" : self.root + url,
|
|
|
|
"url" : self.root + url,
|
|
|
|
"image_id": text.parse_int(image_id),
|
|
|
|
"image_id": text.parse_int(image_id),
|
|
|
|
"tags" : text.split_html(text.unescape(tags)),
|
|
|
|
"tags" : text.split_html(tags),
|
|
|
|
"date" : text.remove_html(date),
|
|
|
|
"date" : text.remove_html(date),
|
|
|
|
"source" : text.unescape(src),
|
|
|
|
"source" : text.unescape(src),
|
|
|
|
}
|
|
|
|
}
|
|
|
|