Is your feature request related to a problem? Please describe.
The HistoryMediaContainer does not include a TotalSize property in the same way that the MediaContainer does. This means that when calling IPlexServerClient.GetPlayHistory() it is not possible to know when all the play history has been returned.
Describe the solution you'd like
I'd like to see a TotalSize property added to the HistoryMediaContainer.
Describe alternatives you've considered
You can just keep calling the IPlexServerClient.GetPlayHistory() method with incremented start parameter until the container's HistoryMetadata is returned as null (or size is zero) signifying that even though we don't know the total size, we must have exceeded it. Whilst this works, it is not ideal and an additional HTTP GET is required and wasted. Since the Plex API does return a correctly populated totalSize in its response it would be useful to pass this back.
Is your feature request related to a problem? Please describe.
The
HistoryMediaContainer
does not include aTotalSize
property in the same way that theMediaContainer
does. This means that when callingIPlexServerClient.GetPlayHistory()
it is not possible to know when all the play history has been returned.Describe the solution you'd like
I'd like to see a
TotalSize
property added to theHistoryMediaContainer
.Describe alternatives you've considered
You can just keep calling the
IPlexServerClient.GetPlayHistory()
method with incrementedstart
parameter until the container'sHistoryMetadata
is returned asnull
(orsize
is zero) signifying that even though we don't know the total size, we must have exceeded it. Whilst this works, it is not ideal and an additional HTTP GET is required and wasted. Since the Plex API does return a correctly populatedtotalSize
in its response it would be useful to pass this back.