Skip to content

Commit

Permalink
Merge branch 'master' into master
Browse files Browse the repository at this point in the history
  • Loading branch information
wrgallo authored Jan 6, 2025
2 parents 6d01271 + 882b498 commit 150c162
Show file tree
Hide file tree
Showing 14 changed files with 713 additions and 541 deletions.
31 changes: 31 additions & 0 deletions src/assets/img/devices/webos.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
7 changes: 1 addition & 6 deletions src/components/cardbuilder/cardBuilder.js
Original file line number Diff line number Diff line change
Expand Up @@ -1224,12 +1224,7 @@ export function buildCards(items, options) {
if (html) {
if (options.itemsContainer.cardBuilderHtml !== html) {
options.itemsContainer.innerHTML = html;

if (items.length < 50) {
options.itemsContainer.cardBuilderHtml = html;
} else {
options.itemsContainer.cardBuilderHtml = null;
}
options.itemsContainer.cardBuilderHtml = html;
}

imageLoader.lazyChildren(options.itemsContainer);
Expand Down
2 changes: 1 addition & 1 deletion src/components/multiSelect/multiSelect.js
Original file line number Diff line number Diff line change
Expand Up @@ -222,7 +222,7 @@ function showMenuForSelectedItems(e) {
icon: 'check_box_outline_blank'
});

// this assues that if the user can refresh metadata for the first item
// this assures that if the user can refresh metadata for the first item
// they can refresh metadata for all items
if (itemHelper.canRefreshMetadata(firstItem, user)) {
menuItems.push({
Expand Down
13 changes: 10 additions & 3 deletions src/components/upnextdialog/upnextdialog.js
Original file line number Diff line number Diff line change
Expand Up @@ -55,9 +55,16 @@ function setNextVideoText() {

const timeText = '<span class="upNextDialog-countdownText">' + globalize.translate('HeaderSecondsValue', secondsRemaining) + '</span>';

const nextVideoText = instance.showStaticNextText ?
globalize.translate('HeaderNextItem', globalize.translate(instance.itemType)) :
globalize.translate('HeaderNextItemPlayingInValue', globalize.translate(instance.itemType), timeText);
let nextVideoText;
if (instance.itemType === 'Episode') {
nextVideoText = instance.showStaticNextText ?
globalize.translate('HeaderNextEpisode') :
globalize.translate('HeaderNextEpisodePlayingInValue', timeText);
} else {
nextVideoText = instance.showStaticNextText ?
globalize.translate('HeaderNextVideo') :
globalize.translate('HeaderNextVideoPlayingInValue', timeText);
}

elem.querySelector('.upNextDialog-nextVideoText').innerHTML = nextVideoText;
}
Expand Down
2 changes: 1 addition & 1 deletion src/controllers/dashboard/devices/devices.js
Original file line number Diff line number Diff line change
Expand Up @@ -99,7 +99,7 @@ function load(page, devices) {
const iconUrl = imageHelper.getDeviceIcon(device);

if (iconUrl) {
deviceHtml += '<div class="cardImage" style="background-image:url(\'' + iconUrl + "');background-size: auto 64%;background-position:center center;\">";
deviceHtml += '<div class="cardImage" style="background-image:url(\'' + iconUrl + "');background-size:contain;background-position:center center;background-origin:content-box;padding:1em;\">";
deviceHtml += '</div>';
} else {
deviceHtml += '<span class="cardImageIcon material-icons tablet_android" aria-hidden="true"></span>';
Expand Down
3 changes: 3 additions & 0 deletions src/controllers/itemDetails/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -1501,6 +1501,9 @@ function renderChildren(page, item) {
}, {
name: globalize.translate('Books'),
type: 'Book'
}, {
name: globalize.translate('Collections'),
type: 'BoxSet'
}];
renderCollectionItems(page, item, collectionItemTypes, result.Items);
}
Expand Down
3 changes: 2 additions & 1 deletion src/scripts/browserDeviceProfile.js
Original file line number Diff line number Diff line change
Expand Up @@ -231,6 +231,7 @@ function supportsVc1(videoTestElement) {

function supportsHdr10(options) {
return options.supportsHdr10 ?? (false // eslint-disable-line sonarjs/no-redundant-boolean
|| browser.vidaa
|| browser.tizen
|| browser.web0s
|| browser.safari && ((browser.iOS && browser.iOSVersion >= 11) || browser.osx)
Expand Down Expand Up @@ -1120,7 +1121,7 @@ export default function (options) {
vp9VideoRangeTypes += '|HDR10';
av1VideoRangeTypes += '|HDR10';

if (browser.tizenVersion >= 3) {
if (browser.tizenVersion >= 3 || browser.vidaa) {
hevcVideoRangeTypes += '|DOVIWithHDR10';
}
}
Expand Down
6 changes: 4 additions & 2 deletions src/strings/en-us.json
Original file line number Diff line number Diff line change
Expand Up @@ -460,8 +460,10 @@
"HeaderNewDevices": "New Devices",
"HeaderNewPlaylist": "New Playlist",
"HeaderNewRepository": "New Repository",
"HeaderNextItem": "Next {0}",
"HeaderNextItemPlayingInValue": "Next {0} Playing in {1}",
"HeaderNextEpisode": "Next Episode",
"HeaderNextEpisodePlayingInValue": "Next Episode Playing in {0}",
"HeaderNextVideo": "Next Video",
"HeaderNextVideoPlayingInValue": "Next Video Playing in {0}",
"HeaderNoLyrics": "No lyrics found",
"HeaderOnNow": "On Now",
"HeaderOtherItems": "Other Items",
Expand Down
Loading

0 comments on commit 150c162

Please sign in to comment.