diff options
author | Christoph Heinrich <christoph.heinrich@student.tugraz.at> | 2023-03-03 00:50:58 +0100 |
---|---|---|
committer | Dudemanguy <random342@airmail.cc> | 2023-03-03 23:02:13 +0000 |
commit | 362256edbc4f95c63e69c1fa8c8dce9cc6c44288 (patch) | |
tree | 8cc75dc1244ab5f41a62c1b5594c0454899f7219 /player/lua/ytdl_hook.lua | |
parent | 94c189dae76ba280d9883b16346c3dfb9720687e (diff) | |
download | mpv-362256edbc4f95c63e69c1fa8c8dce9cc6c44288.tar.bz2 mpv-362256edbc4f95c63e69c1fa8c8dce9cc6c44288.tar.xz |
ytdl_hook: only log error when no fallback url available
An error indicates that something doesn't work, but as long as a
safe url is available, playback is still expected to work.
Thus reduce logging level of MP4 DASH without fragments message and
add a new error message for when there is no safe url available either.
Also adds a missing space.
Diffstat (limited to 'player/lua/ytdl_hook.lua')
-rw-r--r-- | player/lua/ytdl_hook.lua | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/player/lua/ytdl_hook.lua b/player/lua/ytdl_hook.lua index 9e50b3a80b..77f7446ed2 100644 --- a/player/lua/ytdl_hook.lua +++ b/player/lua/ytdl_hook.lua @@ -309,7 +309,7 @@ local function edl_track_joined(fragments, protocol, is_live, base) -- if not available in all, give up. for i = offset, #fragments do if not fragments[i].duration then - msg.error("EDL doesn't support fragments" .. + msg.verbose("EDL doesn't support fragments " .. "without duration with MP4 DASH") return nil end @@ -423,6 +423,7 @@ local function formats_to_edl(json, formats, use_all_formats) track.protocol, json.is_live, track.fragment_base_url) if not edl_track and not url_is_safe(track.url) then + msg.error("No safe URL or supported fragmented stream available") return nil end |