Skip to content
Snippets Groups Projects
Commit 9fa5cb7f authored by gautham's avatar gautham
Browse files

first phase correction

parent fd591ce7
No related branches found
No related tags found
1 merge request!3file upload and youtube link downloader
......@@ -26,10 +26,10 @@ def upload_video():
url = request.form['video_url']
unique_id = str(uuid.uuid4())
ydl_opts = {
'format': 'bestvideo+bestaudio/best',
'outtmpl': os.path.join(SAVE_PATH, f'{unique_id}.%(ext)s'), # Use UUID for the filename
'merge_output_format': 'mp4',
'ffmpeg_location': r'C:\Program Files\ffmpeg-master-latest-win64-gpl-shared\bin' # Provide the ffmpeg path if necessary
'format': 'bestvideo+bestaudio/best',
'outtmpl': os.path.join(YOUTUBE_FOLDER, f'{unique_id}.%(ext)s'), # Use the correct YOUTUBE_FOLDER here
'merge_output_format': 'mp4',
'ffmpeg_location': r'C:\Program Files\ffmpeg-master-latest-win64-gpl-shared\bin' # Provide the ffmpeg path if necessary
}
try:
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment