vlc/vlc-3.0 | branch: master | Pierre Ynard <linkfa...@yahoo.fr> | Sat Jul 18 
09:53:38 2020 +0200| [4c66e945e0d8c28718b85b527415b8dea2c5ceda] | 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.

(cherry picked from commit c72df8c548170f679045d765f919e5034a40bf8c)
Signed-off-by: Pierre Ynard <linkfa...@yahoo.fr>

> http://git.videolan.org/gitweb.cgi/vlc/vlc-3.0.git/?a=commit;h=4c66e945e0d8c28718b85b527415b8dea2c5ceda
---

 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=\"(.-)\"" 
)

_______________________________________________
vlc-commits mailing list
vlc-commits@videolan.org
https://mailman.videolan.org/listinfo/vlc-commits

Reply via email to