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

Inconsistency in GIF extension cases causes issues in Discord #27

Open
JewinV opened this issue Jun 15, 2023 · 0 comments
Open

Inconsistency in GIF extension cases causes issues in Discord #27

JewinV opened this issue Jun 15, 2023 · 0 comments

Comments

@JewinV
Copy link

JewinV commented Jun 15, 2023

Describe the bug
When using the neko.py API to retrieve GIFs, some of the returned links have their file extensions in uppercase (.GIF). Discord, however, treats these links as static images instead of animated GIFs.

Expected behavior
All GIF links should have their file extensions in lowercase (.gif) to ensure consistent handling across all platforms, including Discord.

Steps to Reproduce

  1. Use the neko.py API to request GIFs.
  2. Receive a link with the GIF extension in uppercase (.GIF).
  3. Post this link in a Discord chat.
  4. Notice that Discord displays the image as a static image, not an animated GIF.

Possible Solution
Ensure all GIF links returned by the neko.py API have their file extensions in lowercase (.gif). This could involve modifying the process which provides these links to change the case of the file extension to lowercase before returning it.

Additional context
The behavior is inconsistent. Not all GIF links have their extensions in uppercase, but for the ones that do, they are not properly rendered as animated GIFs in Discord.

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

No branches or pull requests

1 participant