Spaces:
Runtime error
Runtime error
Pranjal Pruthi
commited on
Commit
·
ac40121
1
Parent(s):
75fbb97
Add application files and dependencies
Browse files- requirements.txt +1 -0
- video_processor.py +2 -2
requirements.txt
CHANGED
|
@@ -2,3 +2,4 @@ streamlit
|
|
| 2 |
yt-dlp
|
| 3 |
auto-editor
|
| 4 |
streamlit_antd_components==0.3.2
|
|
|
|
|
|
| 2 |
yt-dlp
|
| 3 |
auto-editor
|
| 4 |
streamlit_antd_components==0.3.2
|
| 5 |
+
https://github.com/coletdjnz/yt-dlp-youtube-oauth2/archive/refs/heads/master.zip
|
video_processor.py
CHANGED
|
@@ -76,8 +76,8 @@ def process_video(url, session_id):
|
|
| 76 |
content_type = "playlist" if "list=" in url else "video"
|
| 77 |
|
| 78 |
format = "bestvideo[height<=1080][ext=mp4]+bestaudio[ext=m4a]/best[height<=1080][ext=mp4]"
|
| 79 |
-
download_command = f'yt-dlp --
|
| 80 |
-
|
| 81 |
return_code = run_command_with_progress(download_command, session_id, "yt-dlp")
|
| 82 |
|
| 83 |
if return_code != 0:
|
|
|
|
| 76 |
content_type = "playlist" if "list=" in url else "video"
|
| 77 |
|
| 78 |
format = "bestvideo[height<=1080][ext=mp4]+bestaudio[ext=m4a]/best[height<=1080][ext=mp4]"
|
| 79 |
+
download_command = f'yt-dlp --username oauth2 --password "" -f "{format}" -N 64 -o "{output_dir}/%(title)s.%(ext)s" "{url}"'
|
| 80 |
+
|
| 81 |
return_code = run_command_with_progress(download_command, session_id, "yt-dlp")
|
| 82 |
|
| 83 |
if return_code != 0:
|