FreeTubeApp / FreeTube

An Open Source YouTube app for privacy
https://freetubeapp.io/
GNU Affero General Public License v3.0
13.63k stars 861 forks source link

Add Play All and Shuffle Button #6153

Open JL0000 opened 1 week ago

JL0000 commented 1 week ago

Add Play All and Shuffle Button

Pull Request Type

Related issue

5618

Description

Added Play all and Shuffle buttons to both user and youtube playlists. Clicking on Play all always plays the first video in the playlist. Clicking on Shuffle plays a random video in the playlist and toggles shuffle mode on.

Screenshots

Before

User Playlist playlist-no-button playlist-no-button-list Youtube Playlist yt-playlist-no-button

After

User Playlist playlist-button playlist-button-list Youtube Playlist yt-playlist-button

Testing

Play all plays the first video after video order is changed. Shuffle works as intended after a video is deleted whilst playing through the playlist. Shuffle resets the playlist after adding a new video whilst it is playing its last item in the iteration. This behaviours is inherited from the development branch.

Desktop

Additional context

JL0000 commented 6 days ago

I have fixed this error and I have hid the buttons when the playlist is empty.

PikachuEXE commented 5 days ago

I don't think the buttons should be shown in edit mode Screenshot 2024-11-17 at 08 10 16

I will fix other buttons/inputs myself later