deezer-python-gql 0.13.1__py3-none-any.whl → 0.13.3__py3-none-any.whl

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -325,7 +325,13 @@ class DeezerBaseClient:
325
325
 
326
326
  resp = await self.execute(query, operation_name="CheckAudiobookIds")
327
327
  self._last_variables = {"album_ids": album_ids}
328
- data = self.get_data(resp)
328
+ try:
329
+ data = self.get_data(resp)
330
+ except GraphQLClientGraphQLMultiError:
331
+ # Expected when none of the IDs are audiobooks (every alias errors).
332
+ # Also handles transient API errors — return empty rather than crash.
333
+ logger.debug("CheckAudiobookIds: all %d IDs returned errors", len(album_ids))
334
+ return set()
329
335
 
330
336
  audiobook_ids: set[str] = set()
331
337
  for i, aid in enumerate(album_ids):
@@ -327,7 +327,13 @@ class DeezerBaseClient:
327
327
 
328
328
  resp = await self.execute(query, operation_name="CheckAudiobookIds")
329
329
  self._last_variables = {"album_ids": album_ids}
330
- data = self.get_data(resp)
330
+ try:
331
+ data = self.get_data(resp)
332
+ except GraphQLClientGraphQLMultiError:
333
+ # Expected when none of the IDs are audiobooks (every alias errors).
334
+ # Also handles transient API errors — return empty rather than crash.
335
+ logger.debug("CheckAudiobookIds: all %d IDs returned errors", len(album_ids))
336
+ return set()
331
337
 
332
338
  audiobook_ids: set[str] = set()
333
339
  for i, aid in enumerate(album_ids):
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: deezer-python-gql
3
- Version: 0.13.1
3
+ Version: 0.13.3
4
4
  Summary: Async typed Python client for Deezer's Pipe GraphQL API.
5
5
  Author-email: Julian Daberkow <jdaberkow@users.noreply.github.com>
6
6
  License: Apache-2.0
@@ -1,5 +1,5 @@
1
1
  deezer_python_gql/__init__.py,sha256=r6fqcdTcJ1zjm79BTe_6l7Q4fPR4OUGWkID2pbqKKW4,158
2
- deezer_python_gql/base_client.py,sha256=isbqcV3tH2vRIRi1Wa8MLSm-tv3cX4eAc1G77Fcfuf4,12699
2
+ deezer_python_gql/base_client.py,sha256=6H_k4TCaQ0f1JMVr2hFBigu9Hg4nyENBQJr2TB5lz6I,13043
3
3
  deezer_python_gql/py.typed,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
4
4
  deezer_python_gql/generated/__init__.py,sha256=PIxhEaG6LQMQEbw789x6FLt0oj_unIHvIbzoyINpQEQ,46481
5
5
  deezer_python_gql/generated/add_album_to_favorite.py,sha256=hprfZkN_jIEl3N_zw962GAL_7XhW6odh_rBldgZ0brM,596
@@ -9,7 +9,7 @@ deezer_python_gql/generated/add_playlist_to_favorite.py,sha256=t-5sZc1KR6Kmxmih-
9
9
  deezer_python_gql/generated/add_podcast_to_favorite.py,sha256=bMJAZVtlrsJ7xnk48mqrDzsNiCZ9u_2By0QLdhWInik,705
10
10
  deezer_python_gql/generated/add_track_to_favorite.py,sha256=EUB2jNV5XzbsqntfS6UZwkPhEuOipn-We0PTgHStQtA,558
11
11
  deezer_python_gql/generated/add_tracks_to_playlist.py,sha256=S_AGBUnOV_YP7zdyYpCxWIeJpBuae-r5VOH8HjDcqeM,933
12
- deezer_python_gql/generated/base_client.py,sha256=3i1HohVvdAJkG9gBraNo-ex2zjHFCzz5JTio7Yrl56o,12731
12
+ deezer_python_gql/generated/base_client.py,sha256=svV3GO0BVuLMn0_ecMgy0N3yXG0VfOXWBjO6-z-DcEc,13075
13
13
  deezer_python_gql/generated/base_model.py,sha256=S-phq2fzKu2Kuct1dUnbyvMPT5k7TsfqOkCf_3yZ19I,640
14
14
  deezer_python_gql/generated/bookmark_podcast_episode.py,sha256=qYVJJscm66dOlLZkY6Kcfng9wpZCd3dWwF3DW4NpX2I,773
15
15
  deezer_python_gql/generated/client.py,sha256=gObBPpPuFQPq8bm6-Q357IlMSXpLFiafSP84ZQ2kvTc,126448
@@ -73,8 +73,8 @@ deezer_python_gql/generated/search.py,sha256=grGxN8nxxoCA9vlAlh4r72QwaZIvjTiEVfr
73
73
  deezer_python_gql/generated/search_flows.py,sha256=0tD9TQCw0LH4khT53j_WhSl4Fip0cRH2_4lSDLzRRA4,1740
74
74
  deezer_python_gql/generated/unbookmark_podcast_episode.py,sha256=-GjprmbpIjzyTsx9ELneKG_TAas5fsMJgFUywuGo-VM,666
75
75
  deezer_python_gql/generated/update_playlist.py,sha256=L9w-b_8CLdsW4qwN0ZgcGuutyUhGQPRf9va1XlSwZhQ,534
76
- deezer_python_gql-0.13.1.dist-info/licenses/LICENSE,sha256=xx0jnfkXJvxRnG63LTGOxlggYnIysveWIZ6H3PNdCrQ,11357
77
- deezer_python_gql-0.13.1.dist-info/METADATA,sha256=OwCd15YpgNWW-_ecfqsunj8mZgQtf4cJlar84zrWq5s,13639
78
- deezer_python_gql-0.13.1.dist-info/WHEEL,sha256=aeYiig01lYGDzBgS8HxWXOg3uV61G9ijOsup-k9o1sk,91
79
- deezer_python_gql-0.13.1.dist-info/top_level.txt,sha256=Yf7lMr1RCsfdcASo4pLoZIzA5aTa-cqzUePMX-A0QOM,18
80
- deezer_python_gql-0.13.1.dist-info/RECORD,,
76
+ deezer_python_gql-0.13.3.dist-info/licenses/LICENSE,sha256=xx0jnfkXJvxRnG63LTGOxlggYnIysveWIZ6H3PNdCrQ,11357
77
+ deezer_python_gql-0.13.3.dist-info/METADATA,sha256=eT2LDpeakg8cn7QDdNnDIaPX34_a_29zrxaoSzRpkAY,13639
78
+ deezer_python_gql-0.13.3.dist-info/WHEEL,sha256=aeYiig01lYGDzBgS8HxWXOg3uV61G9ijOsup-k9o1sk,91
79
+ deezer_python_gql-0.13.3.dist-info/top_level.txt,sha256=Yf7lMr1RCsfdcASo4pLoZIzA5aTa-cqzUePMX-A0QOM,18
80
+ deezer_python_gql-0.13.3.dist-info/RECORD,,