From 623d85f88bb42834b335801ad5d703f6945d38d2 Mon Sep 17 00:00:00 2001 From: RblSb Date: Mon, 19 May 2025 03:06:41 +0300 Subject: Migrate to yt-dlp - yt-dlp should be more stable and allows more cool stuff in future - easier to export cookies.txt with yt-dlp utility (cookies.json support removed) - better quality fallback if not enough space - keep progress reports after reconnections --- src/client/Player.hx | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) (limited to 'src/client/Player.hx') diff --git a/src/client/Player.hx b/src/client/Player.hx index 7fc021d..670d5da 100644 --- a/src/client/Player.hx +++ b/src/client/Player.hx @@ -601,7 +601,10 @@ class Player { } public function pause():Void { - if (!isSyncActive()) return; + // allow pausing when removing last video + if (videoList.length > 0) { + if (!isSyncActive()) return; + } if (player == null) return; if (!player.isVideoLoaded()) return; player.pause(); -- cgit v1.2.3