vlc/vlc-2.0 | branch: master | Cheng Sun <[email protected]> | Wed Feb 15 19:34:05 2012 +0000| [b922b655f4e4a065d113aad3ed3f51bc1d9d3edc] | committer: Jean-Baptiste Kempf
lua vimeo playlist: no need to parse vlc.path more than once Signed-off-by: Jean-Baptiste Kempf <[email protected]> (cherry picked from commit cc56ca3a2afd1c9a1f5f6ed3e42b7f567c2a8bc5) Signed-off-by: Jean-Baptiste Kempf <[email protected]> > http://git.videolan.org/gitweb.cgi/vlc/vlc-2.0.git/?a=commit;h=b922b655f4e4a065d113aad3ed3f51bc1d9d3edc --- share/lua/playlist/vimeo.lua | 4 ++-- 1 files changed, 2 insertions(+), 2 deletions(-) diff --git a/share/lua/playlist/vimeo.lua b/share/lua/playlist/vimeo.lua index 249002e..bac7b8a 100644 --- a/share/lua/playlist/vimeo.lua +++ b/share/lua/playlist/vimeo.lua @@ -51,6 +51,8 @@ function parse() if string.match ( vlc.path, "vimeo.com/moogaloop" ) then prefres = get_prefres() ishd = false + -- Try to find id of the video + _,_,id = string.find (vlc.path, "vimeo.com/moogaloop/load/clip:(.*)/local/") while true do -- Try to find the video's title line = vlc.readline() @@ -58,8 +60,6 @@ function parse() if string.match( line, "<caption>(.*)</caption>" ) then _,_,name = string.find (line, "<caption>(.*)</caption>" ) end - -- Try to find id of the video - _,_,id = string.find (vlc.path, "vimeo.com/moogaloop/load/clip:(.*)/local/") -- Try to find image for thumbnail if string.match( line, "<thumbnail>(.*)</thumbnail>" ) then _,_,arturl = string.find (line, "<thumbnail>(.*)</thumbnail>" ) _______________________________________________ vlc-commits mailing list [email protected] http://mailman.videolan.org/listinfo/vlc-commits
