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

Madara -> Mangastream #209

Merged
merged 1 commit into from
Sep 12, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
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
10 changes: 5 additions & 5 deletions web/src/engine/websites/AyaToon.ts
Original file line number Diff line number Diff line change
@@ -1,13 +1,13 @@
import { Tags } from '../Tags';
import icon from './AyaToon.webp';
import { DecoratableMangaScraper } from '../providers/MangaPlugin';
import * as Madara from './decorators/WordPressMadara';
import * as MangaStream from './decorators/WordPressMangaStream';
import * as Common from './decorators/Common';

@Madara.MangaCSS(/^https?:\/\/ayatoon\.com\/manga\/[^/]+\/$/, 'div.post-title h1')
@Madara.MangasMultiPageAJAX()
@Madara.ChaptersSinglePageAJAXv1()
@Madara.PagesSinglePageCSS()
@MangaStream.MangaCSS(/^https?:\/\/ayatoon\.com\/manga\/[^/]+\/$/)
@MangaStream.MangasSinglePageCSS()
@MangaStream.ChaptersSinglePageCSS()
@MangaStream.PagesSinglePageJS()
@Common.ImageAjax()
export default class extends DecoratableMangaScraper {

Expand Down
9 changes: 5 additions & 4 deletions web/src/engine/websites/AyaToon_e2e.ts
Original file line number Diff line number Diff line change
Expand Up @@ -7,16 +7,17 @@ const config = {
},
container: {
url: 'https://ayatoon.com/manga/the-peerless-sword-god/',
id: JSON.stringify({ post: '264', slug: '/manga/the-peerless-sword-god/' }),
id: '/manga/the-peerless-sword-god/',
title: 'The Peerless Sword God'
},
child: {
id: '/manga/the-peerless-sword-god/bolum-1/',
title: 'Bölüm 1'
id: '/the-peerless-sword-god-bolum-1/',
title: 'Bölüm 1',
timeout : 10000
},
entry: {
index: 0,
size: 696_347,
size: 669_130,
type: 'image/jpeg'
}
};
Expand Down
32 changes: 8 additions & 24 deletions web/src/engine/websites/ShimadaScans.ts
Original file line number Diff line number Diff line change
@@ -1,37 +1,21 @@
// Auto-Generated export from HakuNeko Legacy
//import { Tags } from '../Tags';
import { Tags } from '../Tags';
import icon from './ShimadaScans.webp';
import { DecoratableMangaScraper } from '../providers/MangaPlugin';
import * as Madara from './decorators/WordPressMadara';
import * as MangaStream from './decorators/WordPressMangaStream';
import * as Common from './decorators/Common';

@Madara.MangaCSS(/^https?:\/\/shimadascans\.com\/manga\/[^/]+\/$/)
@Madara.MangasMultiPageAJAX()
@Madara.ChaptersSinglePageAJAXv1()
@Madara.PagesSinglePageCSS()
@MangaStream.MangaCSS(/^https?:\/\/shimascans\.com\/series\/[^/]+\/$/)
@MangaStream.MangasSinglePageCSS(undefined, '/series/list-mode/')
@MangaStream.ChaptersSinglePageCSS()
@MangaStream.PagesSinglePageJS()
@Common.ImageAjax()
export default class extends DecoratableMangaScraper {

public constructor() {
super('shimadascans', 'Shimadascans', 'https://shimadascans.com'/*, Tags.Media., Tags.Language.*/);
super('shimadascans', 'Shimadascans', 'https://shimascans.com', Tags.Media.Manhua, Tags.Media.Manhwa, Tags.Language.English, Tags.Source.Scanlator);
}

public override get Icon() {
return icon;
}
}

// Original Source
/*
class ShimadaScans extends WordPressMadara {

constructor() {
super();
super.id = 'shimadascans';
super.label = 'Shimadascans';
this.tags = [ 'webtoon', 'english', 'scanlation' ];
this.url = 'https://shimadascans.com';
this.requestOptions.headers.set('x-referer', this.url);
}
}
*/
}
17 changes: 9 additions & 8 deletions web/src/engine/websites/ShimadaScans_e2e.ts
Original file line number Diff line number Diff line change
Expand Up @@ -4,21 +4,22 @@ const config = {
plugin: {
id: 'shimadascans',
title: 'Shimadascans'
}/*,
},
container: {
url: 'https://shimadascans.com/manga/.../',
id: JSON.stringify({ post: '0', slug: '/manga/.../' }),
title: 'Manga ?'
url: 'https://shimascans.com/series/a-gate-opened-on-my-first-day-as-a-politician/',
id: '/series/a-gate-opened-on-my-first-day-as-a-politician/',
title: 'A Gate Opened on my First Day as a Politician',
},
child: {
id: '/manga/.../.../',
title: 'Chapter ?'
id: '/a-gate-opened-on-my-first-day-as-a-politician-chapter-21/',
title: 'Chapter 21',
timeout: 15000
},
entry: {
index: 0,
size: -1,
size: 589_810,
type: 'image/jpeg'
}*/
}
};

const fixture = new TestFixture(config);
Expand Down
31 changes: 7 additions & 24 deletions web/src/engine/websites/TecnoScan.ts
Original file line number Diff line number Diff line change
@@ -1,36 +1,19 @@
// Auto-Generated export from HakuNeko Legacy
//import { Tags } from '../Tags';
import { Tags } from '../Tags';
import icon from './TecnoScan.webp';
import { DecoratableMangaScraper } from '../providers/MangaPlugin';
import * as Madara from './decorators/WordPressMadara';
import * as MangaStream from './decorators/WordPressMangaStream';
import * as Common from './decorators/Common';

@Madara.MangaCSS(/^https?:\/\/tecnoscann\.com\/manga\/[^/]+\/$/)
@Madara.MangasMultiPageAJAX()
@Madara.ChaptersSinglePageAJAXv1()
@Madara.PagesSinglePageCSS()
@MangaStream.MangaCSS(/^https?:\/\/tecnoscann\.com\/manga\/[^/]+\/$/)
@MangaStream.MangasSinglePageCSS()
@MangaStream.ChaptersSinglePageCSS()
@MangaStream.PagesSinglePageJS()
@Common.ImageAjax()
export default class extends DecoratableMangaScraper {

public constructor() {
super('tecnoscan', 'Tecno Scan', 'https://tecnoscann.com'/*, Tags.Media., Tags.Language.*/);
super('tecnoscan', 'Tecno Scan', 'https://tecnoscann.com', Tags.Media.Manhua, Tags.Media.Manhwa, Tags.Language.Spanish);
}

public override get Icon() {
return icon;
}
}

// Original Source
/*
class TecnoScan extends WordPressMadara {

constructor() {
super();
super.id = 'tecnoscan';
super.label = 'Tecno Scan';
this.tags = [ 'webtoon', 'spanish' ];
this.url = 'https://tecnoscann.com';
}
}
*/
21 changes: 11 additions & 10 deletions web/src/engine/websites/TecnoScan_e2e.ts
Original file line number Diff line number Diff line change
@@ -1,24 +1,25 @@
import { TestFixture } from '../../../test/WebsitesFixture';
import { TestFixture } from '../../../test/WebsitesFixture';

const config = {
plugin: {
id: 'tecnoscan',
title: 'Tecno Scan'
}/*,
},
container: {
url: 'https://tecnoscann.com/manga/.../',
id: JSON.stringify({ post: '0', slug: '/manga/.../' }),
title: 'Manga ?'
url: 'https://tecnoscann.com/manga/su-bao-tiene-tres-anos-y-medio-y-esta-siendo-mimada-por-sus-ocho-tios/',
id: '/manga/su-bao-tiene-tres-anos-y-medio-y-esta-siendo-mimada-por-sus-ocho-tios/',
title: 'Su Bao tiene tres años y medio, y está siendo mimada por sus ocho tíos'
},
child: {
id: '/manga/.../.../',
title: 'Chapter ?'
id: '/su-bao-tiene-tres-anos-y-medio-y-esta-siendo-mimada-por-sus-ocho-tios-capitulo-2/',
title: 'Capítulo 2',
timeout : 25000
},
entry: {
index: 0,
size: -1,
index: 2,
size: 763_436,
type: 'image/jpeg'
}*/
}
};

const fixture = new TestFixture(config);
Expand Down
32 changes: 8 additions & 24 deletions web/src/engine/websites/UzayManga.ts
Original file line number Diff line number Diff line change
@@ -1,37 +1,21 @@
// Auto-Generated export from HakuNeko Legacy
//import { Tags } from '../Tags';
import { Tags } from '../Tags';
import icon from './UzayManga.webp';
import { DecoratableMangaScraper } from '../providers/MangaPlugin';
import * as Madara from './decorators/WordPressMadara';
import * as MangaStream from './decorators/WordPressMangaStream';
import * as Common from './decorators/Common';

@Madara.MangaCSS(/^https?:\/\/uzaymanga\.com\/manga\/[^/]+\/$/)
@Madara.MangasMultiPageAJAX()
@Madara.ChaptersSinglePageAJAXv1()
@Madara.PagesSinglePageCSS()
@MangaStream.MangaCSS(/^https?:\/\/uzaymanga\.com\/manga\/[^/]+\/$/)
@MangaStream.MangasSinglePageCSS()
@MangaStream.ChaptersSinglePageCSS()
@MangaStream.PagesSinglePageJS()
@Common.ImageAjax()
export default class extends DecoratableMangaScraper {

public constructor() {
super('uzaymanga', 'Uzay Manga', 'https://uzaymanga.com'/*, Tags.Media., Tags.Language.*/);
super('uzaymanga', 'Uzay Manga', 'https://uzaymanga.com', Tags.Media.Manhua, Tags.Media.Manhwa, Tags.Language.Turkish, Tags.Source.Scanlator);
}

public override get Icon() {
return icon;
}
}

// Original Source
/*
class UzayManga extends WordPressMadara {

constructor() {
super();
super.id = 'uzaymanga';
super.label = 'Uzay Manga';
this.tags = [ 'webtoon', 'turkish', 'scanlation' ];
this.url = 'https://uzaymanga.com';
this.requestOptions.headers.set('x-referer', this.url);
}
}
*/
}
20 changes: 10 additions & 10 deletions web/src/engine/websites/UzayManga_e2e.ts
Original file line number Diff line number Diff line change
@@ -1,24 +1,24 @@
import { TestFixture } from '../../../test/WebsitesFixture';
import { TestFixture } from '../../../test/WebsitesFixture';

const config = {
plugin: {
id: 'uzaymanga',
title: 'Uzay Manga'
}/*,
},
container: {
url: 'https://uzaymanga.com/manga/.../',
id: JSON.stringify({ post: '0', slug: '/manga/.../' }),
title: 'Manga ?'
url: 'https://uzaymanga.com/manga/acimasiz-egitmen/',
id: '/manga/acimasiz-egitmen/',
title: 'Acımasız Eğitmen'
},
child: {
id: '/manga/.../.../',
title: 'Chapter ?'
id: '/okula-basla-1/',
title: 'Bölüm 1'
},
entry: {
index: 0,
size: -1,
index: 1,
size: 1_105_733,
type: 'image/jpeg'
}*/
}
};

const fixture = new TestFixture(config);
Expand Down
Loading