[vlc-commits] youtube.lua: remove support for some outdated flash URL

Pierre Ynard git at videolan.org
Mon Oct 24 08:19:48 CEST 2016


vlc | branch: master | Pierre Ynard <linkfanel at yahoo.fr> | Mon Oct 24 07:44:10 2016 +0200| [97a14ddf04566f62497d3795bf0942a1e173d3fb] | committer: Pierre Ynard

youtube.lua: remove support for some outdated flash URL

> http://git.videolan.org/gitweb.cgi/vlc.git/?a=commit;h=97a14ddf04566f62497d3795bf0942a1e173d3fb
---

 share/lua/playlist/youtube.lua | 9 +++------
 1 file changed, 3 insertions(+), 6 deletions(-)

diff --git a/share/lua/playlist/youtube.lua b/share/lua/playlist/youtube.lua
index 97a9311..e9285e6 100644
--- a/share/lua/playlist/youtube.lua
+++ b/share/lua/playlist/youtube.lua
@@ -243,7 +243,7 @@ function probe()
             or string.match( vlc.path, "/get_video_info%?" ) -- info API
             or string.match( vlc.path, "/v/" ) -- video in swf player
             or string.match( vlc.path, "/embed/" ) -- embedded player iframe
-            or string.match( vlc.path, "/player2.swf" ) ) -- another player url
+           )
 end
 
 -- Parse function.
@@ -397,11 +397,8 @@ function parse()
 
         return { { path = path, title = title, artist = artist, arturl = arturl } }
 
-    else -- This is the flash player's URL
-        video_id = get_url_param( vlc.path, "video_id" )
-        if not video_id then
-            _,_,video_id = string.find( vlc.path, "/v/([^?]*)" )
-        end
+    else -- Other supported URL formats
+        _,_,video_id = string.find( vlc.path, "/v/([^?]*)" )
         if not video_id then
             video_id = string.match( vlc.path, "/embed/([^?]*)" )
         end



More information about the vlc-commits mailing list