vlc/vlc-1.2 | branch: master | Pierre Ynard <[email protected]> | Mon Jan 9 02:25:51 2012 +0100| [447578df027188fbbf202a9826210c4160c3398d] | committer: Pierre Ynard
youtube.lua: partial fix for format matching Stereoscopic formats would get mistakenly selected (cherry picked from commit 0d4e2968970e2a344ce81c979b78e27435c485c6) Signed-off-by: Pierre Ynard <[email protected]> > http://git.videolan.org/gitweb.cgi/vlc/vlc-1.2.git/?a=commit;h=447578df027188fbbf202a9826210c4160c3398d --- share/lua/playlist/youtube.lua | 2 +- 1 files changed, 1 insertions(+), 1 deletions(-) diff --git a/share/lua/playlist/youtube.lua b/share/lua/playlist/youtube.lua index 38bc320..fd4db30 100644 --- a/share/lua/playlist/youtube.lua +++ b/share/lua/playlist/youtube.lua @@ -119,7 +119,7 @@ function parse() if url_map then -- FIXME: do this properly url_map = string.gsub( url_map, "\\u0026", "&" ) - for url,itag in string.gmatch( url_map, "url=([^&,]+).-&itag=(%d+)" ) do + for url,itag in string.gmatch( url_map, "url=([^&,]+)[^,]*&itag=(%d+)" ) do -- Apparently formats are listed in quality order, -- so we can afford to simply take the first one if not fmt or tonumber( itag ) == tonumber( fmt ) then _______________________________________________ vlc-commits mailing list [email protected] http://mailman.videolan.org/listinfo/vlc-commits
