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 b8e9ee4..90b4b9c 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