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

Add OurFeel #659

Merged
merged 1 commit into from
Jun 29, 2024
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
21 changes: 21 additions & 0 deletions web/src/engine/websites/OurFeel.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
import { Tags } from '../Tags';
import icon from './OurFeel.webp';
import { DecoratableMangaScraper } from '../providers/MangaPlugin';
import * as CoreView from './decorators/CoreView';
import * as Common from './decorators/Common';

@Common.MangaCSS(/^{origin}\/episode\/\d+$/, CoreView.queryMangaTitleFromURI)
@Common.MangasNotSupported()
@CoreView.ChaptersSinglePageCSS()
@CoreView.PagesSinglePageJSON()
@CoreView.ImageAjax()
export default class extends DecoratableMangaScraper {

public constructor() {
super('ourfeel', `OurFeel`, 'https://ourfeel.jp', Tags.Language.Japanese, Tags.Source.Official, Tags.Media.Manga);
}

public override get Icon() {
return icon;
}
}
Binary file added web/src/engine/websites/OurFeel.webp
Binary file not shown.
26 changes: 26 additions & 0 deletions web/src/engine/websites/OurFeel_e2e.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,26 @@
import { describe } from 'vitest';
import { TestFixture, type Config } from '../../../test/WebsitesFixture';

const config: Config = {
plugin: {
id: 'ourfeel',
title: 'OurFeel'
},
container: {
url: 'https://ourfeel.jp/episode/2550689798581262969',
id: '/episode/2550689798581262969',
title: '私たちが恋する理由'
},
child: {
id: '/episode/2550689798581263037',
title: 'Reason.18'
},
entry: {
index: 0,
size: 2_618_111,
type: 'image/png'
}
};

const fixture = new TestFixture(config);
describe(fixture.Name, async () => (await fixture.Connect()).AssertWebsite());
1 change: 1 addition & 0 deletions web/src/engine/websites/_index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -528,6 +528,7 @@ export { default as Opiatoon } from './Opiatoon';
export { default as Oremanga } from './Oremanga';
export { default as OrigamiOrpheans } from './OrigamiOrpheans';
export { default as Otsugami } from './Otsugami';
export { default as OurFeel } from './OurFeel';
export { default as PairOfTwo } from './PairOfTwo';
export { default as PatyScans } from './PatyScans';
export { default as PCNet } from './PCNet';
Expand Down