itunespy 1.6
Thanks to the wonderful @codello who did all the amazing work on this release! 👍
- 🔥 Breaking: This version and further versions of
itunespy
will NOT support any Python version below 3.5. If you need to use this library in any other version you can useitunespy <= 1.5.5
but those won't get any support or new features. - 🔥 Breaking:
__repr__
now returns a different value (see below) so make sure you don't use this in a non-compatible way before updating.
- 😄 Type hints are now available throughout the code
- 😄
collection_type
,artist_type
andtrack_type
are now available in aResultItem
even if it does not have awrapperType
. This is to provide a more consistent interface allowing to query arbitrary fields in a result. - 😄
__repr__
now returns the underlying JSON object of aResultItem
. - 😄
ResultItem
now has aget_country()
method for converting between country code formats viapycountry
. - 🐛 The country specified in a query is now preserved in any sub-query. Example: Specifying a country via
search_artist
will now retain that same country when doing aget_albums
. - 🐛 Performing lookups and searches does not raise an error anymore if the
artist_amg_id
orups
is not astr
. - 🐛 Fixed cases in which special characters in search terms or other query parameters would not be properly escaped.