Jeffgold commited on
Commit
9556f2c
·
1 Parent(s): 1828f72

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?http://{AWS_S3_BUCKET}.s3.amazonaws.com/{Path(path).stem}')
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?s3://{AWS_S3_BUCKET}/{input_filename}/{res}/{Path(path).stem.split("_")[2]}')
88
  f.write(content + '\n')
89
  return master_playlist_path
90