diff options
author | Victor Toso <me@victortoso.com> | 2016-03-03 01:17:43 +0100 |
---|---|---|
committer | Victor Toso <me@victortoso.com> | 2016-03-11 12:40:16 +0100 |
commit | 72a4e9d1924de741d66b4b5e4ed45e726db3913a (patch) | |
tree | b40f39f15a157222261380a538804392c5d3dd3a /tests | |
parent | fc9cfe1dc167c6a7b843b91786e9d94b3d0b94a5 (diff) |
lua-factory: use requested-keys as keys for lua api
We always provided the requested-keys to the lua source as an array with
the metadata-keys as values. That's not so interesting as the source
will need to walk in the array to check which keys were requested.
As from commit 2bfcff90d589d43351 we started introducing the
requested-keys as an argument, it would be good to use this moment and
improve it.
A table with the metadata-keys as key could be easily accessed in the
source
e.g
if requested_keys.artist then
media.artist = my_artist
end
https://bugzilla.gnome.org/show_bug.cgi?id=732879
Diffstat (limited to 'tests')
0 files changed, 0 insertions, 0 deletions