ampache / python3-ampache

Python XML and JSON API library for Ampache
GNU General Public License v3.0
11 stars 5 forks source link

playlist_generate examples #6

Closed paulijar closed 4 years ago

paulijar commented 4 years ago

I was wondering, how the response for the API method playlist_generate should look like when the format is id or index. There are three examples: https://github.com/ampache/python3-ampache/blob/master/docs/xml-responses/playlist_generate%20(id).xml https://github.com/ampache/python3-ampache/blob/master/docs/xml-responses/playlist_generate%20(index).xml https://github.com/ampache/python3-ampache/blob/master/docs/xml-responses/playlist_generate%20(song).xml

...but those all seem to contain a list of song elements. Is there something I don't realize, or are the examples for the id and index format totally wrong?

lachlan-00 commented 4 years ago

it's actually a bug that i just fixed.

The format parameter was being overwritten by the json/xml api 'format' i'll need to update those docs now that it's fixed. Thanks!

lachlan-00 commented 4 years ago

updated the examples.

Thanks for reporting! it needed a bit more work to make it valid XML.

paulijar commented 4 years ago

Okay, great. Did you notice, that the same issue is still in the corresponding JSON examples?

lachlan-00 commented 4 years ago

No I didn't! Will fix that up too

lachlan-00 commented 4 years ago

updated json too.

I'm going to be doing a runover again before i release the new api site and ampache 4.2.2