diff --git a/ui/v2.5/graphql/data/config.graphql b/ui/v2.5/graphql/data/config.graphql index a823cc6fa..9f605e862 100644 --- a/ui/v2.5/graphql/data/config.graphql +++ b/ui/v2.5/graphql/data/config.graphql @@ -59,7 +59,7 @@ fragment ConfigGeneralData on ConfigGeneralResult { liveTranscodeInputArgs liveTranscodeOutputArgs drawFunscriptHeatmapRange - + scraperPackageSources { name url diff --git a/ui/v2.5/src/components/Scenes/SceneDetails/ExternalPlayerButton.tsx b/ui/v2.5/src/components/Scenes/SceneDetails/ExternalPlayerButton.tsx index 564719031..766c683d3 100644 --- a/ui/v2.5/src/components/Scenes/SceneDetails/ExternalPlayerButton.tsx +++ b/ui/v2.5/src/components/Scenes/SceneDetails/ExternalPlayerButton.tsx @@ -18,17 +18,20 @@ export const ExternalPlayerButton: React.FC = ({ const isAppleDevice = /(ipod|iphone|ipad)/i.test(navigator.userAgent); const intl = useIntl(); const { configuration } = useConfigurationContext(); - const interfaceConfig = configuration?.interface; const uiConfig = configuration?.ui; - const showOpenExternal = uiConfig?.showOpenExternal??true; + const showOpenExternal = uiConfig?.showOpenExternal ?? true; const { paths } = scene; const { files } = scene; const { path } = files[0]; - const fileName = path.split('/').pop()?.split('\\').pop()??''; - - if (!paths || !paths.stream || (!isAndroid && !isAppleDevice && !showOpenExternal)) - return ; + const fileName = path.split("/").pop()?.split("\\").pop() ?? ""; + + if ( + !paths || + !paths.stream || + (!isAndroid && !isAppleDevice && !showOpenExternal) + ) + return ; const { stream } = paths; const title = objectTitle(scene);