Commit 1219122a authored by David Trattnig's avatar David Trattnig
Browse files

Cleanup.

parent 49149ba3
......@@ -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
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment