do not try to store dynamic urls in last played
authorMarcel van der Veldt <m.vanderveldt@outlook.com>
Tue, 14 May 2024 22:58:44 +0000 (00:58 +0200)
committerMarcel van der Veldt <m.vanderveldt@outlook.com>
Tue, 14 May 2024 22:58:44 +0000 (00:58 +0200)
music_assistant/server/controllers/music.py

index b2c9ba4658b2bf55ee6a9476bd5548982c04b3e0..a236c9d151a277b03041c8522fa820f92d4480d8 100644 (file)
@@ -605,6 +605,11 @@ class MusicController(CoreController):
         else:
             prov_key = provider_instance_id_or_domain
 
+        # do not try to store dynamic urls (e.g. with auth token etc.),
+        # stick with plaun uri/urls only
+        if "http" in item_id and "?" in item_id:
+            return
+
         # update generic playlog table
         await self.database.insert(
             DB_TABLE_PLAYLOG,