deezer-python 7.3.0__py3-none-any.whl → 7.4.0__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.
deezer/__init__.py CHANGED
@@ -15,7 +15,7 @@ from deezer.resources import (
15
15
  User,
16
16
  )
17
17
 
18
- __version__ = "7.3.0"
18
+ __version__ = "7.4.0"
19
19
  __all__ = [
20
20
  "Album",
21
21
  "Artist",
deezer/_mixin.py CHANGED
@@ -75,8 +75,9 @@ class DeezerMixin:
75
75
  if "id" not in result and resource_id is not None:
76
76
  result["id"] = resource_id
77
77
 
78
- if "type" in result and result["type"] in self.objects_types:
79
- object_class = self.objects_types[result["type"]]
78
+ resource_type_name = result.get("type")
79
+ if isinstance(resource_type_name, str) and resource_type_name in self.objects_types:
80
+ object_class = self.objects_types[resource_type_name]
80
81
  elif "type" in result or (not resource_type and "id" in result):
81
82
  object_class = self._resource_base_class
82
83
  elif resource_type:
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: deezer-python
3
- Version: 7.3.0
3
+ Version: 7.4.0
4
4
  Summary: A friendly wrapper library for the Deezer API
5
5
  Author-email: Bruno Alla <alla.brunoo@gmail.com>
6
6
  License-Expression: MIT
@@ -21,6 +21,7 @@ Classifier: Programming Language :: Python :: 3.11
21
21
  Classifier: Programming Language :: Python :: 3.12
22
22
  Classifier: Programming Language :: Python :: 3.13
23
23
  Classifier: Programming Language :: Python :: 3.14
24
+ Classifier: Programming Language :: Python :: 3.15
24
25
  Classifier: Topic :: Software Development :: Libraries
25
26
  Requires-Python: >=3.10
26
27
  Description-Content-Type: text/markdown
@@ -48,8 +49,8 @@ Dynamic: license-file
48
49
  <a href="https://github.com/astral-sh/ruff">
49
50
  <img src="https://img.shields.io/endpoint?url=https://raw.githubusercontent.com/astral-sh/ruff/main/assets/badge/v2.json" alt="Ruff">
50
51
  </a>
51
- <a href="https://github.com/pre-commit/pre-commit">
52
- <img src="https://img.shields.io/badge/pre--commit-enabled-brightgreen?logo=pre-commit&logoColor=white&style=flat-square" alt="pre-commit">
52
+ <a href="https://github.com/j178/prek">
53
+ <img src="https://img.shields.io/endpoint?url=https://raw.githubusercontent.com/j178/prek/master/docs/assets/badge-v0.json" alt="prek">
53
54
  </a>
54
55
  </p>
55
56
  <p align="center">
@@ -1,5 +1,5 @@
1
- deezer/__init__.py,sha256=ydHiQL-4BdOfDFdLMQEbFMOxsn5WIncR2RKs4kjr6e8,556
2
- deezer/_mixin.py,sha256=Q5B96yjP2_jnlMp0VSmK038CH72bvd57YTGeU8xbLAo,2822
1
+ deezer/__init__.py,sha256=tkR6gRLB6tAUx-r2lX2nOcN7LAw3zxqP62wzP-ht7zA,556
2
+ deezer/_mixin.py,sha256=-dPTsPxEFZIJ6Copyi5BKW6LyE6A2jirKzJxZs7v58I,2897
3
3
  deezer/auth.py,sha256=dtOC3_0tjtCPP8_5nFpsqDYDIsxfMlNW_0A2itQ9p5s,701
4
4
  deezer/client.py,sha256=SDKEeMG4NvzKOOxI5jtO7GueibmYCdhDXnUjOkS6w-8,22343
5
5
  deezer/dates.py,sha256=raTeUAAOkajl0TTzM2cupzieTY0amzTeZCaaT3gp_iU,648
@@ -35,8 +35,8 @@ deezer/resources/radio.py,sha256=moOdlSJABqCcluInvgbHSwIzSIhDvBQaVyDGdgeVr_0,805
35
35
  deezer/resources/resource.py,sha256=4ma_lH6S0ZljBQ24MNdOxotGJFL3rGThLSnea-RSweg,5259
36
36
  deezer/resources/track.py,sha256=e3DPTsYWq5yNCjMRQhGTrFQHfQUe3xn0mEVYbpL3O_0,1546
37
37
  deezer/resources/user.py,sha256=kCgMUEbKt1QJzzBEpYxPNM3IbojMlm1fYYTSgqa4Sug,6899
38
- deezer_python-7.3.0.dist-info/licenses/LICENSE.txt,sha256=lGqKEubFaPBoiJVRoHOxg1LYlte1e5kLoq6zWUSRQzQ,1054
39
- deezer_python-7.3.0.dist-info/METADATA,sha256=WAE62eDS85oKzo5OAUcMFIcon8b7nAPy2oAA2yLO8Bw,14059
40
- deezer_python-7.3.0.dist-info/WHEEL,sha256=aeYiig01lYGDzBgS8HxWXOg3uV61G9ijOsup-k9o1sk,91
41
- deezer_python-7.3.0.dist-info/top_level.txt,sha256=yEWpBI2w2sX3SpyAi-ZGzg-lpP8apYE6uEgvnnb7S44,7
42
- deezer_python-7.3.0.dist-info/RECORD,,
38
+ deezer_python-7.4.0.dist-info/licenses/LICENSE.txt,sha256=lGqKEubFaPBoiJVRoHOxg1LYlte1e5kLoq6zWUSRQzQ,1054
39
+ deezer_python-7.4.0.dist-info/METADATA,sha256=8C3mMEOyzf83i5u5HW7oYnyL9QuHVW_pRlg-py1I8rs,14094
40
+ deezer_python-7.4.0.dist-info/WHEEL,sha256=K260EYznzXsJYBQGqmI8VTxEdiZYNvDZwW9cBh9-_MA,91
41
+ deezer_python-7.4.0.dist-info/top_level.txt,sha256=yEWpBI2w2sX3SpyAi-ZGzg-lpP8apYE6uEgvnnb7S44,7
42
+ deezer_python-7.4.0.dist-info/RECORD,,
@@ -1,5 +1,5 @@
1
1
  Wheel-Version: 1.0
2
- Generator: setuptools (82.0.1)
2
+ Generator: setuptools (83.0.0)
3
3
  Root-Is-Purelib: true
4
4
  Tag: py3-none-any
5
5