[komikcast] update domain to 'komikcast02.com'

This commit is contained in:
Mike Fährmann
2025-06-06 12:33:55 +02:00
parent 15f5e567ec
commit 9c4cef822e
3 changed files with 12 additions and 7 deletions

View File

@@ -507,7 +507,7 @@ Consider all listed sites to potentially be NSFW.
</tr>
<tr>
<td>Komikcast</td>
<td>https://komikcast.la/</td>
<td>https://komikcast02.com/</td>
<td>Chapters, Manga</td>
<td></td>
</tr>

View File

@@ -6,19 +6,19 @@
# it under the terms of the GNU General Public License version 2 as
# published by the Free Software Foundation.
"""Extractors for https://komikcast.la/"""
"""Extractors for https://komikcast02.com/"""
from .common import ChapterExtractor, MangaExtractor
from .. import text, util
BASE_PATTERN = (r"(?:https?://)?(?:www\.)?"
r"komikcast\.(?:la|cz|lol|site|mo?e|com)")
r"komikcast\d*\.(?:com|la|cz|lol|site|mo?e)")
class KomikcastBase():
"""Base class for komikcast extractors"""
category = "komikcast"
root = "https://komikcast.la"
root = "https://komikcast02.com"
@staticmethod
def parse_chapter_string(chapter_string, data=None):
@@ -46,7 +46,7 @@ class KomikcastBase():
class KomikcastChapterExtractor(KomikcastBase, ChapterExtractor):
"""Extractor for komikcast manga chapters"""
pattern = BASE_PATTERN + r"(/chapter/[^/?#]+/)"
example = "https://komikcast.la/chapter/TITLE/"
example = "https://komikcast02.com/chapter/TITLE/"
def metadata(self, page):
info = text.extr(page, "<title>", " - Komikcast<")
@@ -67,7 +67,7 @@ class KomikcastMangaExtractor(KomikcastBase, MangaExtractor):
"""Extractor for komikcast manga"""
chapterclass = KomikcastChapterExtractor
pattern = BASE_PATTERN + r"(/(?:komik/)?[^/?#]+)/?$"
example = "https://komikcast.la/komik/TITLE"
example = "https://komikcast02.com/komik/TITLE"
def chapters(self, page):
results = []

View File

@@ -9,7 +9,7 @@ from gallery_dl.extractor import komikcast
__tests__ = (
{
"#url" : "https://komikcast.lol/chapter/apotheosis-chapter-02-2-bahasa-indonesia/",
"#url" : "https://komikcast02.com/chapter/apotheosis-chapter-02-2-bahasa-indonesia/",
"#class" : komikcast.KomikcastChapterExtractor,
"#pattern" : r"https://svr?\d+\.imgkc\d+\.my\.id/wp-content/img/A/Apotheosis/002-2/\d{3}\.jpg",
"#count" : 18,
@@ -26,6 +26,11 @@ __tests__ = (
"title" : "",
},
{
"#url" : "https://komikcast.lol/chapter/apotheosis-chapter-02-2-bahasa-indonesia/",
"#class" : komikcast.KomikcastChapterExtractor,
},
{
"#url" : "https://komikcast.site/chapter/apotheosis-chapter-02-2-bahasa-indonesia/",
"#class" : komikcast.KomikcastChapterExtractor,