[vlc-commits] vimeo.lua: update for website changes
Pierre Ynard
git at videolan.org
Wed Dec 14 11:39:09 CET 2016
vlc/vlc-2.2 | branch: master | Pierre Ynard <linkfanel at yahoo.fr> | Wed Dec 14 11:25:12 2016 +0100| [06bdc7a67167b27d3db2dad4e4b30e8b1b7675f8] | committer: Pierre Ynard
vimeo.lua: update for website changes
(cherry picked from commit 73d3b86d7451aae6828940cdaf64a9a282ce8dd4)
Signed-off-by: Pierre Ynard <linkfanel at yahoo.fr>
> http://git.videolan.org/gitweb.cgi/vlc/vlc-2.2.git/?a=commit;h=06bdc7a67167b27d3db2dad4e4b30e8b1b7675f8
---
share/lua/playlist/vimeo.lua | 10 ++++------
1 file changed, 4 insertions(+), 6 deletions(-)
diff --git a/share/lua/playlist/vimeo.lua b/share/lua/playlist/vimeo.lua
index 812e479..8e15b91 100644
--- a/share/lua/playlist/vimeo.lua
+++ b/share/lua/playlist/vimeo.lua
@@ -38,14 +38,12 @@ function parse()
local line = vlc.readline()
if not line then break end
- -- Get the appropriate ubiquitous meta tag. It appears twice:
- -- <meta property="og:video:url" content="https://player.vimeo.com/video/123456789?autoplay=1">
- -- <meta property="og:video:url" content="https://vimeo.com/moogaloop.swf?clip_id=123456789&autoplay=1">
- local meta = string.match( line, "(<meta[^>]- property=\"og:video:url\"[^>]->)" )
+ -- Get the appropriate ubiquitous meta tag
+ -- <meta name="twitter:player" content="https://player.vimeo.com/video/123456789">
+ local meta = string.match( line, "(<meta[^>]- name=\"twitter:player\"[^>]->)" )
if meta then
local path = string.match( meta, " content=\"(.-)\"" )
- -- Exclude moogaloop flash URL
- if path and string.match( path, "player%.vimeo%.com" ) then
+ if path then
path = vlc.strings.resolve_xml_special_chars( path )
return { { path = path } }
end
More information about the vlc-commits
mailing list