Tidalapi-official (#784)
authorJozef Kruszynski <60214390+jozefKruszynski@users.noreply.github.com>
Thu, 20 Jul 2023 14:23:01 +0000 (16:23 +0200)
committerGitHub <noreply@github.com>
Thu, 20 Jul 2023 14:23:01 +0000 (16:23 +0200)
music_assistant/server/providers/tidal/__init__.py
music_assistant/server/providers/tidal/manifest.json
requirements_all.txt

index 9d101880a7e511da8f393b2519029774b3629c5b..ed98313dfc3bc118888964d7f0ba627a611a6a5b 100644 (file)
@@ -421,12 +421,12 @@ class TidalProvider(MusicProvider):
     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:
@@ -570,7 +570,6 @@ class TidalProvider(MusicProvider):
             track_class = AlbumTrack
         else:
             track_class = Track
-
         track = track_class(
             item_id=track_id,
             provider=self.instance_id,
index a197e1858cabf52f15601069852c04e74b6b9b0b..35dd81c4e4973918a7088467466d24de12bb7e3b 100644 (file)
@@ -4,7 +4,7 @@
   "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
 }
index 77bee0452d5dfe67ca764a05a31a2b10767bd2ab..298c9c1d42e97bdc82f4ab0fc1935f240937c455 100644 (file)
@@ -15,7 +15,6 @@ deezer-python==5.12.0
 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
@@ -28,6 +27,7 @@ pycryptodome==3.18.0
 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