Stringify path for replacement.
This commit is contained in:
parent
91c067acb3
commit
a672d273d7
1 changed files with 1 additions and 1 deletions
|
|
@ -24,7 +24,7 @@ class Playlist:
|
||||||
raise Exception(f"File '{rFile}' does not exist.")
|
raise Exception(f"File '{rFile}' does not exist.")
|
||||||
|
|
||||||
return Response(status=302, headers={
|
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:
|
try:
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue