From 1219122a4bd74357bcea51920e3bf9a89e9d6933 Mon Sep 17 00:00:00 2001 From: David Trattnig <david.trattnig@o94.at> Date: Mon, 21 Sep 2020 21:25:06 +0200 Subject: [PATCH] Cleanup. --- modules/scheduling/fallback_manager.py | 11 +---------- 1 file changed, 1 insertion(+), 10 deletions(-) diff --git a/modules/scheduling/fallback_manager.py b/modules/scheduling/fallback_manager.py index 87057bfd..072a31a3 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 -- GitLab