Merge pull request #12 from lastsamurai26/patch-2

Update radiorec.py
This commit is contained in:
Martin Brodbeck 2019-11-07 12:26:47 +01:00 committed by GitHub
commit e3fa69e0dd
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

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