summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorbrent s <bts@square-r00t.net>2018-06-02 13:01:17 -0400
committerbrent s <bts@square-r00t.net>2018-06-02 13:01:17 -0400
commita613cbe2203692324f8a7b7f98375e1b7b1d945e (patch)
treea603503bea98a8d65f2b411fe9695e7fc719807c
parenta137dc395ccaa8f7d2003790f877777324716a41 (diff)
downloadPodloader-a613cbe2203692324f8a7b7f98375e1b7b1d945e.tar.xz
fixing 5.29 -> 5.30 python-magic
-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',