Stringify path for replacement.

This commit is contained in:
ArabCoders 2024-11-03 18:23:00 +03:00
parent 91c067acb3
commit a672d273d7

View file

@ -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: