From 07d137f72dacb2198a81bb7bed5c05489ee369d5 Mon Sep 17 00:00:00 2001 From: localhost_frssoft Date: Wed, 21 Dec 2022 04:21:04 +0300 Subject: [PATCH] Enable mpv cache-secs (10 sec) --- src/mpv_control.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/mpv_control.py b/src/mpv_control.py index 2ce9164..d78b6a3 100644 --- a/src/mpv_control.py +++ b/src/mpv_control.py @@ -9,7 +9,7 @@ import sys fzf = FzfPrompt() -player = mpv.MPV() +player = mpv.MPV(cache_secs=10) player.ytdl = False # Prevent attempts load track with yt-dlp player.volume = get_config('mpv_volume') player.prefetch_playlist = get_config('prefetch_playlist')