hulkrelax / hltb-for-deck

A plugin to show you game lengths according to How Long To Beat
MIT License
48 stars 15 forks source link

feat: add suport for sorting game library by HLTB #26

Open RedHatter opened 8 months ago

RedHatter commented 8 months ago

This adds an option to the library sort context menu that sorts by how long to beat time. It accomplishes this by using the "Hours played" sort mode and ~taking control of the minutes_playtime_forever property.~ using using a proxy to intercept requests for minutes_playtime_forever.

This requires fetching HLTB data for the entire tab of games at once. I set the cache time of data requests made this way to 1 month in order to avoid excessive load on the server and poor use experience. A user can still go to an individual games page to update the cache with up to date information.

TROLLERLOLL commented 2 months ago

You, good sir, are a legend

TROLLERLOLL commented 2 months ago

Hi As far as I'm aware this is the current active repo https://github.com/SDH-Stewardship/hltb-for-deck

RedHatter commented 2 months ago

You, good sir, are a legend

Not a sir but thank you :wink:

As far as I'm aware this is the current active repo

Thanks, I've opened an updated PR in that repo