alldebrid plugin optimization and mpv playlist fix
This commit is contained in:
+6
-1
@@ -5683,13 +5683,18 @@ mp.register_event('file-loaded', function()
|
||||
mp.add_timeout(0.1, function()
|
||||
M._reset_uosc_input_state('file-loaded-web')
|
||||
end)
|
||||
|
||||
_format_cache_poll_generation = _format_cache_poll_generation + 1
|
||||
if _extract_store_hash(url) or not _is_ytdlp_url(url) then
|
||||
return
|
||||
end
|
||||
|
||||
local ok, err = _cache_formats_from_current_playback('file-loaded')
|
||||
if ok then
|
||||
_lua_log('formats: file-loaded cache succeeded for url=' .. url)
|
||||
else
|
||||
_lua_log('formats: file-loaded cache pending reason=' .. tostring(err or 'unknown'))
|
||||
end
|
||||
_format_cache_poll_generation = _format_cache_poll_generation + 1
|
||||
_schedule_playback_format_cache_poll(url, _format_cache_poll_generation, 1)
|
||||
_prefetch_formats_for_url(url)
|
||||
end)
|
||||
|
||||
@@ -7,13 +7,14 @@ border=no
|
||||
cache=yes
|
||||
# Give HTTP store streams more room to absorb Hydrus/network jitter before
|
||||
# mpv restarts audio after an underrun.
|
||||
cache-secs=90
|
||||
cache-secs=300
|
||||
cache-pause=yes
|
||||
cache-pause-wait=12
|
||||
demuxer-readahead-secs=90
|
||||
demuxer-max-bytes=512MiB
|
||||
demuxer-max-back-bytes=256MiB
|
||||
audio-buffer=1.0
|
||||
cache-pause-initial=yes
|
||||
cache-pause-wait=30
|
||||
demuxer-readahead-secs=300
|
||||
demuxer-max-bytes=1GiB
|
||||
demuxer-max-back-bytes=512MiB
|
||||
audio-buffer=2.0
|
||||
|
||||
# Ensure uosc texture/icon fonts are discoverable by libass.
|
||||
osd-fonts-dir=~~/scripts/uosc/fonts
|
||||
|
||||
Reference in New Issue
Block a user