git.videolan.org
/
vlc.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
5395427
)
googleimage plugin: don't run vlc.uri_decode on a nil string
author
Rafaël Carré
<funman@videolan.org>
Mon, 12 Nov 2007 13:34:54 +0000
(13:34 +0000)
committer
Rafaël Carré
<funman@videolan.org>
Mon, 12 Nov 2007 13:34:54 +0000
(13:34 +0000)
share/luameta/googleimage.lua
patch
|
blob
|
history
diff --git
a/share/luameta/googleimage.lua
b/share/luameta/googleimage.lua
index
32d6d59
..
6bc7456
100644
(file)
--- a/
share/luameta/googleimage.lua
+++ b/
share/luameta/googleimage.lua
@@
-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