-
i.type === 'clearLogo')?.url ?? '' } : item} maxWidth={240} maxHeight={60} as="h2" />
+ {linkable ? (
+
+ ) : (
+ art
+ )}
{item.type === 'episode' && (
-
+
+
)}
{item.type !== 'clip' && }
@@ -627,6 +670,14 @@ export function PlayerOverlay() {
if (e.shiftKey && p.nextUp) p.playNext();
else handled = false;
break;
+ case 'u':
+ case 'U': {
+ const prefs = useSettings.getState();
+ const next = UPSCALING_ORDER[(UPSCALING_ORDER.indexOf(prefs.upscaling) + 1) % UPSCALING_ORDER.length];
+ prefs.set('upscaling', next);
+ toast(`Upscaling: ${UPSCALING[next].label}`);
+ break;
+ }
case 'c':
case 'C': {
const subs = p.subTracks;
diff --git a/src/player/store.ts b/src/player/store.ts
index 6b45218..d2ff3a0 100644
--- a/src/player/store.ts
+++ b/src/player/store.ts
@@ -3,10 +3,10 @@ import * as api from '../plex/api';
import { directUrl, previewUrl, reportTimeline, stopTranscode, transcodeUrl, type Delivery } from '../plex/playback';
import type { Item, Stream } from '../plex/types';
import { useSession } from '../app/session';
-import { useSettings, SUBTITLE_MARGIN, type Preferences, type Quality } from '../app/settings';
+import { useSettings, SUBTITLE_MARGIN, type Preferences, type Quality, type Upscaling } from '../app/settings';
import { channelLabel } from '../app/format';
import { invalidateLibrary } from '../app/queries';
-import { keepAwake, isNative, win } from '../platform/native';
+import { keepAwake, isNative, resourcePath, win } from '../platform/native';
import { mpv, type MpvEvent, type MpvTrack } from './engine';
import { toast } from '../ui/overlays';
import { stopThemeMusic } from './theme';
@@ -203,6 +203,43 @@ async function applySubtitleStyle(prefs: Preferences = useSettings.getState()) {
}
}
+/** mpv's own scaler settings, read once so Off can put them back. */
+const SCALER_PROPS = ['scale', 'cscale', 'dscale', 'sigmoid-upscaling', 'deband', 'deband-iterations', 'deband-grain'] as const;
+let scalerDefaults: Partial