fix yt-dlp error in prod
This commit is contained in:
parent
6e005d7398
commit
3ab5404fbe
1 changed files with 2 additions and 2 deletions
4
main.py
4
main.py
|
|
@ -198,7 +198,7 @@ def download_youtube_video(url, output_dir="."):
|
|||
cookies_env = os.environ.get("YOUTUBE_COOKIES")
|
||||
if cookies_env:
|
||||
print("🍪 Found YOUTUBE_COOKIES env var, creating cookies file inside container...")
|
||||
print(f"📄 YOUTUBE_COOKIES raw value:\n{cookies_env}")
|
||||
#print(f"📄 YOUTUBE_COOKIES raw value:\n{cookies_env}")
|
||||
try:
|
||||
with open(cookies_path, 'w') as f:
|
||||
f.write(cookies_env)
|
||||
|
|
@ -464,7 +464,7 @@ def get_viral_clips(transcript_result, video_duration):
|
|||
# We use gemini-1.5-flash which is the standard current fast model.
|
||||
# 'gemini-2.5-flash' does not exist in public API as of my knowledge cutoff or might be typo.
|
||||
# Reverting to 'gemini-1.5-flash' to be safe, or use 'gemini-1.5-pro' for better quality.
|
||||
model_name = 'gemini-1.5-flash'
|
||||
model_name = 'gemini-2.5-flash'
|
||||
|
||||
print(f"🤖 Initializing Gemini with model: {model_name}")
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue