Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
@@ -79,7 +79,7 @@ def prepare_media(source_path_or_url: os.PathLike,
|
|
79 |
# try:
|
80 |
with open(log_file, 'w') as lf:
|
81 |
# Try alternative
|
82 |
-
print(f"Failed with PyTube, error: {e}. Trying yt-dlp...")
|
83 |
audio_file = './downloaded/yt_audio'
|
84 |
# subprocess.run(['yt-dlp', '-x', source_path_or_url, '-f', 'bestaudio',
|
85 |
# '-o', audio_file, '--audio-format', 'mp3', '--restrict-filenames',
|
|
|
79 |
# try:
|
80 |
with open(log_file, 'w') as lf:
|
81 |
# Try alternative
|
82 |
+
# print(f"Failed with PyTube, error: {e}. Trying yt-dlp...")
|
83 |
audio_file = './downloaded/yt_audio'
|
84 |
# subprocess.run(['yt-dlp', '-x', source_path_or_url, '-f', 'bestaudio',
|
85 |
# '-o', audio_file, '--audio-format', 'mp3', '--restrict-filenames',
|