aboutsummaryrefslogtreecommitdiffstats
path: root/src/client
diff options
context:
space:
mode:
authorRblSb <msrblsb@gmail.com>2025-05-19 03:06:41 +0300
committerRblSb <msrblsb@gmail.com>2025-05-24 13:59:03 +0300
commit623d85f88bb42834b335801ad5d703f6945d38d2 (patch)
tree857983c5c90f429e4764e4880f95d8f12a0f4595 /src/client
parent4b48de4f824ce48f1466014a9e9aa24023212181 (diff)
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
Diffstat (limited to 'src/client')
-rw-r--r--src/client/Player.hx5
1 files changed, 4 insertions, 1 deletions
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();
send patches to the email below
yukais@pinapelz.com
include the subject [PATCH repo_name]
pinapelz.com
homepage