From 3d225ad2755bbc69e3a88c0f5a6c4358baea0e9b Mon Sep 17 00:00:00 2001 From: wm4 Date: Fri, 21 Feb 2020 11:57:57 +0100 Subject: ytdl_hook: remove bitrate estimation from file size I think this is unnecessary, and at worst done by youtube-dl itself (didn't check). --- player/lua/ytdl_hook.lua | 4 ---- 1 file changed, 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 -- cgit v1.2.3