Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion Dockerfile
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
# Base image
FROM python:3.9-slim
FROM python:3.11-slim

# Install system dependencies, build tools, and libraries
RUN apt-get update && apt-get install -y --no-install-recommends \
Expand Down
4 changes: 2 additions & 2 deletions routes/v1/media/download.py
Original file line number Diff line number Diff line change
Expand Up @@ -100,7 +100,7 @@ def download_media(job_id, data):
# Configure yt-dlp options
ydl_opts = {
'format': 'best', # Download best quality
'outtmpl': os.path.join(temp_dir, '%(title)s.%(ext)s'),
'outtmpl': os.path.join(temp_dir, '%(title)s.50s.%(ext)s'),
'quiet': True,
'no_warnings': True,
'download': data.get('cloud_upload', True)
Expand Down Expand Up @@ -286,4 +286,4 @@ def download_media(job_id, data):

except Exception as e:
logger.error(f"Job {job_id}: Error during download process - {str(e)}")
return str(e), "/v1/media/download", 500
return str(e), "/v1/media/download", 500