[vlc-devel] commit: Fix youtube lua (BASE_YT_URL had not been converted to new format) ( Rafaël Carré )
git version control
git at videolan.org
Fri Mar 7 00:29:50 CET 2008
vlc | branch: master | Rafaël Carré <funman at videolan.org> | Fri Mar 7 00:29:08 2008 +0100| [df9e47491f515d940d5cb2e5e035c210b81c2a3a]
Fix youtube lua (BASE_YT_URL had not been converted to new format)
> http://git.videolan.org/gitweb.cgi/vlc.git/?a=commit;h=df9e47491f515d940d5cb2e5e035c210b81c2a3a
---
share/luaplaylist/youtube.lua | 4 ++--
1 files changed, 2 insertions(+), 2 deletions(-)
diff --git a/share/luaplaylist/youtube.lua b/share/luaplaylist/youtube.lua
index eeb31b0..ea1a613 100644
--- a/share/luaplaylist/youtube.lua
+++ b/share/luaplaylist/youtube.lua
@@ -71,10 +71,10 @@ function parse()
artist = string.gsub( line, ".*subscribe_to_user=([^&]*).*", "%1" )
end
-- OLD: var swfArgs = {hl:'en',BASE_YT_URL:'http://youtube.com/',video_id:'XPJ7d8dq0t8',l:'292',t:'OEgsToPDskLFdOYrrlDm3FQPoQBYaCP1',sk:'0gnr-AE6QZJEZmCMd3lq_AC'};
- -- NEW: var swfArgs = {"video_id": "OHVvVmUNBFc", "l": 88, "sk": "WswKuJzDBsdD6oG3IakCXgC", "t": "OEgsToPDskK3zO44y0QN8Fr5ZSAZwCQp", "plid": "AARGnwWMrmGkbpOxAAAA4AT4IAA", "tk": "mEL4E7PqHeaZp5OG19NQThHt9mXJU4PbRTOw6lz9osHi4Hixp7RE1w=="};
+ -- NEW: var swfArgs = { "BASE_YT_URL": "http://youtube.com", "video_id": "OHVvVmUNBFc", "l": 88, "sk": "WswKuJzDBsdD6oG3IakCXgC", "t": "OEgsToPDskK3zO44y0QN8Fr5ZSAZwCQp", "plid": "AARGnwWMrmGkbpOxAAAA4AT4IAA", "tk": "mEL4E7PqHeaZp5OG19NQThHt9mXJU4PbRTOw6lz9osHi4Hixp7RE1w=="};
if string.match( line, "swfArgs" ) and string.match( line, "video_id" ) then
if string.match( line, "BASE_YT_URL" ) then
- base_yt_url = string.gsub( line, ".*BASE_YT_URL:'([^']*)'.*", "%1" )
+ base_yt_url = string.gsub( line, ".*\"BASE_YT_URL\": \"([^\"]*).*", "%1" )
end
t = string.gsub( line, ".*\"t\": \"([^\"]*).*", "%1" )
-- vlc.msg_err( t )
More information about the vlc-devel
mailing list