[komikcast] update domain to 'komikcast.li'
This commit is contained in:
@@ -543,7 +543,7 @@ Consider all listed sites to potentially be NSFW.
|
|||||||
</tr>
|
</tr>
|
||||||
<tr>
|
<tr>
|
||||||
<td>Komikcast</td>
|
<td>Komikcast</td>
|
||||||
<td>https://komikcast02.com/</td>
|
<td>https://komikcast.li/</td>
|
||||||
<td>Chapters, Manga</td>
|
<td>Chapters, Manga</td>
|
||||||
<td></td>
|
<td></td>
|
||||||
</tr>
|
</tr>
|
||||||
|
|||||||
@@ -6,19 +6,19 @@
|
|||||||
# 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.
|
||||||
|
|
||||||
"""Extractors for https://komikcast02.com/"""
|
"""Extractors for https://komikcast.li/"""
|
||||||
|
|
||||||
from .common import ChapterExtractor, MangaExtractor
|
from .common import ChapterExtractor, MangaExtractor
|
||||||
from .. import text, util
|
from .. import text, util
|
||||||
|
|
||||||
BASE_PATTERN = (r"(?:https?://)?(?:www\.)?"
|
BASE_PATTERN = (r"(?:https?://)?(?:www\.)?"
|
||||||
r"komikcast\d*\.(?:com|la|cz|lol|site|mo?e)")
|
r"komikcast\d*\.(?:l(?:i|a|ol)|com|cz|site|mo?e)")
|
||||||
|
|
||||||
|
|
||||||
class KomikcastBase():
|
class KomikcastBase():
|
||||||
"""Base class for komikcast extractors"""
|
"""Base class for komikcast extractors"""
|
||||||
category = "komikcast"
|
category = "komikcast"
|
||||||
root = "https://komikcast02.com"
|
root = "https://komikcast.li"
|
||||||
|
|
||||||
def parse_chapter_string(self, chapter_string, data=None):
|
def parse_chapter_string(self, chapter_string, data=None):
|
||||||
"""Parse 'chapter_string' value and add its info to 'data'"""
|
"""Parse 'chapter_string' value and add its info to 'data'"""
|
||||||
@@ -45,7 +45,7 @@ class KomikcastBase():
|
|||||||
class KomikcastChapterExtractor(KomikcastBase, ChapterExtractor):
|
class KomikcastChapterExtractor(KomikcastBase, ChapterExtractor):
|
||||||
"""Extractor for komikcast manga chapters"""
|
"""Extractor for komikcast manga chapters"""
|
||||||
pattern = BASE_PATTERN + r"(/chapter/[^/?#]+/)"
|
pattern = BASE_PATTERN + r"(/chapter/[^/?#]+/)"
|
||||||
example = "https://komikcast02.com/chapter/TITLE/"
|
example = "https://komikcast.li/chapter/TITLE/"
|
||||||
|
|
||||||
def metadata(self, page):
|
def metadata(self, page):
|
||||||
info = text.extr(page, "<title>", " - Komikcast<")
|
info = text.extr(page, "<title>", " - Komikcast<")
|
||||||
@@ -64,8 +64,8 @@ class KomikcastChapterExtractor(KomikcastBase, ChapterExtractor):
|
|||||||
class KomikcastMangaExtractor(KomikcastBase, MangaExtractor):
|
class KomikcastMangaExtractor(KomikcastBase, MangaExtractor):
|
||||||
"""Extractor for komikcast manga"""
|
"""Extractor for komikcast manga"""
|
||||||
chapterclass = KomikcastChapterExtractor
|
chapterclass = KomikcastChapterExtractor
|
||||||
pattern = BASE_PATTERN + r"(/(?:komik/)?[^/?#]+)/?$"
|
pattern = BASE_PATTERN + r"(/(?:komik/)?[^/?#]+/?)$"
|
||||||
example = "https://komikcast02.com/komik/TITLE"
|
example = "https://komikcast.li/komik/TITLE"
|
||||||
|
|
||||||
def chapters(self, page):
|
def chapters(self, page):
|
||||||
results = []
|
results = []
|
||||||
|
|||||||
@@ -9,7 +9,7 @@ from gallery_dl.extractor import komikcast
|
|||||||
|
|
||||||
__tests__ = (
|
__tests__ = (
|
||||||
{
|
{
|
||||||
"#url" : "https://komikcast02.com/chapter/apotheosis-chapter-02-2-bahasa-indonesia/",
|
"#url" : "https://komikcast.li/chapter/apotheosis-chapter-02-2-bahasa-indonesia/",
|
||||||
"#class" : komikcast.KomikcastChapterExtractor,
|
"#class" : komikcast.KomikcastChapterExtractor,
|
||||||
"#pattern" : r"https://svr?\d+\.imgkc\d+\.my\.id/wp-content/img/A/Apotheosis/002-2/\d{3}\.jpg",
|
"#pattern" : r"https://svr?\d+\.imgkc\d+\.my\.id/wp-content/img/A/Apotheosis/002-2/\d{3}\.jpg",
|
||||||
"#count" : 18,
|
"#count" : 18,
|
||||||
@@ -26,6 +26,11 @@ __tests__ = (
|
|||||||
"title" : "",
|
"title" : "",
|
||||||
},
|
},
|
||||||
|
|
||||||
|
{
|
||||||
|
"#url" : "https://komikcast02.com/chapter/apotheosis-chapter-02-2-bahasa-indonesia/",
|
||||||
|
"#class" : komikcast.KomikcastChapterExtractor,
|
||||||
|
},
|
||||||
|
|
||||||
{
|
{
|
||||||
"#url" : "https://komikcast.lol/chapter/apotheosis-chapter-02-2-bahasa-indonesia/",
|
"#url" : "https://komikcast.lol/chapter/apotheosis-chapter-02-2-bahasa-indonesia/",
|
||||||
"#class" : komikcast.KomikcastChapterExtractor,
|
"#class" : komikcast.KomikcastChapterExtractor,
|
||||||
|
|||||||
Reference in New Issue
Block a user