edits
This commit is contained in:
parent
66cb5b1cfd
commit
5280d498e3
@ -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"]
|
@ -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"
|
||||
|
2
main.py
2
main.py
@ -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}")
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user