diff --git a/python_apps/airtime_analyzer/airtime_analyzer/metadata_analyzer.py b/python_apps/airtime_analyzer/airtime_analyzer/metadata_analyzer.py index 4e4139be0..e6794fbc9 100644 --- a/python_apps/airtime_analyzer/airtime_analyzer/metadata_analyzer.py +++ b/python_apps/airtime_analyzer/airtime_analyzer/metadata_analyzer.py @@ -1,7 +1,6 @@ import time import datetime import mutagen -import magic # For MIME type detection from analyzer import Analyzer class MetadataAnalyzer(Analyzer): @@ -45,12 +44,9 @@ class MetadataAnalyzer(Analyzer): # Other fields for Airtime metadata["cueout"] = metadata["length"] - #Use the python-magic module to get the MIME type. + #Use the mutagen to get the MIME type. if audio_file.mime: metadata["mime"] = audio_file.mime[0] - else: - mime_magic = magic.Magic(mime=True) - metadata["mime"] = mime_magic.from_file(filename) #Try to get the number of channels if mutagen can... try: diff --git a/python_apps/airtime_analyzer/setup.py b/python_apps/airtime_analyzer/setup.py index 82c64d84c..a0dba0cfc 100644 --- a/python_apps/airtime_analyzer/setup.py +++ b/python_apps/airtime_analyzer/setup.py @@ -22,7 +22,6 @@ setup(name='airtime_analyzer', scripts=['bin/airtime_analyzer'], install_requires=[ 'mutagen', - 'python-magic', 'pika', 'nose', 'coverage',