lexicon-python 0.5.0__py3-none-any.whl → 0.5.1__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.
- lexicon/resources/tracks.py +5 -1
- {lexicon_python-0.5.0.dist-info → lexicon_python-0.5.1.dist-info}/METADATA +1 -1
- {lexicon_python-0.5.0.dist-info → lexicon_python-0.5.1.dist-info}/RECORD +6 -6
- {lexicon_python-0.5.0.dist-info → lexicon_python-0.5.1.dist-info}/WHEEL +0 -0
- {lexicon_python-0.5.0.dist-info → lexicon_python-0.5.1.dist-info}/licenses/LICENSE +0 -0
- {lexicon_python-0.5.0.dist-info → lexicon_python-0.5.1.dist-info}/top_level.txt +0 -0
lexicon/resources/tracks.py
CHANGED
|
@@ -7,6 +7,7 @@ from typing import Optional, Sequence, Literal, Mapping, cast
|
|
|
7
7
|
|
|
8
8
|
from .base import Resource
|
|
9
9
|
from .tracks_types import (
|
|
10
|
+
TRACK_FIELDS,
|
|
10
11
|
TRACK_SOURCES,
|
|
11
12
|
FilterField,
|
|
12
13
|
SortInput,
|
|
@@ -431,8 +432,11 @@ class Tracks(Resource):
|
|
|
431
432
|
self._logger.warning("Skipping search: no valid filters remain.")
|
|
432
433
|
return None
|
|
433
434
|
|
|
435
|
+
# Return the filtered fields too, except filter-only ones such as fileType,
|
|
436
|
+
# which Lexicon rejects in `fields`.
|
|
434
437
|
filter_fields = cast(
|
|
435
|
-
list[TrackField],
|
|
438
|
+
list[TrackField],
|
|
439
|
+
[field for field in filter_payload if field in TRACK_FIELDS],
|
|
436
440
|
)
|
|
437
441
|
payload["filter"] = filter_payload
|
|
438
442
|
id_filter = filter_payload.get("id")
|
|
@@ -16,14 +16,14 @@ lexicon/resources/tag_categories.py,sha256=lpRfBEMkMvBtlENpgVP87dutDKYsYZK2w85_i
|
|
|
16
16
|
lexicon/resources/tag_categories_types.py,sha256=_MVMMfbZ8um4lUNbLIMsYR_bq6S7tLxQIjK1YMaJvb4,625
|
|
17
17
|
lexicon/resources/tags.py,sha256=uVDyphU2LNbGmOKPB3S7tHnONW7M_9ZEhm86uXCHy7w,8829
|
|
18
18
|
lexicon/resources/tags_types.py,sha256=i5AMNukPzONzxXLeFUVnPJmLHV13p9pYC7siyWu4wmc,810
|
|
19
|
-
lexicon/resources/tracks.py,sha256=
|
|
19
|
+
lexicon/resources/tracks.py,sha256=OhoVbacuOFaYKSg-2p-e4EFDyvbbbusgWXGOB81gkiw,47762
|
|
20
20
|
lexicon/resources/tracks_types.py,sha256=ou47AAgsdm7DHQnIZJtZ6ZkbyV0cK0J3LwGyW0oUt_0,32954
|
|
21
21
|
lexicon/tools/__init__.py,sha256=jniJDnb9RFx36H6ANreGwV9bibSZB3ADQimEsaXJ2Tw,44
|
|
22
22
|
lexicon/tools/playlists.py,sha256=WfrlTnQ8h5emhtVSXvnPEQBeCuKLG4MdSjZe_CXFNHY,5374
|
|
23
23
|
lexicon/tools/tempo.py,sha256=D4SnNHu-NqbvP6QLEQzAifhkRy2phzos6TwGMfQLeQ0,2684
|
|
24
24
|
lexicon/tools/tracks.py,sha256=ySFf9wV17NIcmoW_N3fzFgaHzSjMl69ObeDdkrfswMw,4141
|
|
25
|
-
lexicon_python-0.5.
|
|
26
|
-
lexicon_python-0.5.
|
|
27
|
-
lexicon_python-0.5.
|
|
28
|
-
lexicon_python-0.5.
|
|
29
|
-
lexicon_python-0.5.
|
|
25
|
+
lexicon_python-0.5.1.dist-info/licenses/LICENSE,sha256=SnZvUu04t9ENhnrmuLMoz2E6pAYcEIX8UGBl0P4D43c,1072
|
|
26
|
+
lexicon_python-0.5.1.dist-info/METADATA,sha256=PkHTmWmZDzYrwzL4BoIfTORlrv7OPLvY2y5W0OYv4cs,24446
|
|
27
|
+
lexicon_python-0.5.1.dist-info/WHEEL,sha256=mOdXR9C3wMVov7cSY8PY-XCzo3SmmWCHvGQr5csJoao,91
|
|
28
|
+
lexicon_python-0.5.1.dist-info/top_level.txt,sha256=Ry_712VYZowp819R6r0kTIdSPW_kSEKdC_k6MVSYvYo,8
|
|
29
|
+
lexicon_python-0.5.1.dist-info/RECORD,,
|
|
File without changes
|
|
File without changes
|
|
File without changes
|