Small fix for checking playlist url (#1846)
authorZtripez <reg@otherland.nu>
Thu, 9 Jan 2025 19:13:06 +0000 (20:13 +0100)
committerGitHub <noreply@github.com>
Thu, 9 Jan 2025 19:13:06 +0000 (20:13 +0100)
music_assistant/helpers/playlists.py

index f1cbbfd3a0c3bfcac56e9131e0755ac7ceb579cb..3c1244568e063196341bc9c8d2589f6a114105d8 100644 (file)
@@ -169,7 +169,7 @@ async def fetch_playlist(
     ) or "#EXT-X-STREAM-INF:" in playlist_data:
         raise IsHLSPlaylist
 
-    if url.endswith((".m3u", ".m3u8")):
+    if urlparse(url).path.endswith((".m3u", ".m3u8")):
         playlist = parse_m3u(playlist_data)
     else:
         playlist = parse_pls(playlist_data)