Skip to content

Commit

Permalink
WebToonHatti : change domain
Browse files Browse the repository at this point in the history
  • Loading branch information
MikeZeDev committed Nov 28, 2024
1 parent b250ca8 commit 8f39d3b
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 11 deletions.
4 changes: 2 additions & 2 deletions web/src/engine/websites/WebtoonHatti.ts
Original file line number Diff line number Diff line change
Expand Up @@ -9,14 +9,14 @@ const allowedImageOrigins = [
'https://cdn-2.webtoonhatti.com',
];

@Madara.MangaCSS(/^{origin}\/manga\/[^/]+\/$/)
@Madara.MangaCSS(/^{origin}\/webtoon\/[^/]+\/$/, 'ol.breadcrumb li:last-of-type a')
@Madara.MangasMultiPageAJAX()
@Madara.ChaptersSinglePageAJAXv2()
@Common.ImageAjax()
export default class extends DecoratableMangaScraper {

public constructor() {
super('webtoonhatti', 'Webtoon Hatti', 'https://webtoonhatti.net', Tags.Media.Manga, Tags.Media.Manhua, Tags.Media.Manhwa, Tags.Language.Turkish, Tags.Source.Aggregator, Tags.Accessibility.RegionLocked);
super('webtoonhatti', 'Webtoon Hatti', 'https://webtoonhatti.com', Tags.Media.Manga, Tags.Media.Manhua, Tags.Media.Manhwa, Tags.Language.Turkish, Tags.Source.Aggregator, Tags.Accessibility.RegionLocked);
}

public override get Icon() {
Expand Down
18 changes: 9 additions & 9 deletions web/src/engine/websites/WebtoonHatti_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: 'webtoonhatti',
title: 'Webtoon Hatti'
}/*, Pictures are region locked : need Turkish IP
},
container: {
url: 'https://webtoonhatti.com/manga/.../',
id: JSON.stringify({ post: '0', slug: '/manga/.../' }),
title: 'Manga ?'
url: 'https://webtoonhatti.com/webtoon/bokutachi-wa-benkyou-ga-dekinai/',
id: JSON.stringify({ post: '15001', slug: '/webtoon/bokutachi-wa-benkyou-ga-dekinai/' }),
title: 'Bokutachi wa Benkyou ga Dekinai'
},
child: {
id: '/manga/.../.../',
title: 'Chapter ?'
id: '/webtoon/bokutachi-wa-benkyou-ga-dekinai/bolum-109/',
title: 'Bölüm 109'
},
entry: {
index: 0,
size: -1,
size: 556_719,
type: 'image/jpeg'
}*/
}
};

new TestFixture(config).AssertWebsite();

0 comments on commit 8f39d3b

Please sign in to comment.