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

New Page AnimesOnline #2392

Merged
merged 4 commits into from
May 21, 2024
Merged

New Page AnimesOnline #2392

merged 4 commits into from
May 21, 2024

Conversation

Martins-74
Copy link
Contributor

Added a new page animesonline

Comment on lines 38 to 43
getTitle(url) {
return j.$(j.$('.breadcrumb li')[2]).text().replace('- Dublado', '').trim();
},
getIdentifier(url) {
return j.$(j.$('.breadcrumb li')[2]).text().trim().replace('- Dublado', '');
},
Copy link
Member

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);

Comment on lines 55 to 60
getTitle(url) {
return j.$(j.$('.breadcrumb li')[2]).text().replace('- Dublado', '').trim();
},
getIdentifier(url) {
return j.$(j.$('.breadcrumb li')[2]).text().replace('- Dublado', '').trim();
},
Copy link
Member

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


export const AnimesOnline: pageInterface = {
name: 'Animes Online',
domain: 'animesonline.in',
Copy link
Member

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


if (tempSrc === undefined) {
if (currentTries >= 100) {
alert('MAL-SYNC: Cant find target src video, please refresh the page and try again!');
Copy link
Member

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',
  });

@Martins-74
Copy link
Contributor Author

Requested changes done

@lolamtisch lolamtisch merged commit c913465 into MALSync:master May 21, 2024
6 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants