Skip to content

Commit

Permalink
Merge pull request #12 from lastsamurai26/patch-2
Browse files Browse the repository at this point in the history
Update radiorec.py
  • Loading branch information
beedaddy authored Nov 7, 2019
2 parents 1453a7e + c489d19 commit e3fa69e
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions radiorec.py
Original file line number Diff line number Diff line change
Expand Up @@ -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'):
Expand Down

0 comments on commit e3fa69e

Please # to comment.