2 return vlc.access == "http" and ( string.match( vlc.path, "youtube.com/$" ) or string.match( vlc.path, "youtube.com/browse" ) )
10 if not line then break end
11 for path, artist, name in string.gmatch( line, "href=\"(/watch%?v=[^\"]*)\" onclick=\"_hbLink%('([^']*)','Vid[^\']*'%);\">([^<]*)</a><br/>" )
13 path = "http://www.youtube.com" .. path
14 name = vlc.resolve_xml_special_chars( name )
15 table.insert( p, { path = path; name = name; artist = artist } )