openzim / youtube

Create a ZIM file from a Youtube channel/username/playlist
GNU General Public License v3.0
54 stars 30 forks source link

UI is not always really relevant when many playlists are in the ZIM #337

Closed benoit74 closed 1 month ago

benoit74 commented 2 months ago

We have two tabs in Youtube UI front page:

By default, the videos tab is selected

The videos tab show videos from the default playlist (first one of the list, first one of the channel, ...)

This means that by default when many playlists are present, we see only a subset of all videos. This is not really relevant / confusing.

See e.g. https://library.kiwix.org/viewer#s2underground_en_all . In this ZIM, at first sight, one can believe there is only 35 videos in the ZIM, because by default the "Long-Form Content" playlist has been selected.

I see multiple solutions forward:

image

While 2 is obviously way easier to implement, I believe that only something like 1 make real sense.

dan-niles commented 2 months ago

I like the first approach. This was what I originally wanted to do with the "Home" tab in my proposed Figma design. We can use this layout when there are multiple playlists in the ZIM in the "Videos" tab.

I propose we make the UI something like this: home

Each playlist in the ZIM will be displayed in a row. We can display about 12 videos in each row in a carousel and give a link to "View More" which would lead to the respective playlist page.

We might need to a add a new key to channel.json called playlists to store a list of playlists along with 12 VideoPreview objects each so that we won't have to load all the playlist videos to render this page.

WDYT?

benoit74 commented 2 months ago

@Popolechien @kelson42 do you have any views to share on this important change or shall we proceed?

Popolechien commented 2 months ago

LGTM, you are right that displaying a jumble of videos from the get-go is not ideal.

benoit74 commented 2 months ago

OK, so I consider this means we have a "go" to implement this change.

Thank you @dan-niles for the precise proposal / UI mock; shall I assign you the issue because you intend to develop this (no pressure)?

dan-niles commented 2 months ago

@benoit74 Sure, I'd like to work on this.