plex-rewind icon indicating copy to clipboard operation
plex-rewind copied to clipboard

Make movie top 5 based on number of plays, fall back to play time

Open cplieger opened this issue 1 year ago • 2 comments

Description

image

In this example Oppenheimer was player 6 times vs The creator and Napoleon 8 times this year. Because Oppenheimer is a longer movie is it n1 but it should not be.

image

In this example poor things is the only movie that was played twice but it is 3rd in playtime.

Desired behavior

For movies only, order by default based on number of plays, if a tie you can fall back to play time.

Bonus suggestion: add a piece of text somewhere on the page with a quick description "top movies based on watch time" to make it clear to users what the ranking is based on.

Additional context

No response

cplieger avatar Jul 26 '24 23:07 cplieger

The reason I opted for going with time instead of plays, is that a play doesn't neccessarily mean a full play. I'm open to adding a toggle for sorting style in the settings, but it would be global, not by library.

RaunoT avatar Jul 27 '24 05:07 RaunoT

Fair enough. Would it be possible to add least add a descriptive label to the pages that shows what the top 5 is based upon so users don’t have to guess?

cplieger avatar Jul 27 '24 10:07 cplieger

A sort by filter is now available. However, when the play counts are even, it does not fall back to duration. That's not the way the Tautulli API returns the data and since Plex Rewind is fully dynamic, it's not feasible to make expensive calculations and additional fetches on our end to achieve this behaviour on every render.

For now, the sort by filter now works in the same way as the same filter in Tautulli.

image

RaunoT avatar Aug 25 '24 13:08 RaunoT

:tada: This issue has been resolved in version 4.1.0-develop.4 :tada:

The release is available on GitHub release

Your semantic-release bot :package::rocket:

github-actions[bot] avatar Aug 25 '24 13:08 github-actions[bot]

:tada: This issue has been resolved in version 4.1.0 :tada:

The release is available on GitHub release

Your semantic-release bot :package::rocket:

RaunoT avatar Aug 26 '24 11:08 RaunoT