[go: nahoru, domu]

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 Application Context to Showcase Title from Supported Link #161

Open
nattadasu opened this issue Jun 10, 2023 · 0 comments
Open

Add Application Context to Showcase Title from Supported Link #161

nattadasu opened this issue Jun 10, 2023 · 0 comments
Assignees
Labels
enhancement New feature or request help wanted Extra attention is needed proposal Suggestion for changes, new features, or improvements to a project

Comments

@nattadasu
Copy link
Owner

Description

Currently, Ryuuzaki Ryuusei allows users to showcase information about Anime, Manga, TV shows and movies manually. However, there is a missing feature related to the context menu when someone shares a supported site URL (such as MyAnimeList, AniList, Kitsu, Shikimori, Trakt, Anime-Planet, etc.). This feature request aims to address this issue by adding application context to showcase the title from the supported link.

Proposed Feature

The proposed feature involves enhancing the message context menu (right-clicking) functionality when a user shares a supported site URL. When the user invokes the command, Ryuuzaki Ryuusei bot will utilize regular expressions (Regex) to extract the ID from the URL (e.g., MAL ID: 1 for https://myanimelist.net/anime/1). Subsequently, the bot will submit the extracted ID to the appropriate location where the context is invoked (e.g., /anime, /manga, /shows, /movies).

Expected Benefits

By implementing this feature, users will be able to seamlessly retrieve and showcase the title of the anime, manga, TV show, or movie when sharing a supported site URL via the message context menu. This enhancement will streamline the user experience and provide convenient access to relevant information without the need for manual input.

Implementation Details

The implementation of this feature requires the following steps:

  1. Enhance the message context menu to capture supported site URLs.
  2. Utilize regular expressions (Regex) to extract the ID from the shared URL.
  3. Implement logic to determine the type of content (anime, manga, TV show, or movie) based on the supported site URL.
  4. Submit the extracted ID and content type to the appropriate location where the context is invoked (e.g., /anime, /manga, /shows, /movies).
  5. Retrieve the title information corresponding to the ID and display it in the showcase or relevant output.

It is essential to handle errors gracefully and provide appropriate feedback to users if the URL or ID extraction fails. Additionally, the implementation should be modular and adaptable to support additional supported sites in the future, ensuring the bot remains versatile and up-to-date.

@nattadasu nattadasu added enhancement New feature or request help wanted Extra attention is needed proposal Suggestion for changes, new features, or improvements to a project labels Jun 10, 2023
@nattadasu nattadasu self-assigned this Jun 10, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request help wanted Extra attention is needed proposal Suggestion for changes, new features, or improvements to a project
Projects
None yet
Development

No branches or pull requests

1 participant