From 51fe7d7b66475b397cb381509ae842c389fc9c47 Mon Sep 17 00:00:00 2001 From: Toni Gundogdu Date: Tue, 7 Aug 2012 09:32:38 +0300 Subject: [PATCH] media/youtube.lua: Rename fmt_id to id --- share/lua/media/youtube.lua | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/share/lua/media/youtube.lua b/share/lua/media/youtube.lua index 9601952..6e9e8b1 100644 --- a/share/lua/media/youtube.lua +++ b/share/lua/media/youtube.lua @@ -150,9 +150,9 @@ function YouTube.iter_streams(config, U) t.video.height = tonumber(h) t.video.width = tonumber(w) - -- Do this after we have the video resolution, as the to_fmt_id + -- Do this after we have the video resolution, as the to_id -- function uses the height property. - t.fmt_id = YouTube.to_fmt_id(t, itag, smri) + t.id = YouTube.to_id(t, itag, smri) table.insert(r, t) end @@ -176,8 +176,8 @@ function YouTube.ch_best(S, t) end end --- Returns a general purpose "format ID" for a stream. -function YouTube.to_fmt_id(t, itag, smri) +-- Return an ID for a stream. +function YouTube.to_id(t, itag, smri) return string.format("%s_%s_i%02d_%sp", smri.quality, t.container, itag, t.video.height) end -- 2.11.4.GIT