1
0
mirror of https://github.com/mikf/gallery-dl.git synced 2024-11-22 02:32:33 +01:00

[komikcast] update domain to 'komikcast.cz'

This commit is contained in:
Mike Fährmann 2024-10-10 16:52:40 +02:00
parent bcd920e24d
commit 6807bf9c11
No known key found for this signature in database
GPG Key ID: 5680CA389D365A88
2 changed files with 8 additions and 8 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.lol/</td> <td>https://komikcast.cz/</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.lol/""" """Extractors for https://komikcast.cz/"""
from .common import ChapterExtractor, MangaExtractor from .common import ChapterExtractor, MangaExtractor
from .. import text from .. import text
import re import re
BASE_PATTERN = r"(?:https?://)?(?:www\.)?komikcast\.(?:lol|site|me|com)" BASE_PATTERN = r"(?:https?://)?(?:www\.)?komikcast\.(?:cz|lol|site|mo?e|com)"
class KomikcastBase(): class KomikcastBase():
"""Base class for komikcast extractors""" """Base class for komikcast extractors"""
category = "komikcast" category = "komikcast"
root = "https://komikcast.lol" root = "https://komikcast.cz"
@staticmethod @staticmethod
def parse_chapter_string(chapter_string, data=None): def parse_chapter_string(chapter_string, data=None):
@ -46,9 +46,9 @@ class KomikcastBase():
class KomikcastChapterExtractor(KomikcastBase, ChapterExtractor): class KomikcastChapterExtractor(KomikcastBase, ChapterExtractor):
"""Extractor for manga-chapters from komikcast.lol""" """Extractor for komikcast manga chapters"""
pattern = BASE_PATTERN + r"(/chapter/[^/?#]+/)" pattern = BASE_PATTERN + r"(/chapter/[^/?#]+/)"
example = "https://komikcast.lol/chapter/TITLE/" example = "https://komikcast.cz/chapter/TITLE/"
def metadata(self, page): def metadata(self, page):
info = text.extr(page, "<title>", " - Komikcast<") info = text.extr(page, "<title>", " - Komikcast<")
@ -65,10 +65,10 @@ class KomikcastChapterExtractor(KomikcastBase, ChapterExtractor):
class KomikcastMangaExtractor(KomikcastBase, MangaExtractor): class KomikcastMangaExtractor(KomikcastBase, MangaExtractor):
"""Extractor for manga from komikcast.lol""" """Extractor for komikcast manga"""
chapterclass = KomikcastChapterExtractor chapterclass = KomikcastChapterExtractor
pattern = BASE_PATTERN + r"(/(?:komik/)?[^/?#]+)/?$" pattern = BASE_PATTERN + r"(/(?:komik/)?[^/?#]+)/?$"
example = "https://komikcast.lol/komik/TITLE" example = "https://komikcast.cz/komik/TITLE"
def chapters(self, page): def chapters(self, page):
results = [] results = []