crowbartools / firebot-website

Source code for https://firebot.app
https://firebot.app
GNU Affero General Public License v3.0
0 stars 1 forks source link

[feat] Sort /watch Feed By Accept-Language Header #2

Closed phroggster closed 3 months ago

phroggster commented 3 months ago

It would be really cool if /watch.tsx sorted the feed according to the http Accept-Language header sent to it. No fancy sorting desired beyond that, just English-speaking streamers at the top of "my" list, followed by a mix of Spanish and French, then German, with any others below that, assuming: "en-US, en;q=0.9, fr;q=0.7, es;q=0.7, de:q=0.6, *;q=0.5".

ebiggz commented 3 months ago

Hey @phroggster,

I've just added support for some sort and filter query params to the /watch page. Here are the deets:

Sorting Param

So now, by default, the /watch page will sort based on the Accept-Language header 👍🏻

ebiggz commented 3 months ago

Closing as released. Thanks for the great suggestion!