DavidCombei commited on
Commit
942ad85
1 Parent(s): b28f253

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +4 -0
app.py CHANGED
@@ -71,6 +71,10 @@ def download_audio_from_youtube(youtube_url, output_path='.', cookies_file='cook
71
  'prefer_ffmpeg': True,
72
  }
73
 
 
 
 
 
74
  if cookies_file:
75
  ydl_opts['cookiefile'] = cookies_file
76
 
 
71
  'prefer_ffmpeg': True,
72
  }
73
 
74
+ cookies_content = os.getenv('COOKIES_CONTENT')
75
+ with open('cookies.txt', 'w') as file:
76
+ file.write(cookies_content)
77
+
78
  if cookies_file:
79
  ydl_opts['cookiefile'] = cookies_file
80