Module mangdl.api.providers.setsuscans

Expand source code
from ast import literal_eval

from mangdl.utils.utils import sanitize_text

scanlator = "Setsu Scans"
base_url = "https://setsuscans.com"
template = "wordpress"

cs_manga = "div.tab-summary"
rch_fn = "setsu"
src = "data-src"

def manga_title(ms):
    sanitize_text(ms.select_one("#manga-title h1").text)

def ch_num_fn(soup):
    return literal_eval(soup.select_one("#chapter-heading").text.split("-")[-1][9:])

def manga_check(soup):
    return not sanitize_text(soup.select_one(".mg_genres a").text) == "Bilibili"

def title_fn(soup):
    return soup.select_one(".post-title a").text

def link_fn(soup):
    return soup.select_one(".post-title a")["href"]

Functions

def ch_num_fn(soup)
Expand source code
def ch_num_fn(soup):
    return literal_eval(soup.select_one("#chapter-heading").text.split("-")[-1][9:])
Expand source code
def link_fn(soup):
    return soup.select_one(".post-title a")["href"]
def manga_check(soup)
Expand source code
def manga_check(soup):
    return not sanitize_text(soup.select_one(".mg_genres a").text) == "Bilibili"
def manga_title(ms)
Expand source code
def manga_title(ms):
    sanitize_text(ms.select_one("#manga-title h1").text)
def title_fn(soup)
Expand source code
def title_fn(soup):
    return soup.select_one(".post-title a").text