Difference between revisions of "Documentation Talk:Building Lua Playlist Scripts"
Jump to navigation
Jump to search
m (correcting the url matching in function probe()) |
m (Corbax moved page Documentation Talk:Play HowTo/Building Lua Playlist Scripts to Documentation Talk:Building Lua Playlist Scripts) |
(No difference)
|
Latest revision as of 15:18, 25 September 2013
It would be better to change function probe() to contain:
if string.find( vlc.path, "video.google.com/videoplay", 1, 1 )
instead of
if string.match( vlc.path, "video.google.com/videoplay" )
to avoid using regular expressions and use plain search/find instead. Also, if we decide to still use string.match() then the dot (".") must be encoded like ("%.") otherwise a lot of other false positives would match, too. For example "www.example.com/video-google_com/videoplay" would also match.