Commit 72757e93 authored by Rafaël Carré's avatar Rafaël Carré

googleimage plugin: don't run vlc.uri_decode on a nil string

parent 5395427f
...@@ -44,5 +44,9 @@ function fetch_art() ...@@ -44,5 +44,9 @@ function fetch_art()
page = vlc.stream_read( fd, 65653 ) page = vlc.stream_read( fd, 65653 )
vlc.stream_delete( fd ) vlc.stream_delete( fd )
_, _, arturl = string.find( page, "imgurl=([^&]+)" ) _, _, arturl = string.find( page, "imgurl=([^&]+)" )
if arturl then
return vlc.decode_uri(arturl) return vlc.decode_uri(arturl)
else
return nil
end
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