ampache / python3-ampache

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

total_count required for json #4

Closed lachlan-00 closed 4 years ago

lachlan-00 commented 4 years ago

hey @AshotN there's a difference between xml/json where xml returns a total count item. in python i can just count the items for a count but should this be included in json_data?

image

AshotN commented 4 years ago

I opted on leaving that out, as it's a waste of data. The client can easily count the number of objects in the array. If you want we can add it, but I really don't see a purpose in adding random metadata.

lachlan-00 commented 4 years ago

that's fine with me, i thought the same thing.