-
-
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 Now Playing to Title Bar #6312
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change | ||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
|
@@ -527,7 +527,7 @@ | |||||||||||||
|
||||||||||||||
function updateNowPlayingInfo(state) { | ||||||||||||||
const nowPlayingItem = state.NowPlayingItem; | ||||||||||||||
|
||||||||||||||
var documentTitle = "Jellyfin"; | ||||||||||||||
Check failure on line 530 in src/components/nowPlayingBar/nowPlayingBar.js GitHub Actions / Quality checks 👌🧪 / Run lint 🕵️♂️
|
||||||||||||||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Strings must use singlequote. @stylistic/quotes Fix available:
Suggested change
|
||||||||||||||
const textLines = nowPlayingItem ? nowPlayingHelper.getNowPlayingNames(nowPlayingItem) : []; | ||||||||||||||
nowPlayingTextElement.innerHTML = ''; | ||||||||||||||
if (textLines) { | ||||||||||||||
|
@@ -539,19 +539,27 @@ | |||||||||||||
if (textLines[1].text) { | ||||||||||||||
const text = document.createElement('a'); | ||||||||||||||
text.innerText = textLines[1].text; | ||||||||||||||
documentTitle = text.innerText; | ||||||||||||||
secondaryText.appendChild(text); | ||||||||||||||
} | ||||||||||||||
} | ||||||||||||||
|
||||||||||||||
if (textLines[0].text) { | ||||||||||||||
const text = document.createElement('a'); | ||||||||||||||
text.innerText = textLines[0].text; | ||||||||||||||
if(documentTitle != "Jellyfin"){ | ||||||||||||||
Check failure on line 550 in src/components/nowPlayingBar/nowPlayingBar.js GitHub Actions / Quality checks 👌🧪 / Run lint 🕵️♂️
Check failure on line 550 in src/components/nowPlayingBar/nowPlayingBar.js GitHub Actions / Quality checks 👌🧪 / Run lint 🕵️♂️
|
||||||||||||||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Expected space(s) after "if". @stylistic/keyword-spacing Fix available:
Suggested change
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Strings must use singlequote. @stylistic/quotes Fix available:
Suggested change
There was a problem hiding this comment. Choose a reason for hiding this commentThe 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
|
||||||||||||||
documentTitle +=' - '; | ||||||||||||||
There was a problem hiding this comment. Choose a reason for hiding this commentThe 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 += text.innerText; | ||||||||||||||
itemText.appendChild(text); | ||||||||||||||
} | ||||||||||||||
|
||||||||||||||
nowPlayingTextElement.appendChild(itemText); | ||||||||||||||
nowPlayingTextElement.appendChild(secondaryText); | ||||||||||||||
} | ||||||||||||||
|
||||||||||||||
document.title = documentTitle; | ||||||||||||||
|
||||||||||||||
const imgHeight = 70; | ||||||||||||||
|
||||||||||||||
const url = nowPlayingItem ? (seriesImageUrl(nowPlayingItem, { | ||||||||||||||
|
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.
Unexpected var, use let or const instead. no-var
Fix available: