art search with artist + album could be littlebit better
authorIlkka Ollakka <ileoo@videolan.org>
Wed, 22 Aug 2007 16:39:52 +0000 (16:39 +0000)
committerIlkka Ollakka <ileoo@videolan.org>
Wed, 22 Aug 2007 16:39:52 +0000 (16:39 +0000)
share/luameta/googleimage.lua

index 3d50dea..f3d565f 100644 (file)
@@ -11,7 +11,9 @@ end
 
 -- Return the artwork
 function fetch_art()
-    if vlc.title and vlc.artist then
+    if vlc.artist and vlc.album then
+        title = vlc.artist.." "..vlc.album
+    elseif vlc.title and vlc.artist then
         title = vlc.artist.." "..vlc.title
     elseif vlc.title then
         title = vlc.title