Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix: click on video playlist won't load if autoplay is off #6588

Merged
merged 1 commit into from
Oct 4, 2024

Conversation

Relwi
Copy link
Contributor

@Relwi Relwi commented Oct 4, 2024

Fixes #6306

Copy link
Member

@Bnyro Bnyro left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks!

@Bnyro Bnyro merged commit b94ad14 into libre-tube:master Oct 4, 2024
3 checks passed
if (nextId == null && PlayingQueue.repeatMode == Player.REPEAT_MODE_ONE) {
viewModel.player.seekTo(0)
return
}

if (!PlayerHelper.isAutoPlayEnabled(playlistId != null)) return
if (!PlayerHelper.isAutoPlayEnabled(playlistId != null) && !isOnQueueClick) return
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Couldn't we instead do !PlayerHelper.isAutoPlayEnabled(playlistId != null) && nextId == null, since in theory autoplay will never call this function with any video id provided (if I remember correctly how I intended to write that code) whereas the nextId is set when tapping a video in the queue?

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

(same applies for your other PR, I probably merged that too quickly before thinking)

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

yep, it worked in that way too, I opened another PR

@alejandro-alzate
Copy link

cool.

@Relwi Relwi deleted the fix/next-video-with-autoplay-off branch October 5, 2024 07:12
@Bnyro Bnyro mentioned this pull request Nov 4, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Playlist menu is basically dead
3 participants