# SPDX-FileCopyrightText: 2019-2025 Valéry Febvre
# SPDX-License-Identifier: GPL-3.0-or-later
# Author: Valéry Febvre <vfebvre@easter-eggs.com>

from komikku.servers.multi.my_manga_reader_cms import MyMangaReaderCMS


class Frscan(MyMangaReaderCMS):
    id = 'frscan'
    name = 'FR Scan'
    lang = 'fr'
    is_nsfw = True
    status = 'disabled'

    base_url = 'https://frscan.ws'
    search_url = base_url + '/search'
    most_populars_url = base_url + '/filterList?page=1&cat=&alpha=&sortBy=views&asc=true&author=&tag=&artist='
    manga_url = base_url + '/manga/{0}'
    chapter_url = base_url + '/manga/{0}/{1}'
    image_url = None  # For some manga chapters, chapter slug can be used to compute images URLs
    cover_url = base_url + '/uploads/manga/{0}/cover/cover_250x350.jpg'
