]> git.sesse.net Git - vlc/commitdiff
Fixes youtube parsing on www.youtube.com website
authorRafaël Carré <funman@videolan.org>
Sun, 19 Aug 2007 19:16:28 +0000 (19:16 +0000)
committerRafaël Carré <funman@videolan.org>
Sun, 19 Aug 2007 19:16:28 +0000 (19:16 +0000)
share/luaplaylist/youtube.lua

index b8e9ee451d8dcb7b09b5e12190bef945d9e40b99..90b4b9c958832dd952b33bd7999387ecb3137afe 100644 (file)
@@ -33,7 +33,7 @@ function parse()
                 artist = string.gsub( line, ".*subscribe_to_user=([^&]*).*", "%1" )
             end
             if string.match( line, "player2.swf" ) then
-                video_id = string.gsub( line, ".*BASE_YT_URL=http://youtube.com/&video_id=([^\"]*).*", "%1" )
+                video_id = string.gsub( line, ".*&video_id=([^\"]*).*", "%1" )
             end
             if name and description and artist and video_id then break end
         end