diff --git a/docs/supportedsites.md b/docs/supportedsites.md
index 08e8cdc7..f802ed2a 100644
--- a/docs/supportedsites.md
+++ b/docs/supportedsites.md
@@ -507,7 +507,7 @@ Consider all listed sites to potentially be NSFW.
| Komikcast |
- https://komikcast.la/ |
+ https://komikcast02.com/ |
Chapters, Manga |
|
diff --git a/gallery_dl/extractor/komikcast.py b/gallery_dl/extractor/komikcast.py
index e4119fc2..903d14ea 100644
--- a/gallery_dl/extractor/komikcast.py
+++ b/gallery_dl/extractor/komikcast.py
@@ -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, "", " - 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 = []
diff --git a/test/results/komikcast.py b/test/results/komikcast.py
index 67bd6260..c6c63764 100644
--- a/test/results/komikcast.py
+++ b/test/results/komikcast.py
@@ -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,