-
Notifications
You must be signed in to change notification settings - Fork 887
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 external player not opening on Subscriptions page #3172
Fix external player not opening on Subscriptions page #3172
Conversation
If playlistId is set to undefined it will break /src/renderer/store/modules/utils.js:openInExternalPlayer() as it expects null or string. Undefined makes it believe it is a playlist and ignores the videoId
@ArturWagnerBusiness |
IMO I think instead of changing one value supplier (there might be more) I personally usually use |
I can do the change in the openInExternalPlayer() and do some testing if that is something you would prefer. I don't know if I should create a different PR or just revert+extend this one. |
I would say use Unless other devs have some use of |
Head branch was pushed to by a user without write access
Reverted my first commit and changed the needed expressions in openInExternalPlayer() Tested opening external player for single video:
Tested opening external player for playlists
|
Fixing external player not opening on Subscriptions page
Pull Request Type
Related issue
none
Description
There is no edge case for undefined in the function that opens external players in
/src/renderer/store/modules/utils.js:openInExternalPlayer()
so I found where the undefined came from and changed it into a null.This is because if playlistId is set to undefined it will break as it expects null or string. Undefined makes it believe it is a playlist and ignores the videoId
This was not an issue in the recent version of FreeTube (0.18.0).
Screenshots
Testing
After changes I tested:
Opening a video on subscriptions page. (worked)
Opening a video on watch page. (worked)
Openng a playlist on search page. (worked)
Desktop
Additional context
none