Spaces:
Paused
Paused
Update app.py
Browse files
app.py
CHANGED
|
@@ -43,7 +43,7 @@ def convert_video(video_file, quality, aspect_ratio, video_url):
|
|
| 43 |
file_extension = video_file.name.split(".")[-1]
|
| 44 |
|
| 45 |
# Define output file name
|
| 46 |
-
output_file_name = video_file.name[:-len(file_extension)] + ".m3u8"
|
| 47 |
|
| 48 |
input_path = video_file.name
|
| 49 |
|
|
@@ -56,7 +56,7 @@ def convert_video(video_file, quality, aspect_ratio, video_url):
|
|
| 56 |
file_extension = file_name.split(".")[-1]
|
| 57 |
|
| 58 |
# Define output file name
|
| 59 |
-
output_file_name = file_name[:-len(file_extension)] + ".m3u8"
|
| 60 |
|
| 61 |
# Download the file to the temporary directory
|
| 62 |
response = requests.get(video_url)
|
|
|
|
| 43 |
file_extension = video_file.name.split(".")[-1]
|
| 44 |
|
| 45 |
# Define output file name
|
| 46 |
+
output_file_name = video_file.name[:-len(file_extension) - 1] + ".m3u8"
|
| 47 |
|
| 48 |
input_path = video_file.name
|
| 49 |
|
|
|
|
| 56 |
file_extension = file_name.split(".")[-1]
|
| 57 |
|
| 58 |
# Define output file name
|
| 59 |
+
output_file_name = file_name[:-len(file_extension) - 1] + ".m3u8"
|
| 60 |
|
| 61 |
# Download the file to the temporary directory
|
| 62 |
response = requests.get(video_url)
|