WIP: feat(synced-lyrics): lyrics offset #3240
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
2 participants
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference: YTMD/youtube-music#3240
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "scratchusernamemrtbts/master"
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?
Resolves #3237
please give me feedback on the labels and tooltips cus i am not a native english speaker
also right now positive offset means that lyrics show slower than the audio (used with bluetooth speakers which i think is the best usecase for this feature rn)
and negative might be used when the lyrics it pulled timestamp is offset slower than the actual song
might want to swap that but lmk which is best
Copilot reviewed 4 out of 5 changed files in this pull request and generated no comments.
Files not reviewed (1)
Comments suppressed due to low confidence (1)
src/plugins/synced-lyrics/menu.ts:17
Hello @scratchusernamemrtbts , would you be interested in inviting me to your fork so I can enhance this further?
I would like to add a way of changing the offset directly from the lyrics panel, instead of having to go to the menu settings.
I could of course do that on a follow-up PR, this ain't a dealbreaker
i'm so sorry for just seeing this now
i've just invited you to my fork now
@scratchusernamemrtbts
I am quite satisfied with an implementation like this, because it allows for more complex options in the lyrics picker, w/o bloating the UI.
https://github.com/user-attachments/assets/b5fbeaf6-cc54-48eb-815e-675c93a420fc
what do you think?
(ofc the CSS has to be improved)
not sure if the three dots provide a clear indication that it's for lyrics offset
(maybe a timer symbol)
The three dots are not for the offset, but for "advanced options"
Final design I can come up with
some minor changes should be made so it feels less rough, but other than that I am satisfied with it
PS: There is a weird bug when the lyricsOffset is updated using the original menu.
apparently the counter prompt type doesn't handle negative numbers correctly so I've also changed the prompt type to a normal input instead
Not sure if this is the bug your talking about but i made the ui update when changing the config through the menu prompt
@ -13,0 +35,4 @@
ctx.window,
);
if (!newOffset) return
ctx.setConfig({
also if anyone's got a better solution than this please lmk
I will be rebasing on master later this
dayweekmonth, since I am the most familiar with the changes.Edit: 😭
Some slight CSS changes still need to be done after the rebase.
@scratchusernamemrtbts can you convert this into a draft for now?
View command line instructions
Checkout
From your project repository, check out a new branch and test the changes.Merge
Merge the changes and update on Forgejo.Warning: The "Autodetect manual merge" setting is not enabled for this repository, you will have to mark this pull request as manually merged afterwards.