diff --git a/modules/scheduling/fallback_manager.py b/modules/scheduling/fallback_manager.py index 87057bfd997ccb8640f2cb1b117077f9687deb22..072a31a35fd4631cdb4514287790cd276aa31d3f 100644 --- a/modules/scheduling/fallback_manager.py +++ b/modules/scheduling/fallback_manager.py @@ -21,10 +21,7 @@ import os, os.path -import ntpath -import logging import random -import librosa from accessify import private, protected from modules.scheduling.types import PlaylistType @@ -65,6 +62,7 @@ class FallbackManager: config (AuraConfig): Holds the engine configuration """ self.config = config + self.logger = logger self.mailer = AuraMailer(self.config) self.scheduler = scheduler self.logger = logger @@ -223,13 +221,6 @@ class FallbackManager: - def get_track_duration(self, file): - """ - Returns the length of the given audio file. - """ - y, sr = librosa.load(file) - duration = librosa.get_duration(y=y, sr=sr) - return duration