commit
e3fa69e0dd
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')
|
||||
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'):
|
||||
|
|
Loading…
Reference in a new issue