Collections: Store reliable total duration #7660
Labels
confirmed
This issue has been reviewed and confirmed
enhancement
Improving an existing function, or small fixes
Projects
Introduction
Viewing the total duration of a content on the detail page can be very useful as information, for organizing or predicting the end.
Likewise, I think it could be convenient and useful to be able to view the total duration of a collection (eg to plan a marathon).
Image from my PR
Suggested Enancement
Basically I would like the total RunTimeTicks of the collection to be saved, recursively obtained from all the children.
This way clients would be able to show them immediately in user-readable format.
I had tried to achieve this purpose client-side ( on jellyfin-web #3552 ), however it remains impossible to have a reliable total duration with all types of content ( e.g. with collection inside collection), moreover the information was deduced by the children, who were retrieved at a later time, introducing a delay.
It has been pointed out to me (by @thornbill), and I agree, that it would be much better if this information were computed and stored server-side.
In this regard, I am trying to propose an implementation on the related PR and i'm open to suggestions (on the PR please :) )
My Implementation in short
The text was updated successfully, but these errors were encountered: