mirror of
https://github.com/mpv-player/mpv
synced 2025-04-18 13:16:43 +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:
parent
76aaf74d30
commit
3d225ad275
@ -392,7 +392,6 @@ local function formats_to_edl(json, formats, use_all_formats)
|
|||||||
as_integer(track.width) .. ",h=" .. as_integer(track.height)
|
as_integer(track.width) .. ",h=" .. as_integer(track.height)
|
||||||
|
|
||||||
-- Add bitrate information etc. for better user selection.
|
-- Add bitrate information etc. for better user selection.
|
||||||
local size = as_integer(track["filesize"])
|
|
||||||
local byterate = 0
|
local byterate = 0
|
||||||
local rates = {"tbr", "vbr", "abr"}
|
local rates = {"tbr", "vbr", "abr"}
|
||||||
if #tracks > 1 then
|
if #tracks > 1 then
|
||||||
@ -408,9 +407,6 @@ local function formats_to_edl(json, formats, use_all_formats)
|
|||||||
break
|
break
|
||||||
end
|
end
|
||||||
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 ""
|
local title = track.format_note or ""
|
||||||
if #tracks > 1 then
|
if #tracks > 1 then
|
||||||
if #title > 0 then
|
if #title > 0 then
|
||||||
|
Loading…
Reference in New Issue
Block a user