Fix mpris bugs - follows #480 #509
No reviewers
Labels
No labels
awaiting-reply
breaking changes
bug
cannot-reproduce
dependencies
documentation
duplicate
electron-issue
enhancement
fix-available
good first issue
help wanted
invalid
javascript
need more information
need rebase
official-youtube-music-issue
plugin request
question
release
security
stale
Status: blocked
typo
wontfix
ytmd-issue
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference: YTMD/youtube-music#509
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "mpris-urgent-fix"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
I sadly couldn't test the changes on linux after the latest merge conflict solving on PR #480 since I use windows, and some stupid bugs made their way to the main branch because of that.
Thankfully @JoeJoeTV helped test mpris on linux once again, and all the little bugs have been fixed in this PR
Sorry about those!
-fix missing songControls (forgot to re-add it after moving the code from
shortcuts/back.js
toshortcuts/mpris.js
🤦🏼♂️)-fix e.target instead of e.detail in apiLoaded event (to access the api)
-fix document.querySelector('video') being called before apiLoaded
-fix 'seeked' event listener
-setup timeChange Listener if on linux+shortcuts enabled
(I also added a sneaky change to the youtube-music.css that hides the chromecast button which doesn't work because electron doesn't support[1][2] the
chrome.cast
api)Looks good, thanks for the improvements! ✅