Spaces:
Paused
Paused
Update app.py
Browse files
app.py
CHANGED
@@ -84,7 +84,7 @@ def create_master_playlist(output_paths, input_filename):
|
|
84 |
# read the .m3u8 file and replace relative links with absolute links
|
85 |
with open(path, 'r') as playlist_file:
|
86 |
content = playlist_file.read()
|
87 |
-
content = content.replace('.ts', f'.ts?
|
88 |
f.write(content + '\n')
|
89 |
return master_playlist_path
|
90 |
|
|
|
84 |
# read the .m3u8 file and replace relative links with absolute links
|
85 |
with open(path, 'r') as playlist_file:
|
86 |
content = playlist_file.read()
|
87 |
+
content = content.replace('.ts', f'.ts?http://{AWS_S3_BUCKET}.s3.amazonaws.com/{Path(path).stem}')
|
88 |
f.write(content + '\n')
|
89 |
return master_playlist_path
|
90 |
|