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 playlists for external players with no index support #3797

Merged
merged 2 commits into from
Jul 28, 2023

Conversation

trostboot
Copy link
Contributor

Fix playlists for external players with playlist but no index support

Pull Request Type

  • Bugfix
  • Feature Implementation
  • Documentation
  • Other

Related issue

Description

The current logic doesn't consider external players that have support for playlists but not playlist indexes enabled, leading to entire playlists being sent to the external player when a single video is opened from within a playlist.

This adds an additional check to only send the video URL for these players when a playlist with an index is specified, for all other players or if no index is specified the playlist URL will be sent.

Screenshots

Testing

Desktop

  • OS: Windows
  • OS Version: 11
  • FreeTube version: v0.18.0-nightly-3148

Additional context

@FreeTubeBot FreeTubeBot enabled auto-merge (squash) July 21, 2023 12:15
@github-actions github-actions bot added the PR: waiting for review For PRs that are complete, tested, and ready for review label Jul 21, 2023
auto-merge was automatically disabled July 21, 2023 13:00

Head branch was pushed to by a user without write access

@FreeTubeBot FreeTubeBot enabled auto-merge (squash) July 21, 2023 13:00
Copy link
Collaborator

@PikachuEXE PikachuEXE left a comment

Choose a reason for hiding this comment

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

Code seems fine but I haven't tested it

@FreeTubeBot FreeTubeBot merged commit 47f69fc into FreeTubeApp:development Jul 28, 2023
6 checks passed
@github-actions github-actions bot removed the PR: waiting for review For PRs that are complete, tested, and ready for review label Jul 28, 2023
@trostboot trostboot deleted the ext-playlist-fix branch July 28, 2023 08:37
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.

5 participants