def get_item_mapping(self, media_type: MediaType, key: str, name: str) -> ItemMapping:
"""Create a generic item mapping."""
return ItemMapping(
- media_type,
- key,
- self.instance_id,
- name,
- create_uri(media_type, self.instance_id, key),
- create_sort_name(self.name),
+ media_type=media_type,
+ item_id=key,
+ provider=self.instance_id,
+ name=name,
+ uri=create_uri(media_type, self.instance_id, key),
+ sort_name=create_sort_name(self.name),
)
async def _get_tidal_session(self) -> TidalSession:
track_class = AlbumTrack
else:
track_class = Track
-
track = track_class(
item_id=track_id,
provider=self.instance_id,
"name": "Tidal",
"description": "Support for the Tidal streaming provider in Music Assistant.",
"codeowners": ["@jozefKruszynski"],
- "requirements": ["git+https://github.com/jozefKruszynski/python-tidal.git@refs/heads/album-type-with-fix"],
+ "requirements": ["tidalapi==0.7.2"],
"documentation": "https://github.com/orgs/music-assistant/discussions/1201",
"multi_instance": true
}
faust-cchardet>=2.1.18
git+https://github.com/MarvinSchenkel/pytube.git
git+https://github.com/gieljnssns/python-radios.git@main
-git+https://github.com/jozefKruszynski/python-tidal.git@refs/heads/album-type-with-fix
ifaddr==0.2.0
mashumaro==3.8.1
memory-tempfile==2.2.3
python-slugify==8.0.1
shortuuid==1.0.11
soco==0.29.1
+tidalapi==0.7.2
unidecode==1.3.6
uvloop==0.17.0
xmltodict==0.13.0