This commit is contained in:
t0is 2025-03-09 15:26:17 +01:00
parent 66cb5b1cfd
commit 5280d498e3
3 changed files with 4 additions and 3 deletions

View File

@ -22,6 +22,7 @@ RUN curl -L https://github.com/lay295/TwitchDownloader/releases/download/1.55.2/
# Copy application code, the entrypoint script, and channels.json
COPY main.py .
COPY channels.json .
COPY cookies.txt .
# Default command
CMD ["python", "-u", "main.py"]

View File

@ -17,8 +17,8 @@ for channel in channels:
"environment": [
f"CHANNEL_NAME={channel['name']}",
f"CHANNEL_LANGUAGE={channel['language']}",
"TIMEDELTA_DAYS=5",
"TIMEDELTA_DAYS_EXACT=false",
"TIMEDELTA_DAYS=6",
"TIMEDELTA_DAYS_EXACT=true",
"CLIP_CREATE_FROM_CHAT=false",
"TWITCH_CLIENT_ID=a0fuj6tm5ct79clvim9816orphqkov",
"TWITCH_CLIENT_SECRET=h7whj3yspxgj1909sgcafx6iz1p1es"

View File

@ -127,7 +127,7 @@ def download_vod(vod_url, output_filename):
if os.path.exists(output_filename):
print(f"{output_filename} already exists. Skipping download.")
return
command = ["yt-dlp", "-o", output_filename, vod_url]
command = ["yt-dlp", "--cookies", "cookies.txt", "-o", output_filename, vod_url]
subprocess.run(command, check=True)
print(f"Downloaded VOD to {output_filename}")