From a672d273d7ec15a76adc811fa32a5d95ed8b03bb Mon Sep 17 00:00:00 2001 From: ArabCoders Date: Sun, 3 Nov 2024 18:23:00 +0300 Subject: [PATCH] Stringify path for replacement. --- app/player/Playlist.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/player/Playlist.py b/app/player/Playlist.py index d6132f7d..50983b91 100644 --- a/app/player/Playlist.py +++ b/app/player/Playlist.py @@ -24,7 +24,7 @@ class Playlist: raise Exception(f"File '{rFile}' does not exist.") return Response(status=302, headers={ - 'Location': f"{self.url}player/playlist/{quote(possibleFile.replace(download_path, '').strip('/'))}.m3u8" + 'Location': f"{self.url}player/playlist/{quote(str(possibleFile).replace(download_path, '').strip('/'))}.m3u8" }) try: