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

fix(AsuraScans): remake the presence to match asura website #8762

Open
wants to merge 3 commits into
base: main
Choose a base branch
from

Conversation

rois2coeurs
Copy link

Description

  • Added the new URL.
  • Fixed regex for URL to accommodate Asura Scans' new paths.
  • Added fetching for comic covers.
  • Fixed the progress calculation issue.
  • Fixed the issue with retrieving the comic title.
  • Fixed the issue with retrieving the current chapter.
  • Added settings to the presence:
    • Privacy Mode: Only displays that the user is on Asura Scans.
    • Display Current Chapter.
    • Display Reading Percentage.
    • Show Cover.
    • Show Buttons.

Acknowledgements

Screenshots

Proof showing the creation/modification is working as expected

image
image
image
image

@rois2coeurs rois2coeurs marked this pull request as draft September 26, 2024 17:42
@rois2coeurs rois2coeurs marked this pull request as ready for review September 26, 2024 17:42
Comment on lines 24 to 28
displayPercentage = await presence.getSetting<boolean>("readingPercentage"),
privacyMode = await presence.getSetting<boolean>("privacy"),
displayChapter = await presence.getSetting<boolean>("chapterNumber"),
displayCover = await presence.getSetting<boolean>("showCover"),
displayButtons = await presence.getSetting<boolean>("showButtons");
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

For better efficiency, combine this using Promise.all and destructuring.

Copy link
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Will just the Promise.all do the destructing ?

websites/A/Asura Scans/metadata.json Outdated Show resolved Hide resolved
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Development

Successfully merging this pull request may close these issues.

2 participants