From c489d1929931bdf19ec3eacfb1e38c0eff111231 Mon Sep 17 00:00:00 2001 From: Frank Date: Fri, 1 Nov 2019 23:00:28 +0100 Subject: [PATCH] Update radiorec.py Add content Type for aac --- radiorec.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/radiorec.py b/radiorec.py index 9ec4129..8f6ca68 100755 --- a/radiorec.py +++ b/radiorec.py @@ -75,6 +75,8 @@ def record_worker(stoprec, streamurl, target_dir, args): content_type = conn.getheader('Content-Type') if(content_type == 'audio/mpeg'): filename += '.mp3' + elif(content_type == 'application/aacp' or content_type == 'audio/aacp'): + filename += '.aac' elif(content_type == 'application/ogg' or content_type == 'audio/ogg'): filename += '.ogg' elif(content_type == 'audio/x-mpegurl'):