Retain extra url keys (#979)
authorOzGav <gavnosp@hotmail.com>
Sat, 30 Dec 2023 01:46:29 +0000 (12:46 +1100)
committerGitHub <noreply@github.com>
Sat, 30 Dec 2023 01:46:29 +0000 (02:46 +0100)
I’m not sure if there is a downside to retaining the extra info but we have two open issues which will be resolved if we do so…?

music_assistant/server/providers/url/__init__.py

index 5f626b1969f3583884613b846d0e46758b5f1add..05a569f4934b33887840be92aa72a7e20f87e4f8 100644 (file)
@@ -161,13 +161,6 @@ class URLProvider(MusicProvider):
             url = playlist[0]
             item_id = item_id_or_url
             self._full_url[item_id] = url
-        elif "?" in item_id_or_url or "&" in item_id_or_url:
-            # store the 'real' full url to be picked up later
-            # this makes sure that we're not storing any temporary data like auth keys etc
-            # a request for an url mediaitem always passes here first before streamdetails
-            url = item_id_or_url
-            item_id = item_id_or_url.split("?")[0].split("&")[0]
-            self._full_url[item_id] = url
         else:
             url = self._full_url.get(item_id_or_url, item_id_or_url)
             item_id = item_id_or_url