Imgur / imgurpython

Official Imgur python client library (deprecated)
MIT License
544 stars 116 forks source link

In method update_album 'ids' are optional in the API but compulsory here #102

Open fernand0 opened 3 years ago

fernand0 commented 3 years ago

Well, I know this library is abandoned but just in case it is useful for somebody:

In file: https://github.com/Imgur/imgurpython/blob/48abc45a143ee9d2485c22a63b7cd55701d8163c/imgurpython/client.py In method: update_album you can find:

 if isinstance(post_data['ids'], list):
        post_data['ids'] = ','.join(post_data['ids'])

In the API ids[] is an optional parameter.

Workaround: add '{ids=None, ... } ` to your dictionary when calling this method. You just need it for this parameter, the others are not checked if not present.