-
Notifications
You must be signed in to change notification settings - Fork 573
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
Video Toggle Plugin #448
Video Toggle Plugin #448
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looks good overall, but when the video toggle is enabled ("song" mode), I get TypeError: Only absolute URLs are supported
in
youtube-music/providers/song-info.js
Line 14 in 713e005
const getImage = async (src) => { |
src
is undefined - possibly linked to the video being overridden?)
@@ -77,6 +77,10 @@ const defaultConfig = { | |||
"music_offtopic", | |||
], | |||
}, | |||
"video-toggle": { | |||
enabled: false, |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
nit: we could add a migration so that people who had the old plugin enabled have this one enabled in the new version.
How are you getting an error in song-info? This plugin doesn't even use it nor change any of its data 😵 Where is it originating from? Did that happen in every song or just a few? @th-ch I cannot reproduce this. could you please check what happened? my guess is either u tested the wrong branch, or there are some songs which anyways I don't think that problem is actually related to this PR but I'd love to know how did it happen |
Ok I think I figured this one out too. you were playing a video with low resolution of artworks and so when it calls |
99c5859
to
363903d
Compare
+forced push fix woupsie
363903d
to
0287b69
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looks good! ✅ - I cannot reproduce the src
bug anymore so it looks fixed 🎉
@th-ch Oh I forgot to add could you add that in please? :) |
Resolves #392 , Resolves #149
Adds a button that allow switching between video and "song" mode (show thumbnail instead of video)
forceHide in options makes this plugin behave like the old hide-video-player (hide the whole main panel)
Screenshots of the button in action:
![Video](https://user-images.githubusercontent.com/78568641/138605085-b8909214-9d29-4f50-9928-d66b840154e3.png)
![Song](https://user-images.githubusercontent.com/78568641/138605093-8a768946-e9c1-495d-8935-174f1f8f6301.png)