[vlc-commits] youtube.lua: fix commit 9a746cfa3078c53eed57d2102002b39c283c6ab4

Pierre Ynard git at videolan.org
Sun Sep 25 06:08:08 CEST 2011


vlc | branch: master | Pierre Ynard <linkfanel at yahoo.fr> | Sun Sep 25 06:07:13 2011 +0200| [5a19e06f99b1dc2993275ce3d945e0b3cab5aaf2] | committer: Pierre Ynard

youtube.lua: fix commit 9a746cfa3078c53eed57d2102002b39c283c6ab4

> http://git.videolan.org/gitweb.cgi/vlc.git/?a=commit;h=5a19e06f99b1dc2993275ce3d945e0b3cab5aaf2
---

 share/lua/playlist/youtube.lua |   11 +++++------
 1 files changed, 5 insertions(+), 6 deletions(-)

diff --git a/share/lua/playlist/youtube.lua b/share/lua/playlist/youtube.lua
index 3e070f6..38bc320 100644
--- a/share/lua/playlist/youtube.lua
+++ b/share/lua/playlist/youtube.lua
@@ -25,12 +25,11 @@ function get_url_param( url, name )
 end
 
 function get_arturl()
-    -- FIXME: vlc.strings() is not a function, it should probably be
-    -- vlc.strings.decode_uri()
-    --if string.match( vlc.path, "iurl=" ) then
-    --    return vlc.strings( get_url_param( vlc.path, "iurl" ) )
-    --end
-    video_id = get_url_param( vlc.path, "v" )
+    local iurl = get_url_param( vlc.path, "iurl" )
+    if iurl then
+        return iurl
+    end
+    local video_id = get_url_param( vlc.path, "v" )
     if not video_id then
         return nil
     end



More information about the vlc-commits mailing list