Jeffgold commited on
Commit
3866bdc
·
1 Parent(s): 823a43f

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +2 -1
app.py CHANGED
@@ -50,7 +50,8 @@ def create_master_playlist(output_paths):
50
  for path in output_paths:
51
  f.write(f"#EXT-X-STREAM-INF:BANDWIDTH={1000*1000},RESOLUTION={path.stem.split('_')[-1]}\n")
52
  f.write(f"{path.name}\n")
53
- return [{'name': path.stem, 'url': f"{path.name}"} for path in output_paths]
 
54
 
55
  def convert_video(video_file, quality, aspect_ratio, video_url):
56
  input_path = get_input_path(video_file, video_url)
 
50
  for path in output_paths:
51
  f.write(f"#EXT-X-STREAM-INF:BANDWIDTH={1000*1000},RESOLUTION={path.stem.split('_')[-1]}\n")
52
  f.write(f"{path.name}\n")
53
+ return master_playlist_path # make sure this is a single Path object
54
+
55
 
56
  def convert_video(video_file, quality, aspect_ratio, video_url):
57
  input_path = get_input_path(video_file, video_url)