Skip to content

Commit

Permalink
Friday Maintenance (#971)
Browse files Browse the repository at this point in the history
  • Loading branch information
MikeZeDev authored Jan 10, 2025
1 parent 010be96 commit 0b75521
Show file tree
Hide file tree
Showing 26 changed files with 56 additions and 106 deletions.
10 changes: 8 additions & 2 deletions web/src/engine/websites/ComicVn.ts
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@ import { Tags } from '../Tags';
import icon from './ComicVn.webp';
import { DecoratableMangaScraper } from '../providers/MangaPlugin';
import * as Common from './decorators/Common';
import { FetchWindowScript } from '../platform/FetchProvider';

const chapterScript = `
new Promise ( resolve => {
Expand All @@ -17,18 +18,23 @@ const chapterScript = `
});
`;

@Common.MangaCSS(/^{origin}\/[^/]+\.html$/, 'div.detailComic div.preface div.detail h1')
@Common.MangaCSS(/^https:\/\/comicvn\d+\.net\/[^/]+\.html$/, 'div.detailComic div.preface div.detail h1')
@Common.MangasMultiPageCSS('/danh-muc/truyen-moi?page={page}', 'div.listComic ul li div.detail h3 a')
@Common.ChaptersSinglePageJS(chapterScript, 1500)
@Common.PagesSinglePageCSS('div.readComic div#lightgallery2 img')
@Common.ImageAjax()
export default class extends DecoratableMangaScraper {

public constructor() {
super('comicvn', 'ComicVn', 'https://comicvn7.net', Tags.Media.Manga, Tags.Media.Manhwa, Tags.Media.Manhua, Tags.Language.Vietnamese, Tags.Source.Aggregator, Tags.Accessibility.DomainRotation);
super('comicvn', 'ComicVn', 'https://comicvn8.net', Tags.Media.Manga, Tags.Media.Manhwa, Tags.Media.Manhua, Tags.Language.Vietnamese, Tags.Source.Aggregator, Tags.Accessibility.DomainRotation);
}

public override get Icon() {
return icon;
}

public override async Initialize(): Promise<void> {
this.URI.href = await FetchWindowScript(new Request(this.URI), `window.location.origin`, 1500);
console.log(`Assigned URL '${this.URI}' to ${this.Title}`);
}
}
10 changes: 4 additions & 6 deletions web/src/engine/websites/ComicVn_e2e.ts
Original file line number Diff line number Diff line change
@@ -1,12 +1,12 @@
import { TestFixture } from '../../../test/WebsitesFixture';

const config = {
new TestFixture({
plugin: {
id: 'comicvn',
title: 'ComicVn'
},
container: {
url: 'https://comicvn7.net/hoa-vo-co-su-671202ad7cbc225b837930e1.html',
url: 'https://comicvn8.net/hoa-vo-co-su-671202ad7cbc225b837930e1.html',
id: '/hoa-vo-co-su-671202ad7cbc225b837930e1.html',
title: 'Hỏa Võ Cố Sự'
},
Expand All @@ -16,9 +16,7 @@ const config = {
},
entry: {
index: 1,
size: 728_133,
size: 836_999,
type: 'image/jpeg'
}
};

new TestFixture(config).AssertWebsite();
}).AssertWebsite();
2 changes: 1 addition & 1 deletion web/src/engine/websites/CypherScans.ts
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ import { FetchWindowScript } from '../platform/FetchProvider';
export default class extends DecoratableMangaScraper {

public constructor() {
super('cypherscans', 'CypherScans', 'https://cypher-comic.xyz', Tags.Media.Manhwa, Tags.Media.Manhua, Tags.Media.Manga, Tags.Language.English, Tags.Source.Scanlator, Tags.Accessibility.DomainRotation);
super('cypherscans', 'CypherScans', 'https://cypheroscans.xyz', Tags.Media.Manhwa, Tags.Media.Manhua, Tags.Media.Manga, Tags.Language.English, Tags.Source.Scanlator, Tags.Accessibility.DomainRotation);
}

public override get Icon() {
Expand Down
2 changes: 1 addition & 1 deletion web/src/engine/websites/CypherScans_e2e.ts
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ new TestFixture({
title: 'CypherScans'
},
container: {
url: 'https://cypher-comic.xyz/manga/solo-max-level-newbie/',
url: 'https://cypheroscans.xyz/manga/solo-max-level-newbie/',
id: '/manga/solo-max-level-newbie/',
title: 'Solo Max-Level Newbie'
},
Expand Down
Binary file modified web/src/engine/websites/DomalFansub.webp
Binary file not shown.
8 changes: 3 additions & 5 deletions web/src/engine/websites/DomalFansub_e2e.ts
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import { TestFixture, type Config } from '../../../test/WebsitesFixture';
import { TestFixture } from '../../../test/WebsitesFixture';

const config: Config = {
new TestFixture({
plugin: {
id: 'domalfansub',
title: 'Domal Fansub'
Expand All @@ -19,6 +19,4 @@ const config: Config = {
size: 959_821,
type: 'image/jpeg'
}
};

new TestFixture(config).AssertWebsite();
}).AssertWebsite();
2 changes: 1 addition & 1 deletion web/src/engine/websites/ErosScans.ts
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ import { FetchWindowScript } from '../platform/FetchProvider';
export default class extends DecoratableMangaScraper {

public constructor() {
super('erosscans', 'Eros Scans', 'https://eros-fable.xyz', Tags.Media.Manhwa, Tags.Media.Manhua, Tags.Language.English, Tags.Source.Scanlator, Tags.Accessibility.DomainRotation);
super('erosscans', 'Eros Scans', 'https://eros-v-scans.xyz', Tags.Media.Manhwa, Tags.Media.Manhua, Tags.Language.English, Tags.Source.Scanlator, Tags.Accessibility.DomainRotation);
}

public override get Icon() {
Expand Down
2 changes: 1 addition & 1 deletion web/src/engine/websites/ErosScans_e2e.ts
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ new TestFixture({
title: 'Eros Scans'
},
container: {
url: 'https://eros-fable.xyz/manga/absolute-sword-sense/',
url: 'https://eros-v-scans.xyz/manga/absolute-sword-sense/',
id: '/manga/absolute-sword-sense/',
title: 'Absolute Sword Sense'
},
Expand Down
2 changes: 1 addition & 1 deletion web/src/engine/websites/JiangzaiToon.ts
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ import * as Common from './decorators/Common';
export default class extends DecoratableMangaScraper {

public constructor() {
super('jiangzaiToon', 'JiangzaiToon', 'https://jiangzaitoon.gay', Tags.Media.Manhwa, Tags.Language.Turkish, Tags.Source.Aggregator);
super('jiangzaiToon', 'JiangzaiToon', 'https://jiangzaitoon.one', Tags.Media.Manhwa, Tags.Language.Turkish, Tags.Source.Aggregator);
}

public override get Icon() {
Expand Down
8 changes: 3 additions & 5 deletions web/src/engine/websites/JiangzaiToon_e2e.ts
Original file line number Diff line number Diff line change
@@ -1,12 +1,12 @@
import { TestFixture } from '../../../test/WebsitesFixture';

const config = {
new TestFixture({
plugin: {
id: 'jiangzaiToon',
title: 'JiangzaiToon'
},
container: {
url: 'https://jiangzaitoon.gay/manga/19-gun/',
url: 'https://jiangzaitoon.one/manga/19-gun/',
id: JSON.stringify({ post: '6872', slug: '/manga/19-gun/' }),
title: '19 Days'
},
Expand All @@ -19,6 +19,4 @@ const config = {
size: 2_803_320,
type: 'image/jpeg'
}
};

new TestFixture(config).AssertWebsite();
}).AssertWebsite();
21 changes: 0 additions & 21 deletions web/src/engine/websites/LerYaoi.ts

This file was deleted.

Binary file removed web/src/engine/websites/LerYaoi.webp
Binary file not shown.
24 changes: 0 additions & 24 deletions web/src/engine/websites/LerYaoi_e2e.ts

This file was deleted.

2 changes: 1 addition & 1 deletion web/src/engine/websites/Manatoki.ts
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ export const pageScript = `
export default class extends DecoratableMangaScraper {
protected urlPrefix = 'https://manatoki';

public constructor(id = 'manatoki', label = 'Manatoki', url = 'https://manatoki466.net', tags = [Tags.Media.Manhwa, Tags.Language.Korean, Tags.Source.Aggregator, Tags.Accessibility.DomainRotation]) {
public constructor(id = 'manatoki', label = 'Manatoki', url = 'https://manatoki467.net', tags = [Tags.Media.Manhwa, Tags.Language.Korean, Tags.Source.Aggregator, Tags.Accessibility.DomainRotation]) {
super(id, label, url, ...tags);
}

Expand Down
16 changes: 8 additions & 8 deletions web/src/engine/websites/Manatoki_e2e.ts
Original file line number Diff line number Diff line change
@@ -1,13 +1,13 @@
import { TestFixture } from '../../../test/WebsitesFixture';
/* NW.js crash on website initialize => CloudFlare
import { TestFixture } from '../../../test/WebsitesFixture';
new TestFixture({
plugin: {
id: 'manatoki',
title: 'Manatoki'
},
/* CloudFlare
container: {
url: 'https://manatoki466.net/comic/122227',
url: 'https://manatoki467.net/comic/122227',
id: '/comic/122227',
title: '원피스(ONE PIECE)'
},
Expand All @@ -19,17 +19,16 @@ new TestFixture({
index: 0,
size: 351_586,
type: 'image/jpeg'
}*/
}
}).AssertWebsite();
new TestFixture({
plugin: {
id: 'manatoki',
title: 'Manatoki'
},
/* CloudFlare
container: {
url: 'https://manatoki466.net/webtoon/1095458/템빨',
url: 'https://manatoki467.net/webtoon/1095458/템빨',
id: encodeURI('/webtoon/1095458/템빨'),
title: '템빨'
},
Expand All @@ -41,5 +40,6 @@ new TestFixture({
index: 0,
size: 121_760,
type: 'image/jpeg'
}*/
}).AssertWebsite();
}
}).AssertWebsite();
*/
2 changes: 1 addition & 1 deletion web/src/engine/websites/MangaTRNet.ts
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ import * as Common from './decorators/Common';
export default class extends DecoratableMangaScraper {

public constructor() {
super('mangatrnet', 'MangaTR (.Net)', 'https://mangatr.me', Tags.Media.Manhwa, Tags.Media.Manhua, Tags.Language.Turkish, Tags.Source.Aggregator, Tags.Accessibility.RegionLocked);
super('mangatrnet', 'MangaTR (.Net)', 'https://mangatr.io', Tags.Media.Manhwa, Tags.Media.Manhua, Tags.Language.Turkish, Tags.Source.Aggregator, Tags.Accessibility.RegionLocked);
}

public override get Icon() {
Expand Down
22 changes: 10 additions & 12 deletions web/src/engine/websites/MangaTRNet_e2e.ts
Original file line number Diff line number Diff line change
@@ -1,24 +1,22 @@
import { TestFixture, type Config } from '../../../test/WebsitesFixture';
import { TestFixture } from '../../../test/WebsitesFixture';

const config: Config = {
new TestFixture({
plugin: {
id: 'mangatrnet',
title: 'MangaTR (.Net)'
},
container: {
url: 'https://mangatr.me/manga/king-of-apocalypse/',
id: JSON.stringify({ post: '1121', slug: '/manga/king-of-apocalypse/'}),
title: 'King of Apocalypse'
url: 'https://mangatr.io/manga/king-of-the-mound/',
id: JSON.stringify({ slug: '/manga/king-of-the-mound/'}),
title: 'King Of The Mound'
},
child: {
id: '/manga/king-of-apocalypse/bolum-323/',
title: 'Bölüm: 323'
id: '/manga/king-of-the-mound/bolum-59/',
title: 'Bölüm 59'
},
entry: {
index: 2,
size: 345_058,
index: 0,
size: 354_298,
type: 'image/webp'
}
};

new TestFixture(config).AssertWebsite();
}).AssertWebsite();
4 changes: 2 additions & 2 deletions web/src/engine/websites/NetTruyenViet.ts
Original file line number Diff line number Diff line change
Expand Up @@ -5,10 +5,10 @@ import * as MojoPortalComic from './templates/MojoPortalComic';
import * as Common from './decorators/Common';
import { FetchWindowScript } from '../platform/FetchProvider';

const primaryDomain = 'nettruyenviet.com';
const primaryDomain = 'nettruyenvie.com';
const patternAliasDomains = [
primaryDomain,
'nettruyenww.com',
'nettruyenrr.com',
].join('|').replaceAll('.', '\\.');

@Common.MangaCSS(new RegExp(`^https?://(${patternAliasDomains})/truyen-tranh/[^/]+$`), MojoPortalComic.queryManga)
Expand Down
4 changes: 2 additions & 2 deletions web/src/engine/websites/NetTruyenViet_e2e.ts
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,6 @@ function config(_url: string): Config {
};
}
new TestFixture(config('https://nettruyenviet.com/truyen-tranh/ta-co-90-ty-tien-liem-cau')).AssertWebsite();
new TestFixture(config('https://nettruyenww.com/truyen-tranh/ta-co-90-ty-tien-liem-cau-16581')).AssertWebsite();
new TestFixture(config('https://nettruyenvie.com/truyen-tranh/ta-co-90-ty-tien-liem-cau')).AssertWebsite();
new TestFixture(config('https://nettruyenrr.com/truyen-tranh/ta-co-90-ty-tien-liem-cau-16581')).AssertWebsite();
*/
4 changes: 2 additions & 2 deletions web/src/engine/websites/OlympusScanlation.ts
Original file line number Diff line number Diff line change
Expand Up @@ -46,9 +46,9 @@ const mangaClipboardScript = `
@Common.ImageAjax()
export default class extends DecoratableMangaScraper {

private readonly apiUrl = 'https://dashboard.olympuscomic.com';
private readonly apiUrl = 'https://dashboard.olympuslectura.com';
public constructor() {
super('olympusscanlation', 'Olympus Scanlation', 'https://olympuscomic.com', Tags.Media.Manhua, Tags.Media.Manhwa, Tags.Language.Spanish, Tags.Source.Scanlator);
super('olympusscanlation', 'Olympus Scanlation', 'https://olympuslectura.com', Tags.Media.Manhua, Tags.Media.Manhwa, Tags.Language.Spanish, Tags.Source.Scanlator);
}

public override get Icon() {
Expand Down
8 changes: 3 additions & 5 deletions web/src/engine/websites/OlympusScanlation_e2e.ts
Original file line number Diff line number Diff line change
@@ -1,12 +1,12 @@
import { TestFixture } from '../../../test/WebsitesFixture';

const config = {
new TestFixture({
plugin: {
id: 'olympusscanlation',
title: 'Olympus Scanlation'
},
container: {
url: 'https://olympuscomic.com/series/comic-el-mago-devorador-de-talentos13424',
url: 'https://olympuslectura.com/series/comic-el-mago-devorador-de-talentos13424',
id: JSON.stringify({ slug: 'el-mago-devorador-de-talentos13424', type: 'comic' }),
title: 'El Mago Devorador de Talentos'
},
Expand All @@ -19,6 +19,4 @@ const config = {
size: 509_644,
type: 'image/webp'
}
};

new TestFixture(config).AssertWebsite();
}).AssertWebsite();
2 changes: 1 addition & 1 deletion web/src/engine/websites/TecnoScan.ts
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ import { FetchWindowScript } from '../platform/FetchProvider';
export default class extends DecoratableMangaScraper {

public constructor() {
super('tecnoscan', 'Tecno Scan', 'https://tecnoxcomic.xyz', Tags.Media.Manhwa, Tags.Media.Manhua, Tags.Language.English, Tags.Source.Scanlator, Tags.Accessibility.DomainRotation);
super('tecnoscan', 'Tecno Scan', 'https://terco-olyes.xyz', Tags.Media.Manhwa, Tags.Media.Manhua, Tags.Language.English, Tags.Source.Scanlator, Tags.Accessibility.DomainRotation);
}

public override get Icon() {
Expand Down
2 changes: 1 addition & 1 deletion web/src/engine/websites/TecnoScan_e2e.ts
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ new TestFixture({
title: 'Tecno Scan'
},
container: {
url: 'https://tecnoxcomic.xyz/manga/absolute-sword-sense/',
url: 'https://terco-olyes.xyz/manga/absolute-sword-sense/',
id: '/manga/absolute-sword-sense/',
title: 'Absolute Sword Sense'
},
Expand Down
2 changes: 1 addition & 1 deletion web/src/engine/websites/Toonkor.ts
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ const pageScript = `
export default class extends DecoratableMangaScraper {

public constructor() {
super('toonkor', `Toonkor`, 'https://toonkor469.com', Tags.Media.Manhwa, Tags.Language.Korean, Tags.Source.Aggregator, Tags.Accessibility.DomainRotation);
super('toonkor', `Toonkor`, 'https://toonkor471.com', Tags.Media.Manhwa, Tags.Language.Korean, Tags.Source.Aggregator, Tags.Accessibility.DomainRotation);
}

public override get Icon() {
Expand Down
Loading

0 comments on commit 0b75521

Please sign in to comment.