[vlc-commits] vimeo.lua: update for website changes
Pierre Ynard
git at videolan.org
Wed Dec 14 11:25:58 CET 2016
vlc | branch: master | Pierre Ynard <linkfanel at yahoo.fr> | Wed Dec 14 11:25:12 2016 +0100| [73d3b86d7451aae6828940cdaf64a9a282ce8dd4] | committer: Pierre Ynard
vimeo.lua: update for website changes
> http://git.videolan.org/gitweb.cgi/vlc.git/?a=commit;h=73d3b86d7451aae6828940cdaf64a9a282ce8dd4
---
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 870dfd5..c636266 100644
--- a/share/lua/playlist/vimeo.lua
+++ b/share/lua/playlist/vimeo.lua
@@ -41,14 +41,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