mirror of
https://gitea.phreedom.club/localhost_frssoft/funkwlmpv
synced 2024-11-24 05:09:19 +02:00
Compare commits
No commits in common. "5f5b35b887fefa84e79407e206afc26f8596a377" and "fcb52a7af9301331d00137c71fc9c80b1c2507e1" have entirely different histories.
5f5b35b887
...
fcb52a7af9
|
@ -21,7 +21,7 @@ Python dependencies:
|
||||||
Optional: brotli
|
Optional: brotli
|
||||||
|
|
||||||
### About cache folder
|
### About cache folder
|
||||||
funkwhale-cli has to cache tracks before playing (default disabled "enable_persistent_cache"). Cache is persistent and you should manage it manually because the (script/program) can't clean it automatically.
|
funkwhale-cli has to cache tracks before playing. Cache is persistent and you should manage it manually because the (script/program) can't clean it automatically.
|
||||||
Cache structure: cache/domain.tld/[track uuid]
|
Cache structure: cache/domain.tld/[track uuid]
|
||||||
You can play tracks offline, example: mpv --shuffle cache/*/*
|
You can play tracks offline, example: mpv --shuffle cache/*/*
|
||||||
cache_helper.sh - it might be useful for compression cache (lossy: vorbis 128 kbps, no thumbnail)
|
cache_helper.sh - it might be useful for compression cache (lossy: vorbis 128 kbps, no thumbnail)
|
||||||
|
@ -29,5 +29,4 @@ cache_helper.sh - it might be useful for compression cache (lossy: vorbis 128 kb
|
||||||
Also, tnx Inex for his FunkWhale instance (set by default instance)
|
Also, tnx Inex for his FunkWhale instance (set by default instance)
|
||||||
|
|
||||||
[1]**Warning:** may content _unofficial instances_
|
[1]**Warning:** may content _unofficial instances_
|
||||||
**Warning 2:** This software not userfriendly. Maybe developerfriendly.
|
|
||||||
|
|
||||||
|
|
|
@ -11,10 +11,8 @@ import re
|
||||||
|
|
||||||
fzf = FzfPrompt()
|
fzf = FzfPrompt()
|
||||||
|
|
||||||
if get_config('enable_persistent_cache'):
|
player = mpv.MPV(cache=True, demuxer_max_bytes=25*1024*1024,
|
||||||
player = mpv.MPV(cache=True, demuxer_max_bytes=25*1024*1024, scripts='src/mpv_scripts/mpv_cache.lua')
|
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.ytdl = False # Prevent attempts load track with yt-dlp
|
||||||
player.volume = get_config('mpv_volume')
|
player.volume = get_config('mpv_volume')
|
||||||
player.prefetch_playlist = get_config('prefetch_playlist')
|
player.prefetch_playlist = get_config('prefetch_playlist')
|
||||||
|
|
|
@ -44,7 +44,6 @@ default_conf = {
|
||||||
'external_transcoder_http_proxy_path': "",
|
'external_transcoder_http_proxy_path': "",
|
||||||
'track_activity_history': False,
|
'track_activity_history': False,
|
||||||
'prefetch_playlist': True,
|
'prefetch_playlist': True,
|
||||||
'enable_persistent_cache': False,
|
|
||||||
'mpv_volume': 100,
|
'mpv_volume': 100,
|
||||||
'show_like_button': True,
|
'show_like_button': True,
|
||||||
'show_artist_name_in_albums': False
|
'show_artist_name_in_albums': False
|
||||||
|
|
Loading…
Reference in New Issue