summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorbrent s <r00t@square-r00t.net>2018-08-07 10:53:24 -0400
committerbrent s <r00t@square-r00t.net>2018-08-07 10:53:24 -0400
commite0ed3346aafb98f128bd0ca4beaead9849a354ef (patch)
tree038132d369e9d09c7f1ca89a8e73e5076f4c1244
parentd817c8bc31af69dfd4e58eb3136b2a85282814fa (diff)
parenta613cbe2203692324f8a7b7f98375e1b7b1d945e (diff)
downloadPodloader-e0ed3346aafb98f128bd0ca4beaead9849a354ef.tar.xz
Merge branch 'master' of square-r00t.net:podloader
-rwxr-xr-xpodloader.py3
1 files changed, 2 insertions, 1 deletions
diff --git a/podloader.py b/podloader.py
index fb0efbb..b780687 100755
--- a/podloader.py
+++ b/podloader.py
@@ -158,7 +158,8 @@ def confArgs(conf, args):
exit('ERROR: We cannot seem to locate a FLAC to convert. Try using the -f/--file argument.')
magic_file = magic.open(magic.MAGIC_MIME)
magic_file.load()
- if not magic_file.file(conf['episode']['raw']) == 'audio/x-flac; charset=binary':
+ if magic_file.file(conf['episode']['raw']) not in ('audio/x-flac; charset=binary',
+ 'audio/flac; charset=binary'):
exit('ERROR: Your FLAC file does not seem to actually be FLAC.')
conf['flac'] = {}
conf['flac']['samples'] = subprocess.check_output(['metaflac',