Commit b5e08529 authored by Rafaël Carré's avatar Rafaël Carré

Fixes youtube parsing on www.youtube.com website

parent 0ee116aa
......@@ -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
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment