Update radiorec.py
Add content Type for aac
This commit is contained in:
parent
1453a7efbc
commit
c489d19299
1 changed files with 2 additions and 0 deletions
|
@ -75,6 +75,8 @@ def record_worker(stoprec, streamurl, target_dir, args):
|
||||||
content_type = conn.getheader('Content-Type')
|
content_type = conn.getheader('Content-Type')
|
||||||
if(content_type == 'audio/mpeg'):
|
if(content_type == 'audio/mpeg'):
|
||||||
filename += '.mp3'
|
filename += '.mp3'
|
||||||
|
elif(content_type == 'application/aacp' or content_type == 'audio/aacp'):
|
||||||
|
filename += '.aac'
|
||||||
elif(content_type == 'application/ogg' or content_type == 'audio/ogg'):
|
elif(content_type == 'application/ogg' or content_type == 'audio/ogg'):
|
||||||
filename += '.ogg'
|
filename += '.ogg'
|
||||||
elif(content_type == 'audio/x-mpegurl'):
|
elif(content_type == 'audio/x-mpegurl'):
|
||||||
|
|
Loading…
Reference in a new issue