[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>
<tr> <tr>
<td>Komikcast</td> <td>Komikcast</td>
<td>https://komikcast.la/</td> <td>https://komikcast02.com/</td>
<td>Chapters, Manga</td> <td>Chapters, Manga</td>
<td></td> <td></td>
</tr> </tr>

View File

@@ -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://komikcast.la/""" """Extractors for https://komikcast02.com/"""
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\.(?:la|cz|lol|site|mo?e|com)") r"komikcast\d*\.(?:com|la|cz|lol|site|mo?e)")
class KomikcastBase(): class KomikcastBase():
"""Base class for komikcast extractors""" """Base class for komikcast extractors"""
category = "komikcast" category = "komikcast"
root = "https://komikcast.la" root = "https://komikcast02.com"
@staticmethod @staticmethod
def parse_chapter_string(chapter_string, data=None): def parse_chapter_string(chapter_string, data=None):
@@ -46,7 +46,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://komikcast.la/chapter/TITLE/" example = "https://komikcast02.com/chapter/TITLE/"
def metadata(self, page): def metadata(self, page):
info = text.extr(page, "<title>", " - Komikcast<") info = text.extr(page, "<title>", " - Komikcast<")
@@ -67,7 +67,7 @@ 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://komikcast.la/komik/TITLE" example = "https://komikcast02.com/komik/TITLE"
def chapters(self, page): def chapters(self, page):
results = [] results = []

View File

@@ -9,7 +9,7 @@ from gallery_dl.extractor import komikcast
__tests__ = ( __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, "#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://komikcast.lol/chapter/apotheosis-chapter-02-2-bahasa-indonesia/",
"#class" : komikcast.KomikcastChapterExtractor,
},
{ {
"#url" : "https://komikcast.site/chapter/apotheosis-chapter-02-2-bahasa-indonesia/", "#url" : "https://komikcast.site/chapter/apotheosis-chapter-02-2-bahasa-indonesia/",
"#class" : komikcast.KomikcastChapterExtractor, "#class" : komikcast.KomikcastChapterExtractor,