]> git.sesse.net Git - vlc/commitdiff
fix error: lua playlist warning: Error while runing script
authorIlkka Ollakka <ileoo@videolan.org>
Sat, 28 Jun 2008 21:22:21 +0000 (00:22 +0300)
committerIlkka Ollakka <ileoo@videolan.org>
Sat, 28 Jun 2008 21:22:21 +0000 (00:22 +0300)
   share/lua/meta/googleimage.lua, function fetch_art(): share/lua/meta/googleimage.lua:43: calling
   'stream' on bad self (string expected, got table)

share/lua/meta/googleimage.lua

index 8c27663b123170866c0636ce92bddcf98f93cd01..e203c9c9a6f7a1a1095ecc9bae4450e822a1eec5 100644 (file)
@@ -40,7 +40,7 @@ function fetch_art()
     else
         return nil
     end
-    fd = vlc:stream( "http://images.google.com/images?q=" .. get_query( title ) )
+    fd = vlc.stream( "http://images.google.com/images?q=" .. get_query( title ) )
     page = fd:read( 65653 )
     fd = nil
     _, _, arturl = string.find( page, "imgurl=([^&]+)" )