summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorwm4 <wm4@nowhere>2020-02-21 11:57:57 +0100
committerwm4 <wm4@nowhere>2020-02-21 11:57:57 +0100
commit3d225ad2755bbc69e3a88c0f5a6c4358baea0e9b (patch)
tree7dae737bd57975ef6a200f5215ef88b3fe1db74f
parent76aaf74d30039df10e114c4e771bc9e3ddc779d5 (diff)
downloadmpv-3d225ad2755bbc69e3a88c0f5a6c4358baea0e9b.tar.bz2
mpv-3d225ad2755bbc69e3a88c0f5a6c4358baea0e9b.tar.xz
ytdl_hook: remove bitrate estimation from file size
I think this is unnecessary, and at worst done by youtube-dl itself (didn't check).
-rw-r--r--player/lua/ytdl_hook.lua4
1 files changed, 0 insertions, 4 deletions
diff --git a/player/lua/ytdl_hook.lua b/player/lua/ytdl_hook.lua
index 67eac3f4ae..2369c9640a 100644
--- a/player/lua/ytdl_hook.lua
+++ b/player/lua/ytdl_hook.lua
@@ -392,7 +392,6 @@ local function formats_to_edl(json, formats, use_all_formats)
as_integer(track.width) .. ",h=" .. as_integer(track.height)
-- Add bitrate information etc. for better user selection.
- local size = as_integer(track["filesize"])
local byterate = 0
local rates = {"tbr", "vbr", "abr"}
if #tracks > 1 then
@@ -408,9 +407,6 @@ local function formats_to_edl(json, formats, use_all_formats)
break
end
end
- if byterate < 1 and size > 0 and duration > 0 and #tracks < 2 then
- byterate = as_integer(size / duration)
- end
local title = track.format_note or ""
if #tracks > 1 then
if #title > 0 then