Skip to content

6.6.3

Latest
Compare
Choose a tag to compare
@lachlan-00 lachlan-00 released this 08 Oct 00:01
· 11 commits to api6 since this release
472c654

python3-ampache 6.6.3

This is a big one, we have now added ALL functions to execute. This allows you to use a dictionary of parameters for calls and makes it a lot easier to write your code.

Using get_config and save_config allows you to simplify the handshake process by storing your details and allowing you to just pull from history and get right back into it.

import ampache

ampache_connection = ampache.API()

if ampache_connection.get_config():
    ampache_session = ampache_connection.execute('handshake')

Note that for a password handshake you need to send a timestamp as well (and import time)

ampache_session = ampache_connection.execute('handshake', {'timestamp': int(time.time())}

Added

  • stream, download added stats parameter (enable/disable stat recording)
  • Added missing parameters to playlist_edit (owner, items, tracks)
  • Added a constant CLIENT_NAME for fallback name 'python3-ampache'

Changed

  • Updated requirement for requests to >=
  • Updated readme examples to use new functions (execute, config save/get)
  • playlist_create, playlist_edit parameter names changed to match each other (playlist_name, playlist_type)
  • username parameters require string
  • parameter names updated for a lot of methods
    • update_art
    • update_from_tags
    • update_artist_info

Full Changelog: 6.6.1...6.6.3