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

Add Now Playing to Title Bar #6312

Closed

Conversation

Dan-613
Copy link

@Dan-613 Dan-613 commented Nov 10, 2024

Changes

Add currently playing media to Title Bar

Issues
Resolves #6301

@Dan-613 Dan-613 requested a review from a team as a code owner November 10, 2024 21:04
@jellyfin-bot
Copy link
Collaborator

jellyfin-bot commented Nov 10, 2024

Cloudflare Pages deployment

Latest commit be7df57
Status ✅ Deployed!
Preview URL https://129ba3d7.jellyfin-web.pages.dev
Type 🔀 Preview

View build logs

Copy link

sonarcloud bot commented Nov 10, 2024

Copy link
Contributor

@github-actions github-actions bot left a 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.

@@ -527,7 +527,7 @@

function updateNowPlayingInfo(state) {
const nowPlayingItem = state.NowPlayingItem;

var documentTitle = "Jellyfin";
Copy link
Contributor

Choose a reason for hiding this comment

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

Unexpected var, use let or const instead. no-var

Fix available:

Suggested change
var documentTitle = "Jellyfin";
let documentTitle = "Jellyfin";

@@ -527,7 +527,7 @@

function updateNowPlayingInfo(state) {
const nowPlayingItem = state.NowPlayingItem;

var documentTitle = "Jellyfin";
Copy link
Contributor

Choose a reason for hiding this comment

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

Strings must use singlequote. @stylistic/quotes

Fix available:

Suggested change
var documentTitle = "Jellyfin";
var documentTitle = 'Jellyfin';

secondaryText.appendChild(text);
}
}

if (textLines[0].text) {
const text = document.createElement('a');
text.innerText = textLines[0].text;
if(documentTitle != "Jellyfin"){
Copy link
Contributor

Choose a reason for hiding this comment

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

Expected space(s) after "if". @stylistic/keyword-spacing

Fix available:

Suggested change
if(documentTitle != "Jellyfin"){
if (documentTitle != "Jellyfin"){

secondaryText.appendChild(text);
}
}

if (textLines[0].text) {
const text = document.createElement('a');
text.innerText = textLines[0].text;
if(documentTitle != "Jellyfin"){
Copy link
Contributor

Choose a reason for hiding this comment

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

Strings must use singlequote. @stylistic/quotes

Fix available:

Suggested change
if(documentTitle != "Jellyfin"){
if(documentTitle != 'Jellyfin'){

secondaryText.appendChild(text);
}
}

if (textLines[0].text) {
const text = document.createElement('a');
text.innerText = textLines[0].text;
if(documentTitle != "Jellyfin"){
Copy link
Contributor

Choose a reason for hiding this comment

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

Missing space before opening brace. @stylistic/space-before-blocks

Fix available:

Suggested change
if(documentTitle != "Jellyfin"){
if(documentTitle != "Jellyfin") {

secondaryText.appendChild(text);
}
}

if (textLines[0].text) {
const text = document.createElement('a');
text.innerText = textLines[0].text;
if(documentTitle != "Jellyfin"){
documentTitle +=' - ';
Copy link
Contributor

Choose a reason for hiding this comment

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

Operator '+=' must be spaced. @stylistic/space-infix-ops

Fix available:

Suggested change
documentTitle +=' - ';
documentTitle += ' - ';

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.

When playing music, Jellyfin doesn't show artist not song name on tab
2 participants