lexicon-python 0.1.0__tar.gz → 0.1.1__tar.gz
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.
- {lexicon_python-0.1.0/src/lexicon_python.egg-info → lexicon_python-0.1.1}/PKG-INFO +1 -1
- {lexicon_python-0.1.0 → lexicon_python-0.1.1}/pyproject.toml +1 -1
- {lexicon_python-0.1.0 → lexicon_python-0.1.1}/src/lexicon/lexicon.py +9 -3
- {lexicon_python-0.1.0 → lexicon_python-0.1.1/src/lexicon_python.egg-info}/PKG-INFO +1 -1
- {lexicon_python-0.1.0 → lexicon_python-0.1.1}/tests/test_lexicon.py +1 -1
- {lexicon_python-0.1.0 → lexicon_python-0.1.1}/LICENSE +0 -0
- {lexicon_python-0.1.0 → lexicon_python-0.1.1}/README.md +0 -0
- {lexicon_python-0.1.0 → lexicon_python-0.1.1}/setup.cfg +0 -0
- {lexicon_python-0.1.0 → lexicon_python-0.1.1}/src/lexicon/__init__.py +0 -0
- {lexicon_python-0.1.0 → lexicon_python-0.1.1}/src/lexicon_python.egg-info/SOURCES.txt +0 -0
- {lexicon_python-0.1.0 → lexicon_python-0.1.1}/src/lexicon_python.egg-info/dependency_links.txt +0 -0
- {lexicon_python-0.1.0 → lexicon_python-0.1.1}/src/lexicon_python.egg-info/requires.txt +0 -0
- {lexicon_python-0.1.0 → lexicon_python-0.1.1}/src/lexicon_python.egg-info/top_level.txt +0 -0
|
@@ -134,18 +134,24 @@ class LexiconClient:
|
|
|
134
134
|
def get_playlist_by_path(
|
|
135
135
|
self,
|
|
136
136
|
playlist_path: Sequence[str],
|
|
137
|
-
playlist_type:
|
|
137
|
+
playlist_type: int,
|
|
138
138
|
*,
|
|
139
139
|
timeout: Optional[int] = None,
|
|
140
140
|
) -> dict | None:
|
|
141
141
|
"""
|
|
142
142
|
Get a playlist from the Lexicon library by its folder path.
|
|
143
143
|
Via ``/v1/playlist-by-path`` endpoint.
|
|
144
|
+
|
|
145
|
+
playlist_path:
|
|
146
|
+
Sequence of folder/playlist names from the root.
|
|
147
|
+
E.g. ``["Genres", "Drum & Bass", "Dancefloor"]``.
|
|
148
|
+
|
|
149
|
+
playlist_type:
|
|
150
|
+
``1=Folder``, ``2=Playlist``, ``3=Smartlist``.
|
|
144
151
|
"""
|
|
145
152
|
endpoint = self._build_url("/v1/playlist-by-path")
|
|
146
153
|
params: list[tuple[str, object]] = [("path", part) for part in playlist_path]
|
|
147
|
-
|
|
148
|
-
params.append(("type", playlist_type))
|
|
154
|
+
params.append(("type", playlist_type))
|
|
149
155
|
|
|
150
156
|
try:
|
|
151
157
|
response = requests.get(
|
|
@@ -149,7 +149,7 @@ class LexiconApiTests(unittest.TestCase):
|
|
|
149
149
|
return DummyErrorResponse(error_payload)
|
|
150
150
|
|
|
151
151
|
with patch("lexicon.lexicon.requests.get", fake_get):
|
|
152
|
-
playlist = self.client.get_playlist_by_path(playlist_path)
|
|
152
|
+
playlist = self.client.get_playlist_by_path(playlist_path, playlist_type=2)
|
|
153
153
|
|
|
154
154
|
self.assertIsNone(playlist)
|
|
155
155
|
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
{lexicon_python-0.1.0 → lexicon_python-0.1.1}/src/lexicon_python.egg-info/dependency_links.txt
RENAMED
|
File without changes
|
|
File without changes
|
|
File without changes
|