yvanzo, bitmap: right now I'm implementing the changes as bitmap suggested. Offline I'll be working on making a query that properly supports multiple artists and testing it, and I'll make a seperate PR when I finish.
xps2 joined the channel
dpmittal joined the channel
annebelleo joined the channel
annebelleo has quit
annebelleo joined the channel
in the reports, how can you get the MBID(/GID) of a particular item?
UmkaDK joined the channel
UmkaDK has quit
annebelleo has quit
annebelleo joined the channel
annebelleo has quit
spellew has quit
spellew joined the channel
d4rkie joined the channel
spellew has quit
spellew joined the channel
D4RK-PH0ENiX has quit
yvanzo
naiveai: item.recording.gid
annebelleo joined the channel
naiveai
yvanzo: that's the recording gid, so I tried to get the artist gid using item.recording.artist_credit.artist.gid, but that didn't work
yvanzo
spellew: There is a whitelist of stashed variables in Server.pm
naiveai: Add it to the query output then.
naiveai: Or artist_credit.artist is an array?
naiveai
yvanzo: maybe
doesn't seem like it, can't access individual elements
yvanzo
Indeed, it looks like only names are available.
artist_credit.names
naiveai
yvanzo: actually, since right now the query will only return recordings with one artist, we could do
item.recording.artist_credit.names.0.artist.gid
it works
yvanzo
naiveai: found it in recording.artist_credit.names.0.artist.gid :)
+1
naiveai
it's a hack, but we'll deal with it
as I said I am working on a multiple-artists query
and if and when that happens I'll smack a foreach loop on it
for now, all the changes are pushed
should be OK
yvanzo
spellew: Just add both 'entities' and 'types' to 'stash_keys' in Server.pm.
KassOtsimine joined the channel
HSOWA has quit
djwhitey_ joined the channel
djwhitey has quit
annebelleo has quit
github joined the channel
github
[picard-website] abhigyank opened pull request #108: PW-61: Fixed broken links in /docs/tags (master...61_links) https://git.io/vNvqt