plugin loadByIdOrUUID
doesn't load enough data for a video listing
#6759
Labels
Component: PeerTube Plugin 📦
Features that can be developed in a plugin, but require PeerTube plugin API development
Type: Feature Request ✨
Describe the problem to be solved
First thanks for providing this awesome software!
Context: I just wrote a plugin permitting to have a random listing of the videos.
I registered my handler on this hook:
filter:api.videos.list.result
.I had to recreate the listing myself, getting rid of the provided one, because shuffling a paginated list is not a good random: each section of 25 videos will be shuffled, but they'll stay in the same global order.
So here's my attempt:
Problem is that the client app requires
channel
andauthor
attributes on those objects.So for now I hard-coded the values, which is very hacky:
Describe the solution you would like
Either having a new
loadByIdOrUUIDWithChannelAndAuthor
or adding this data to the existing function would permit this!What do you think?
The text was updated successfully, but these errors were encountered: