[grilo-plugins/wip/jfelder/theaudiodb-artist-art: 3/4] theaudiodb: Use the correct variable for album
- From: Jean Felder <jfelder src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [grilo-plugins/wip/jfelder/theaudiodb-artist-art: 3/4] theaudiodb: Use the correct variable for album
- Date: Wed, 11 Sep 2019 17:08:24 +0000 (UTC)
commit d222b2d3fc6c9a9947ed775989462e40805b8a50
Author: Jean Felder <jfelder src gnome org>
Date: Sun Jul 28 12:45:18 2019 +0200
theaudiodb: Use the correct variable for album
The variable name is album and not title. Title is never used.
src/lua-factory/sources/grl-theaudiodb-cover.lua | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
---
diff --git a/src/lua-factory/sources/grl-theaudiodb-cover.lua
b/src/lua-factory/sources/grl-theaudiodb-cover.lua
index 2b3b1293..b7127336 100644
--- a/src/lua-factory/sources/grl-theaudiodb-cover.lua
+++ b/src/lua-factory/sources/grl-theaudiodb-cover.lua
@@ -63,7 +63,7 @@ end
function grl_source_resolve()
local url, keys
- local artist, title
+ local artist, album
keys = grl.get_media_keys()
if not keys or not keys.artist or not keys.album
@@ -72,7 +72,7 @@ function grl_source_resolve()
return
end
- -- Prepare artist and title strings to the url
+ -- Prepare artist and album strings to the url
artist = grl.encode(keys.artist)
album = grl.encode(keys.album)
url = string.format(THEAUDIODB_SEARCH_ALBUM, theaudiodb.api_key, artist, album)
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]