-
-
Notifications
You must be signed in to change notification settings - Fork 229
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
New Page AnimesOnline #2392
New Page AnimesOnline #2392
Conversation
src/pages/AnimesOnline/main.ts
Outdated
getTitle(url) { | ||
return j.$(j.$('.breadcrumb li')[2]).text().replace('- Dublado', '').trim(); | ||
}, | ||
getIdentifier(url) { | ||
return j.$(j.$('.breadcrumb li')[2]).text().trim().replace('- Dublado', ''); | ||
}, |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
duplicated code. One could just call return AnimesOnline.sync.getTitle(url);
src/pages/AnimesOnline/main.ts
Outdated
getTitle(url) { | ||
return j.$(j.$('.breadcrumb li')[2]).text().replace('- Dublado', '').trim(); | ||
}, | ||
getIdentifier(url) { | ||
return j.$(j.$('.breadcrumb li')[2]).text().replace('- Dublado', '').trim(); | ||
}, |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
More duplicated code. You can just call the functions of the sync section
src/pages/AnimesOnline/main.ts
Outdated
|
||
export const AnimesOnline: pageInterface = { | ||
name: 'Animes Online', | ||
domain: 'animesonline.in', |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Please use https://animesonline.in
src/pages/AnimesOnline/main.ts
Outdated
|
||
if (tempSrc === undefined) { | ||
if (currentTries >= 100) { | ||
alert('MAL-SYNC: Cant find target src video, please refresh the page and try again!'); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Alerts are a bit hard. Please use
utils.flashm(`MAL-SYNC: Cant find target src video, please refresh the page and try again!`, {
error: true,
type: 'error',
});
Requested changes done |
Added a new page animesonline