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 mpris bugs - follows #480 #509

Merged
merged 2 commits into from
Dec 10, 2021
Merged

Fix mpris bugs - follows #480 #509

merged 2 commits into from
Dec 10, 2021

Conversation

Araxeus
Copy link
Collaborator

@Araxeus Araxeus commented Dec 3, 2021

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 to shortcuts/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)

-fix missing songControls
-use player.seeked directly
-fix 'seeked' event listener
-fix e.target instead of e.detail in apiLoaded event
-fix document.querySelector('video') before apiLoaded
-setup timeChange Listener if linux+shortcuts enabled
@Araxeus Araxeus changed the title Fix bugs after merge conflict solving of #480 Fix mpris bugs - follows #480 Dec 3, 2021
Copy link
Owner

@th-ch th-ch left a comment

Choose a reason for hiding this comment

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

Looks good, thanks for the improvements! ✅

@th-ch th-ch merged commit 2c6c80d into th-ch:master Dec 10, 2021
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.

None yet

2 participants