mirror of
https://gitea.phreedom.club/localhost_frssoft/funkwlmpv
synced 2025-05-08 12:58:40 +00:00
Persistent cache disabled by default
This commit is contained in:
parent
fcb52a7af9
commit
8d1e06d9c2
3 changed files with 6 additions and 3 deletions
|
@ -11,8 +11,10 @@ import re
|
|||
|
||||
fzf = FzfPrompt()
|
||||
|
||||
player = mpv.MPV(cache=True, demuxer_max_bytes=25*1024*1024,
|
||||
scripts='src/mpv_scripts/mpv_cache.lua')
|
||||
if get_config('enable_persistent_cache'):
|
||||
player = mpv.MPV(cache=True, demuxer_max_bytes=25*1024*1024, scripts='src/mpv_scripts/mpv_cache.lua')
|
||||
else:
|
||||
player = mpv.MPV(cache=True, demuxer_max_bytes=25*1024*1024)
|
||||
player.ytdl = False # Prevent attempts load track with yt-dlp
|
||||
player.volume = get_config('mpv_volume')
|
||||
player.prefetch_playlist = get_config('prefetch_playlist')
|
||||
|
|
|
@ -44,6 +44,7 @@ default_conf = {
|
|||
'external_transcoder_http_proxy_path': "",
|
||||
'track_activity_history': False,
|
||||
'prefetch_playlist': True,
|
||||
'enable_persistent_cache': False,
|
||||
'mpv_volume': 100,
|
||||
'show_like_button': True,
|
||||
'show_artist_name_in_albums': False
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue