diff --git a/src/components/appRouter.js b/src/components/appRouter.js
index 0861cf7e00..58c64e7d43 100644
--- a/src/components/appRouter.js
+++ b/src/components/appRouter.js
@@ -222,46 +222,13 @@ define(['loading', 'globalize', 'events', 'viewManager', 'skinManager', 'backdro
}
function normalizeImageOptions(options) {
- var scaleFactor = browser.tv ? 0.8 : 1;
-
var setQuality;
- if (options.maxWidth) {
- options.maxWidth = Math.round(options.maxWidth * scaleFactor);
+ if (options.maxWidth || options.width || options.maxHeight || options.height) {
setQuality = true;
}
- if (options.width) {
- options.width = Math.round(options.width * scaleFactor);
- setQuality = true;
- }
-
- if (options.maxHeight) {
- options.maxHeight = Math.round(options.maxHeight * scaleFactor);
- setQuality = true;
- }
-
- if (options.height) {
- options.height = Math.round(options.height * scaleFactor);
- setQuality = true;
- }
-
- if (setQuality) {
- var quality;
- var type = options.type || 'Primary';
-
- if (browser.tv || browser.slow) {
- // TODO: wtf
- if (browser.chrome) {
- // webp support
- quality = type === 'Primary' ? 40 : 50;
- } else {
- quality = type === 'Backdrop' ? 60 : 50;
- }
- } else {
- quality = type === 'Backdrop' ? 70 : 90;
- }
-
- options.quality = quality;
+ if (setQuality && !options.quality) {
+ options.quality = 90;
}
}
diff --git a/src/components/listview/listview.js b/src/components/listview/listview.js
index dda0d34903..60340e2a0e 100644
--- a/src/components/listview/listview.js
+++ b/src/components/listview/listview.js
@@ -273,7 +273,7 @@ define(['itemHelper', 'mediaInfo', 'indicators', 'connectionManager', 'layoutMan
imageClass += ' itemAction';
}
- var imageAction = playOnImageClick ? 'resume' : action;
+ var imageAction = playOnImageClick ? 'link' : action;
if (imgUrl) {
html += '
';
diff --git a/src/components/remotecontrol/remotecontrol.js b/src/components/remotecontrol/remotecontrol.js
index b283daaba0..b73584246b 100644
--- a/src/components/remotecontrol/remotecontrol.js
+++ b/src/components/remotecontrol/remotecontrol.js
@@ -494,7 +494,7 @@ define(['browser', 'datetime', 'backdrop', 'libraryBrowser', 'listView', 'imageL
itemsContainer.innerHTML = html;
if (focusedItemPlaylistId !== null) {
focusedItemPlaylistId = focusedItemPlaylistId.getAttribute('data-playlistitemid');
- const newFocusedItem = itemsContainer.querySelector(`button[data-playlistitemid=${focusedItemPlaylistId}]`);
+ const newFocusedItem = itemsContainer.querySelector(`button[data-playlistitemid="${focusedItemPlaylistId}"]`);
if (newFocusedItem !== null) {
newFocusedItem.focus();
}
@@ -503,7 +503,7 @@ define(['browser', 'datetime', 'backdrop', 'libraryBrowser', 'listView', 'imageL
var playlistItemId = playbackManager.getCurrentPlaylistItemId(player);
if (playlistItemId) {
- var img = itemsContainer.querySelector('.listItem[data-playlistItemId="' + playlistItemId + '"] .listItemImage');
+ var img = itemsContainer.querySelector(`.listItem[data-playlistItemId="${playlistItemId}"] .listItemImage`);
if (img) {
img.classList.remove('lazy');
diff --git a/src/components/search/searchresults.js b/src/components/search/searchresults.js
index d4de2349a4..88c68fdedd 100644
--- a/src/components/search/searchresults.js
+++ b/src/components/search/searchresults.js
@@ -464,7 +464,7 @@ define(['layoutManager', 'globalize', 'require', 'events', 'connectionManager',
showTitle: true,
overlayText: false,
centerText: true,
- action: 'play'
+ overlayPlayButton: true
});
diff --git a/src/controllers/itemDetails/index.js b/src/controllers/itemDetails/index.js
index 2f0c9cc03d..cf5549f709 100644
--- a/src/controllers/itemDetails/index.js
+++ b/src/controllers/itemDetails/index.js
@@ -726,7 +726,7 @@ define(['loading', 'appRouter', 'layoutManager', 'connectionManager', 'userSetti
disableIndicators: true,
disableHoverMenu: true,
overlayPlayButton: true,
- width: dom.getWindowSize().innerWidth * 0.25
+ width: dom.getWindowSize().innerWidth * 0.5
});
elem.innerHTML = cardHtml;
@@ -1361,7 +1361,7 @@ define(['loading', 'appRouter', 'layoutManager', 'connectionManager', 'userSetti
imageSize: 'large',
enableSideMediaInfo: false,
highlight: false,
- action: layoutManager.tv ? 'resume' : 'none',
+ action: !layoutManager.desktop ? 'link' : 'none',
imagePlayButton: true,
includeParentInfoInTitle: false
});