ctrlcctrlv / infinity

A vichan fork permitting users to create their own boards
Other
317 stars 151 forks source link

API: File objects need thumbnail file extension exposed #561

Open N3X15 opened 6 years ago

N3X15 commented 6 years ago

Thumbnails occasionally have differing file extensions than the originating file. While it appears 8ch currently uses thumbnails with the same extension and type as the originating file (and .jpg when webm/mp4/etc), it appears config was changed in the distant past, and there are posts on many slower boards where the thumbnail extension is forced to JPG.

Therefore, it'd be nice if thumb_ext for each file was exposed. Right now, my bot is making up to two HTTP requests trying to bruteforce the file extension when the usual rules fail, and this is an undesirable, hacky solution.

--- Want to back this issue? **[Post a bounty on it!](https://www.bountysource.com/issues/52831020-api-file-objects-need-thumbnail-file-extension-exposed?utm_campaign=plugin&utm_content=tracker%2F6417251&utm_medium=issues&utm_source=github)** We accept bounties via [Bountysource](https://www.bountysource.com/?utm_campaign=plugin&utm_content=tracker%2F6417251&utm_medium=issues&utm_source=github).