[vlc-commits] dailymotion.lua: make website tag stripping more robust
Pierre Ynard
git at videolan.org
Sat Jul 18 09:55:09 CEST 2020
vlc | branch: master | Pierre Ynard <linkfanel at yahoo.fr> | Sat Jul 18 09:53:38 2020 +0200| [c72df8c548170f679045d765f919e5034a40bf8c] | committer: Pierre Ynard
dailymotion.lua: make website tag stripping more robust
Apparently the tag appended to the video title isn't always spelled
exactly the same.
> http://git.videolan.org/gitweb.cgi/vlc.git/?a=commit;h=c72df8c548170f679045d765f919e5034a40bf8c
---
share/lua/playlist/dailymotion.lua | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/share/lua/playlist/dailymotion.lua b/share/lua/playlist/dailymotion.lua
index c9f58ec0d0..36477e2398 100644
--- a/share/lua/playlist/dailymotion.lua
+++ b/share/lua/playlist/dailymotion.lua
@@ -2,7 +2,7 @@
Translate Dailymotion video webpages URLs to corresponding
video stream URLs.
- Copyright © 2007-2019 the VideoLAN team
+ Copyright © 2007-2020 the VideoLAN team
This program is free software; you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
@@ -34,7 +34,7 @@ function parse()
if string.match( line, "<meta property=\"og:title\"" ) then
_,_,name = string.find( line, "content=\"(.-)\"" )
name = vlc.strings.resolve_xml_special_chars( name )
- name = string.gsub( name, " %- Vidéo dailymotion$", "" )
+ name = string.gsub( name, " %- [Vv]id..?o [Dd]ailymotion$", "" )
end
if string.match( line, "<meta name=\"description\"" ) then
_,_,description = string.find( line, "content=\"(.-)\"" )
More information about the vlc-commits
mailing list