Skip to content
Snippets Groups Projects
Commit 9ca700da authored by David Trattnig's avatar David Trattnig
Browse files

Cleanup.

parent fbf3ad04
No related branches found
No related tags found
No related merge requests found
...@@ -21,10 +21,7 @@ ...@@ -21,10 +21,7 @@
import os, os.path import os, os.path
import ntpath
import logging
import random import random
import librosa
from accessify import private, protected from accessify import private, protected
from modules.scheduling.types import PlaylistType from modules.scheduling.types import PlaylistType
...@@ -65,6 +62,7 @@ class FallbackManager: ...@@ -65,6 +62,7 @@ class FallbackManager:
config (AuraConfig): Holds the engine configuration config (AuraConfig): Holds the engine configuration
""" """
self.config = config self.config = config
self.logger = logger
self.mailer = AuraMailer(self.config) self.mailer = AuraMailer(self.config)
self.scheduler = scheduler self.scheduler = scheduler
self.logger = logger self.logger = logger
...@@ -223,13 +221,6 @@ class FallbackManager: ...@@ -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
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment