Commit d1057723 authored by Pierre d'Herbemont's avatar Pierre d'Herbemont

luaplaylist/youtube.lua: Fix art discovery.

parent 0b916e29
...@@ -87,7 +87,7 @@ function parse() ...@@ -87,7 +87,7 @@ function parse()
if not base_yt_url then if not base_yt_url then
base_yt_url = "http://youtube.com/" base_yt_url = "http://youtube.com/"
end end
art_url = get_arturl( vlc.path, video_id ) arturl = get_arturl( vlc.path, video_id )
if t then if t then
return { { path = base_yt_url .. "get_video?video_id="..video_id.."&t="..t; name = name; description = description; artist = artist; arturl = arturl } } return { { path = base_yt_url .. "get_video?video_id="..video_id.."&t="..t; name = name; description = description; artist = artist; arturl = arturl } }
else else
...@@ -99,7 +99,7 @@ function parse() ...@@ -99,7 +99,7 @@ function parse()
name = get_url_param( vlc.path, "title" ) name = get_url_param( vlc.path, "title" )
end end
video_id = get_url_param( vlc.path, "video_id" ) video_id = get_url_param( vlc.path, "video_id" )
art_url = get_arturl( vlc.path, video_id ) arturl = get_arturl( vlc.path, video_id )
if not string.match( vlc.path, "t=" ) then if not string.match( vlc.path, "t=" ) then
-- This sucks, we're missing "t" which is now mandatory. Let's -- This sucks, we're missing "t" which is now mandatory. Let's
-- try using another url -- try using another url
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment