From 89ef7a6bec91a9b91b3c888a758d5f12bc3fd895 Mon Sep 17 00:00:00 2001 From: Toni Gundogdu Date: Sat, 4 Aug 2012 08:22:06 +0300 Subject: [PATCH] playlist/youtube.lua: Use new const values --- share/lua/playlist/youtube.lua | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/share/lua/playlist/youtube.lua b/share/lua/playlist/youtube.lua index c039234..cff11a7 100644 --- a/share/lua/playlist/youtube.lua +++ b/share/lua/playlist/youtube.lua @@ -48,11 +48,15 @@ function parse(qargs) local start_index = 1 qargs.media = {} + + local C = require 'quvi/const' + local o = { [C.qfo_type] = C.qft_playlist } + local r = {} repeat -- Get the entire playlist. local u = YouTube.config_url(qargs, start_index, max_results) - local c = quvi.fetch(u, {type='playlist'}) + local c = quvi.fetch(u, o) local x = P.parse(c) YouTube.chk_error_resp(x) -- 2.11.4.GIT