1
0
mirror of https://github.com/mpv-player/mpv synced 2025-04-01 00:07:33 +00:00

ytdl_hook: remove bitrate estimation from file size

I think this is unnecessary, and at worst done by youtube-dl itself
(didn't check).
This commit is contained in:
wm4 2020-02-21 11:57:57 +01:00
parent 76aaf74d30
commit 3d225ad275

View File

@ -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