16:40 PM
ruaok
understood.
16:40 PM
alastairp
single string
16:41 PM
ruaok
k
16:41 PM
finalmente...
16:42 PM
metadata : audio_properties : bit_rate ?
16:44 PM
alastairp
sure
16:44 PM
codec there too?
16:45 PM
I still don't know if bit_rate will be a string or a number
16:45 PM
I'll try and make it a number
16:45 PM
ruaok
yes on all counts
16:46 PM
kepstin-laptop
hmm, I suppse the dsd_* codecs should probably be considered lossless as well
16:47 PM
ruaok
alastairp: all the key checking is implemented and deployed.
16:47 PM
and DB purged.
16:48 PM
so, you'll be the first one to have a working client, so submit floyd again.
16:49 PM
kepstin-laptop
will I have to update my essentia build, or only the acousticbrainz client?
16:49 PM
ruaok
essentia
16:50 PM
alastairp
ruaok: do you know when dmitry will be back? because I can commit something to a branch, but I don't know if he'll want to accept it :)
16:51 PM
so we won't have a "final" until he merges everything
16:51 PM
ruaok
not soon, but he says he will be online.
16:51 PM
alastairp
ok
16:51 PM
ruaok
give us a branch to work off for now.
16:51 PM
we can pester him to merge this asap.
16:51 PM
alastairp
I think I'll have the patches done in an hour or so.
16:51 PM
(hah!)
16:52 PM
ruaok
i trust he doesn't merge on a timely basis then?
16:53 PM
alastairp
nah, he's pretty good at fixing stuff
17:05 PM
17:06 PM
ruaok
filename vs file_name?
17:06 PM
but that looks freaking great.
17:06 PM
alastairp
can never please some people
17:06 PM
yeah, and I need to strip dirname too
17:06 PM
ruaok
I can change it on my end.
17:07 PM
alastairp
nah, no problem
17:07 PM
ruaok
k
17:21 PM
ok, the home page now has a track count on it.
17:23 PM
alastairp
is it 0?
17:23 PM
ruaok
1
17:23 PM
me test case.
17:23 PM
which is your old test case.
17:23 PM
let me nuke the db again
17:24 PM
reset.
17:24 PM
ready for your submission. :)
17:37 PM
gonna run off and grab dinner.
17:37 PM
back to rescue my linux VM and get analyzing my music after that
17:42 PM
alastairp
ruaok: trying to submit but I see nothing in the db
17:42 PM
and requests isn't throwing an error, so I guess you're returning 200 anwyay
17:47 PM
nikki
hmm
17:48 PM
if I use this virtualenv thing, will those commands only install it within the directory I say?
17:49 PM
alastairp
yes
17:49 PM
oh. I had filename in properties, not tags
17:52 PM
http500!
17:58 PM
ok. we're waiting on rob to fix the server now, but after that it'll work
17:58 PM
from the new branch I posted
18:03 PM
CallerNo6 joined the channel
18:21 PM
nikki
nikki has changed the topic to: Freeze week | Agenda: general discussion, making more edit types autoedits + mbs-3462 (nikki), ie8 (nikki)
19:03 PM
Freso
ruaok: So we can go crazy with the AB client now?
19:09 PM
ruaok
Freso: net quite yet.
19:09 PM
alastairp: lemme see.
19:11 PM
alastairp: ping
19:11 PM
alastairp
hi
19:11 PM
ruaok
does the key lossless only get submitted for lossless files?
19:11 PM
alastairp
so, I had a few bugs in my doc, but I think I fixed them
19:11 PM
oh
19:12 PM
no. maybe I'm not submitting it...?
19:12 PM
ruaok
I'm using it but not requiring it.
19:12 PM
alastairp
ah
19:12 PM
ruaok
you're not.
19:12 PM
alastairp
:)
19:12 PM
ruaok
should I fix my code or do you want to fix your side?
19:12 PM
read: should it be required or optional?
19:13 PM
alastairp
I'll fix it
19:13 PM
it should be required
19:13 PM
ruaok
k
19:13 PM
fixed and deployed.
19:13 PM
alastairp
features["metadata"]["audio_properties"]["lossless"] = lossless
19:13 PM
ruaok
it should not properly complain
19:13 PM
alastairp
I /am/ adding it
19:14 PM
your error messages are in html
19:14 PM
not sure if that's something you want to keep
19:14 PM
ruaok
yeah, I hate this setup. :(
19:14 PM
in a sense I feel I should return no text.
19:14 PM
empty doc.
19:14 PM
but that is not nice to api users.
19:14 PM
but I hate returning json.
19:14 PM
for errors.
19:15 PM
alastairp
ah
19:15 PM
your call
19:15 PM
ruaok
its a battle. on one side I want the data I return to be modeled properly.
19:15 PM
alastairp
where are you looking for lossless? because I add it
19:15 PM
ruaok
on the other side I want useful errors.
19:16 PM
ianmcorvidae
you can return HTTP error codes and *also* return a JSON body
19:16 PM
ruaok
data['metadata']['audio_properties']['lossless']
19:16 PM
I dislike that, but I'll do it.
19:16 PM
ianmcorvidae
which would seem to be the correct approach here
19:16 PM
ruaok
anyone have suggesttion for the format of the json?
19:16 PM
ianmcorvidae
do you dislike it for a reason? I'm trying to figure out what the issue is you're trying to get past XD
19:17 PM
kepstin-laptop
if you have some api arrors which aren't programming errors on the client, you really should return them in some way that can be parsed by the client and displayed to the user in a reasonable fashion.
19:17 PM
ruaok
I dislike putting error messages into JSON.
19:17 PM
it conflates the data model with OOB error nonsense.
19:18 PM
but really, this isn't about my preferences. I need to STFU and return json.
19:18 PM
{ error : "You fucked up." }
19:18 PM
that enough?
19:18 PM
kepstin-laptop
If that means you return an http error code and a text/plain body with messages on errors, then so be it, just document that.
19:19 PM
ianmcorvidae
that's generally the approach I've seen, having { error: whatever }. and I guess I've mostly just assumed the data model doesn't apply for non-200 responses, it's just also-JSON so it doesn't require clients to have multiple parsers
19:19 PM
alastairp
ruaok: I've seen {status: {result: ok/bad, details: blah}, response: {........ }} before
19:19 PM
so that errors and real messages have the same format
19:21 PM
19:21 PM
ruaok
wow. :)
19:22 PM
I could bike home with 4 interchanges. :)
19:22 PM
alastairp
19:24 PM
ruaok bookmarks the site and returns to json error messages.
19:24 PM
ruaok
so, are you sure the the lossless key is in your data?
19:24 PM
I'm requiring it now if you want to try again
19:25 PM
alastairp
yeah, sorry. I was just cleaning out tabs in order to open more
19:25 PM
oh, actually
19:25 PM
in the sample I set, no
19:25 PM
I just realised, I was dumping the result directly from essentia and didn't add everything in
19:29 PM
19:30 PM
ruaok
:-)
19:30 PM
looks good to me/
19:31 PM
alastairp
ok, trying again client
19:31 PM
yep, client works
19:31 PM
ruaok
:-D
19:32 PM
alastairp
and have at it
19:33 PM
ruaok
sigh.
19:34 PM
*flask* returns an HTML erorr.
19:34 PM
if you send bad JSON, you get an HTML error before I ever get to handle the request.
19:34 PM
not much I can do about that.
19:37 PM
ok, fuck it.
19:37 PM
returning HTML error messages for now.
19:37 PM
alastairp
yeah, no problem
19:38 PM
ruaok
can you sumit a file so I can check something?
19:38 PM
alastairp
no, because my submitter won't resubmit my test album because it's already been sent ;)
19:38 PM
nah, give me a sec
19:39 PM
ruaok
moar stuff!
19:39 PM
kepstin-laptop
alastairp: you can just delete the log file to resubmit stuff, right?
19:39 PM
alastairp
kepstin-laptop: yep
19:39 PM
ruaok: submitting
19:40 PM
requests.exceptions.HTTPError: 400 Client Error: BAD REQUEST
19:40 PM
ruaok
can you see the error message that was sent?
19:41 PM
alastairp
let me work out how to do that
19:43 PM
<p>key 'metadata : tags : musicbrainz_recordingid' was not found in submitted data.</p>
19:45 PM
ruaok
ok, my bad.
19:45 PM
hang on
19:45 PM
try again
19:48 PM
alastairp
Mineo: good patch. you beat me to it :)
19:48 PM
ruaok: da39a905-7b84-4e2a-bbcf-74de3d6ebd03 just submitted
19:49 PM
ruaok
confirmed
19:49 PM
alastairp
Mineo: can you make it pass os.path.abspath to process_file? because we write it to the log file
19:50 PM
statistics haven't updated :(