Jeffgold commited on
Commit
8c0054e
·
1 Parent(s): d7f009b

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +1 -1
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?s3://{AWS_S3_BUCKET}')
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