-
-
Notifications
You must be signed in to change notification settings - Fork 1.3k
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
Add Lyric support #4733
Add Lyric support #4733
Conversation
This comment was marked as outdated.
This comment was marked as outdated.
This comment was marked as outdated.
This comment was marked as outdated.
This comment was marked as outdated.
This comment was marked as outdated.
This comment was marked as outdated.
This comment was marked as outdated.
This comment was marked as outdated.
This comment was marked as outdated.
This comment was marked as outdated.
This comment was marked as outdated.
Hey there! Just wondering what other work might need to be done before this PR can be taken out of draft and reviewed. The implementation itself looks great. Might this be blocked on something that needs additional help shepherding through? |
Oh no, Sorry. I didn't mean to leave it in draft. I think its good to go and be reviewed. |
I believe this will require changes to be compatible with jellyfin/jellyfin#9951 |
This pull request has merge conflicts. Please resolve the conflicts so the PR can be successfully reviewed and merged. |
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.
I reviewed without testing.
You also need to rebase or merge master back into this branch to fix the conflicts. We are still interested in getting this in for 10.9.0 if we can get it reviewed and any issues resolved this week. |
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.
Another pass.
-
Shouldn't we close the lyrics page after music stops?
-
This is not good in TV display mode as there is no scrolling. In fact, we don't handle text blocks in TV display mode well.
-
In Mobile display mode, the
Lyrics
button is small. This may be improved in the future. Maybe after a redesign or so.
UPD:
4. There is a new section called More From This Album
. It doesn't seem to be related to the lyrics feature. Maybe it should be moved to the new PR?
Which would require accessing view lyrics from the context menu and than clicking the mic button
|
|
I hope this was it f1d955a Or else I might need a bit of guidance |
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.
ESLint doesn't pass. Please fix all ESLint issues.
This workaround seems to work: diff --git a/src/controllers/playback/queue/index.js b/src/controllers/playback/queue/index.js
index d95081b91..60c541bea 100644
--- a/src/controllers/playback/queue/index.js
+++ b/src/controllers/playback/queue/index.js
@@ -1,4 +1,5 @@
import RemoteControl from '../../../components/remotecontrol/remotecontrol';
+import { appRouter, history } from 'components/router/appRouter';
import { playbackManager } from '../../../components/playback/playbackmanager';
import libraryMenu from '../../../scripts/libraryMenu';
import '../../../elements/emby-button/emby-button';
@@ -35,8 +36,19 @@ export default function (view) {
}
view.addEventListener('viewshow', function () {
+ const player = playbackManager.getCurrentPlayer();
+
+ if (!player) {
+ if (history.length > 1) {
+ appRouter.back();
+ } else {
+ appRouter.goHome();
+ }
+ return;
+ }
+
libraryMenu.setTransparentMenu(true);
- bindToPlayer(playbackManager.getCurrentPlayer());
+ bindToPlayer(player);
document.addEventListener('keydown', onKeyDown);
if (remoteControl) { I hope it doesn't break anything. |
If you manually enter
They don't seem to do anything, but I don't know if its still in use or not. Looking at all the uses of |
When I tested, it redirected back if there was something open, or went to the home page when entered in a blank tab.
I haven't tested remote control. This page should be accessible from the UPD: You can try it like this:
UPD2: |
I've reverted |
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.
Oops, I forgot to submit review.
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.
I think these are the last ones. 🤞
This PR requires squashing before merging.
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.
LGTM.
Who will squash the commits?
I can squash, assuming this is alright |
I don't think this will collect all the changes because merge commits (instead of rebase) were used. There may be an easier way, but I am used to do it this way (being on the PR branch):
|
29ed215
to
c42b96d
Compare
Awesome! Thanks so much for all your help |
Quality Gate passedIssues Measures |
Cloudflare Pages deployment
|
Changes
Adds route for lyrics. Will show current lyric highlighted if saved file allows it
Add item detail page for individual songs that show the lyrics
Previews
#/Lyrics
#/details?id={songsitemId}