From 67a6089724158d0b517266dd732a3a8141dbf1d7 Mon Sep 17 00:00:00 2001 From: WardPearce Date: Fri, 18 Oct 2024 14:55:27 +1300 Subject: [PATCH] Delete timeout once done --- materialious/src/lib/i18n/locales/en.json | 2 +- materialious/src/routes/(app)/watch/[slug]/+page.svelte | 4 +++- 2 files changed, 4 insertions(+), 2 deletions(-) diff --git a/materialious/src/lib/i18n/locales/en.json b/materialious/src/lib/i18n/locales/en.json index 8106f569..23ecc371 100644 --- a/materialious/src/lib/i18n/locales/en.json +++ b/materialious/src/lib/i18n/locales/en.json @@ -8,7 +8,7 @@ "cancel": "Cancel", "create": "Create", "title": "Title", - "searchPlaceholder": "Search (ctrl + k)", + "searchPlaceholder": "Search", "delete": "Delete", "donate": "Donate", "deleteAllHistory": "Delete all history", diff --git a/materialious/src/routes/(app)/watch/[slug]/+page.svelte b/materialious/src/routes/(app)/watch/[slug]/+page.svelte index 12d1e2ac..80457f8e 100644 --- a/materialious/src/routes/(app)/watch/[slug]/+page.svelte +++ b/materialious/src/routes/(app)/watch/[slug]/+page.svelte @@ -412,6 +412,8 @@ } pauseTimeout = setTimeout(() => { player.pause(); + pauseTimerSeconds = 0; + clearTimeout(pauseTimeout); }, pauseTimerSeconds * 1000); ui('#pause-timer'); @@ -573,7 +575,7 @@ width_wide
{$_('player.theatreMode')}
- {#if data.video.lengthSeconds > 60} + {#if data.video.lengthSeconds > 60 && !data.video.hlsUrl}