From e5501fb8593d9a3e6a062291035ac7341b2e85c8 Mon Sep 17 00:00:00 2001
From: Ludwig Lehnert <mail@ludwig-lehnert.de>
Date: Sun, 16 Feb 2025 09:22:53 +0100
Subject: [PATCH] fau.tv changed some things

---
 lib.py | 7 ++++---
 1 file changed, 4 insertions(+), 3 deletions(-)

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):