Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

merge branch dev3 #7

Merged
merged 35 commits into from
Nov 24, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
35 commits
Select commit Hold shift + click to select a range
22749a0
Merge branch 'manga-download:master' into master
MikeZeDev Nov 29, 2022
000d4e1
Add NineMangaFR
MikeZeDev Nov 30, 2022
e197d06
Changes to Manhwas.net
MikeZeDev Dec 1, 2022
3e0d57b
Add NetComics
MikeZeDev Dec 1, 2022
9042110
Add NetComics icon
MikeZeDev Dec 1, 2022
72b3ac4
Merge branch 'manga-download:master' into MZD-dev3
MikeZeDev Dec 1, 2022
56429d0
Update Muctau
MikeZeDev Dec 1, 2022
b48986f
Add MangaTepesi
MikeZeDev Dec 2, 2022
db2a012
Add MangaTepesi Icon
MikeZeDev Dec 2, 2022
b0cf895
Add Nhentai.com
MikeZeDev Dec 2, 2022
2f1ca50
Nhentai.com icon
MikeZeDev Dec 2, 2022
17e14ca
Add Mangaowl.io
MikeZeDev Dec 2, 2022
4f5e69a
Add Mangaowl icon
MikeZeDev Dec 2, 2022
0ff670d
fix typo on mangaowl
MikeZeDev Dec 2, 2022
f9bec6e
Add truyenchapvn
MikeZeDev Dec 2, 2022
eb35f41
Add truyenchapvn icon
MikeZeDev Dec 2, 2022
56f3bea
Nhentai.com : dont fetch manga list
MikeZeDev Dec 3, 2022
6df2afa
deleted badly placed icon
MikeZeDev Dec 3, 2022
8d376c5
Add netcomics icon
MikeZeDev Dec 3, 2022
65ee41d
Add TaoSect
MikeZeDev Dec 3, 2022
f21072e
Add Tao Sect icon
MikeZeDev Dec 3, 2022
f84a3b2
Merge branch 'manga-download:master' into MZD-dev3
MikeZeDev Dec 4, 2022
8125285
Merge branch 'manga-download:master' into MZD-dev3
MikeZeDev Dec 8, 2022
288c0db
Merge branch 'manga-download:master' into MZD-dev3
MikeZeDev Dec 9, 2022
c4c2183
Add files via upload
MikeZeDev Dec 27, 2022
7187f57
lint
MikeZeDev Dec 31, 2022
3f5e0a0
Add files via upload
MikeZeDev Dec 31, 2022
5c8f348
Update MangaTepesi.mjs
MikeZeDev Jan 9, 2023
23e6248
Update NHentaiCom.mjs
MikeZeDev Jan 9, 2023
0a83637
Update TaoSect.mjs
MikeZeDev Jan 9, 2023
2730259
Update NHentaiCom.mjs
MikeZeDev Jan 18, 2023
b7bcdb8
Update NetComics.mjs
MikeZeDev Jan 20, 2023
07c7657
Update NetComics.mjs
MikeZeDev Jan 20, 2023
dd659ea
Update NetComics.mjs
MikeZeDev Apr 11, 2023
0155af5
Merge branch 'master' into MZD-dev3
MikeZeDev Nov 24, 2024
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Binary file added src/web/img/connectors/mangatepesi
Binary file not shown.
Binary file added src/web/img/connectors/taosect
Binary file not shown.
48 changes: 48 additions & 0 deletions src/web/mjs/connectors/MangaTepesi.mjs
Original file line number Diff line number Diff line change
@@ -0,0 +1,48 @@
import Connector from '../engine/Connector.mjs';
import Manga from '../engine/Manga.mjs';

export default class MangaTepesi extends Connector {
constructor() {
super();
super.id = 'mangatepesi';
super.label = 'MangaTepesi';
this.tags = ['manga', 'webtoon', 'turkish', 'scanlation'];
this.url = 'https://www.mangatepesi.com';
}

async _getMangaFromURI(uri) {
const request = new Request(uri, this.requestOptions);
const data = await this.fetchDOM(request, 'div.about-manga-info h2');
return new Manga(this, uri.pathname, data[0].textContent.trim());
}

async _getMangas() {
const request = new Request(new URL('/mangalistesi', this.url), this.requestOptions);
const data = await this.fetchDOM(request, 'article.manga-card > a');
return data.map(element => {
return {
id: this.getRootRelativeOrAbsoluteLink(element.href, this.url),
title: element.querySelector('div.manga-card-mName').textContent.trim()
};
});
}

async _getChapters(manga) {
const request = new Request(new URL(manga.id, this.url), this.requestOptions);
const data = await this.fetchDOM(request, 'div#manga-chapters-item-list a');
return data.map(element => {
return {
id: this.getRootRelativeOrAbsoluteLink(element.href, this.url),
title: element.querySelector('div.manga-chapters-item-title').textContent.trim()
};
});
}

async _getPages(chapter) {
const request = new Request(new URL(chapter.id, this.url), this.requestOptions);
const data = await this.fetchDOM(request, 'source.read-manga-image:not([style])');
return data.map(image => {
return this.getAbsolutePath( image.src, this.url );
});
}
}
56 changes: 56 additions & 0 deletions src/web/mjs/connectors/TaoSect.mjs
Original file line number Diff line number Diff line change
@@ -0,0 +1,56 @@
import Connector from '../engine/Connector.mjs';
import Manga from '../engine/Manga.mjs';
export default class TaoSect extends Connector {
constructor() {
super();
super.id = 'taosect';
super.label = 'Tao Sect';
this.tags = [ 'manga', 'portuguese', 'webtoon', 'scanlation' ];
this.url = 'https://taosect.com';
this.paths = ['ativos', 'finalizados', 'oneshots', 'cancelados'];
}
async _getMangaFromURI(uri) {
const request = new Request(uri, this.requestOptions);
const data = await this.fetchDOM(request, 'h1.titulo-projeto');
const id = uri.pathname;
const title = data[0].textContent.trim();
return new Manga(this, id, title);
}
async _getMangas() {
let mangaList = [];
for (let path of this.paths) {
let request = new Request(new URL('/situacao/'+path, this.url), this.requestOptions);
let [data] = await this.fetchDOM(request, 'div.post-list');
let articles = data.querySelectorAll('article.post-projeto a');
let popups = data.querySelectorAll('div.webui-popover-content.popover-projeto');
let mangas =[];
for (let j = 0; j < articles.length; j++) {
mangas.push({
id : this.getRootRelativeOrAbsoluteLink(articles[j], this.url),
title : popups[j].querySelector('h3.titulo-popover').textContent.trim()
});
}
mangaList.push(...mangas);
}
return mangaList;
}
async _getChapters(manga) {
const request = new Request(new URL(manga.id, this.url), this.requestOptions);
const data = await this.fetchDOM(request, 'div.volumes_capitulos a:not([class])');
return data.map(element => {
return {
id: this.getRootRelativeOrAbsoluteLink(element, this.url),
title: element.text.trim(),
};
}).reverse();
}
async _getPages(chapter) {
let pagelist = [];
const request = new Request(new URL(chapter.id, this.url), this.requestOptions);
const [data] = await this.fetchDOM(request, 'select#leitor_pagina_projeto');
data.querySelectorAll('option').forEach(element =>{
pagelist.push(element.value);
});
return pagelist;
}
}
1 change: 1 addition & 0 deletions src/web/mjs/connectors/TruyenChapVn.mjs
Original file line number Diff line number Diff line change
Expand Up @@ -9,4 +9,5 @@ export default class TruyenChapVn extends FlatManga {
this.tags = ['vietnamese', 'manga' ];
this.url = 'https://truyen.chap.vn';
}

}
Loading