-
Notifications
You must be signed in to change notification settings - Fork 20
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
Provide Content-Type
or File Type
#102
Comments
I am also unable to access |
It's You can probably rely on file extensions in file urls though, every booru I've seen has been pretty good about using the right extensions and it's roughly what I do in my own project using booru https://github.com/AtoraSuunva/BooruBot/blob/main/src/boorubot/search/searchUtils.ts#L324 |
Ah, I hadn't realized this before, but in order to access
Is it possible for booru to provide it's best guess of what the file type would be based on the file url or data received from the APIs? I started to do this on my end, but it feels like important information that this package could provide. interface Post {
// ...
/** the content type as determined by the file url, (e.g. `"image/png"`) */
contentType: string | null;
} |
It'd be helpful for the
Post
to also provide this information to be able to differentiate between images and videos without processing/requesting media manuallyThe text was updated successfully, but these errors were encountered: