diff --git a/Dockerfile b/Dockerfile index ae9529e7..fa1b4c73 100644 --- a/Dockerfile +++ b/Dockerfile @@ -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 \ diff --git a/routes/v1/media/download.py b/routes/v1/media/download.py index 55e417da..872d145c 100644 --- a/routes/v1/media/download.py +++ b/routes/v1/media/download.py @@ -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) @@ -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 \ No newline at end of file + return str(e), "/v1/media/download", 500