-
-
Notifications
You must be signed in to change notification settings - Fork 87
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
URL encoding doesn't play nicely with emotes #161
Comments
What does the |
Yeah, you'd have to use URL encoding like this: Thar file is saved as 'puniko_>.<.png' on the disk but it is translated correctly to and from URL encoding. The same doesn't work on MovieNight |
I'm not definitely sure, but I have a strong thought that using special characters to interact with the filesystem will result in issue and missmatch. |
If you sanitize it should be fine.
If the json file is present then it is used instead of the filenames. That way you could still use those characters for emotes but map them to filenames that wouldn't cause issues. In theory you could even map to remote address like if you wanted to serve your emotes from an S3 bucket or image hosting site or something (assuming CORS permitted) and even mix and match. e.g.:
|
I like the json file idea. That would also allow aliasing without having to play around with symlinks or some nonsense on the OS level. |
Yep I thought of that too but I forgot to say that. Could have the emotes.json file be used to load the packs (or files if you want just a big pack) or you could just look in each subdirectory of the emotes directory for the json files. With the packs approach you could have fields in the file like:
Another use case for packs is if you run multiple instances you could just load packs from remote address that way for your 10 or even 50+ MovieNight instances you could simply manage your emotes in a single place and all off your MovieNight instances will just pull the latest data wherever they spin up. |
…of the packed emotes suggested in #161
It doesn't seem to like
<
and>
. In the filename.e.g. >.<.png
I suspect that has to do with url encoding and the server not properly interpreting a request for https://host.tld/emotes/%3e.%3c.png as a request for >.<.png
The text was updated successfully, but these errors were encountered: