[vlc-commits] youtube.lua: update to new website changes
Pierre Ynard
git at videolan.org
Fri Mar 25 04:17:05 CET 2011
vlc/vlc-1.1 | branch: master | Pierre Ynard <linkfanel at yahoo.fr> | Fri Mar 25 04:02:01 2011 +0100| [d938db4c6a3b435736df19f1364b2d2cf1ce0907] | committer: Pierre Ynard
youtube.lua: update to new website changes
This will do for now to meet popular demand
(cherry picked from commit 04be17ebea21153734bcc8fa04948bd4cc0af67b)
Signed-off-by: Pierre Ynard <linkfanel at yahoo.fr>
> http://git.videolan.org/gitweb.cgi/vlc/vlc-1.1.git/?a=commit;h=d938db4c6a3b435736df19f1364b2d2cf1ce0907
---
share/lua/playlist/youtube.lua | 2 ++
1 files changed, 2 insertions(+), 0 deletions(-)
diff --git a/share/lua/playlist/youtube.lua b/share/lua/playlist/youtube.lua
index fd5be98..85ba428 100644
--- a/share/lua/playlist/youtube.lua
+++ b/share/lua/playlist/youtube.lua
@@ -88,6 +88,8 @@ function parse()
-- vlc.msg.err( t )
-- video_id = string.gsub( line, ".*&video_id:'([^']*)'.*", "%1" )
fmt_url_map = string.match( line, "\"fmt_url_map\": \"(.-)\"" )
+ -- FIXME: do this properly
+ fmt_url_map = string.gsub( fmt_url_map, "\\u0026", "&" )
if fmt_url_map then
for itag,url in string.gmatch( fmt_url_map, "(%d+)|([^,]+)" ) do
-- Apparently formats are listed in quality order,
More information about the vlc-commits
mailing list