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()
page = vlc.stream_read( fd, 65653 )
vlc.stream_delete( fd )
_, _, arturl = string.find( page, "imgurl=([^&]+)" )
return vlc.decode_uri(arturl)
if arturl then
return vlc.decode_uri(arturl)
else
return nil
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