Peertube: Unable to add video to a specific playlist if more than 15 playlists exist

Created on 19 Sep 2019  路  5Comments  路  Source: Chocobozzz/PeerTube

Hello!

What happened?
I have created more than 15 playlist (28 in total), but I am unable to add videos to the first playlists as only 14 are showed in the "register menu" in the video view.

Same problem with the API, which report 28 playlists but show only 15 :
Capture d鈥櫭ヽran de 2019-09-19 11-59-28

I have not found any parameters to get more than 14 playlist int the API, is this exist?

What do you expect to happen instead?
It should be possible to add video to any playlist. Perhaps by expending the list to more than 15, or adding a parameters to get all existing playlist?
Steps to reproduce:

  1. Create 16 playlist

  2. Open a video

  3. Try to register your video to the first playlist created (or the oldest modified), it does not appear in the list

Additional information

  • PeerTube version or URL: Peertube 1.4.0
  • Browser name/version: Firefox
  • NodeJS version: node 10

Does not hesitate to tell me if anything is missing or if I could give you more details

Thanks!

Playlist Type

All 5 comments

Hello!

As suggested on IRC, I have rebuilt an image after modifying this line:
https://github.com/Chocobozzz/PeerTube/blob/develop/server/initializers/constants.ts#L26

I change 15 to 30, and it indeed solves the problem by displaying 30 playlists instead of 15 :+1:
Capture d鈥櫭ヽran de 2019-09-29 16-36-21

Dunno if this is acceptable for production but does the job as workaround.

Perhaps an option (from user profile?) to change this value could be an idea? But it would be not really instinctive :-/

As an idea, on youtube, playlists list offer recent playlists (as Peertube does) and also a field to search for older playlists if they are not visible. Is it something possible?

Please feel free to ask if some more test could help :pray:

Thanks!

a field to search for older playlists if they are not visible. Is it something possible?

Yep, this is a very good idea.

While I think about it, an option in the API to allow getting all playlist could be a good addition too :thinking:

At the moment it seems to be controlled by the same constant pagination.count.default than the UI (on my instance I get 30 max when listing playlists)

I fixed the overflow in 223b24e618146f85b20b5bf365bc18d14a5964cd.

I added a search input and search option in the API for a user's playlists:

Screenshot_2019-12-26 UWwVx62

Was this page helpful?
0 / 5 - 0 ratings

Related issues

filmaidykai picture filmaidykai  路  3Comments

NoraCodes picture NoraCodes  路  3Comments

roipoussiere picture roipoussiere  路  3Comments

Angedestenebres picture Angedestenebres  路  3Comments

MikaXII picture MikaXII  路  3Comments