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