diff --git a/lib.py b/lib.py index 612a9cf..c942025 100644 --- a/lib.py +++ b/lib.py @@ -153,17 +153,18 @@ def download_media(media_id: str, outfile_path: str): cookie_args.append('--cookie') cookie_args.append(f'{key}={value}') - status = subprocess.call(['curl', '-o', outfile_path, url] + cookie_args) + status = subprocess.call( + ['curl', '-f', '-o', outfile_path, url] + cookie_args) return status == 0 def download_playlist(playlist_url: str, outfile_path: str): - subprocess.run([ + subprocess.call([ 'ffmpeg', '-i', playlist_url, '-c', 'copy', outfile_path, - ], stdout=subprocess.DEVNULL, stderr=subprocess.STDOUT) + ]) def download_clip(clip_id: str, outfile_path: str):