write metadata tests; start source tests
This commit is contained in:
@@ -6,7 +6,6 @@ import signal
|
||||
import subprocess
|
||||
|
||||
import psutil
|
||||
import tzlocal
|
||||
from django.template.loader import render_to_string
|
||||
|
||||
from aircox.conf import settings
|
||||
@@ -17,7 +16,6 @@ from .sources import PlaylistSource, QueueSource
|
||||
|
||||
__all__ = ("Streamer",)
|
||||
|
||||
local_tz = tzlocal.get_localzone()
|
||||
logger = logging.getLogger("aircox")
|
||||
|
||||
|
||||
@@ -49,7 +47,9 @@ class Streamer:
|
||||
|
||||
self.id = self.station.slug.replace("-", "_")
|
||||
self.path = os.path.join(station.path, "station.liq")
|
||||
self.connector = Connector(os.path.join(station.path, "station.sock"))
|
||||
self.connector = connector or Connector(
|
||||
os.path.join(station.path, "station.sock")
|
||||
)
|
||||
self.init_sources()
|
||||
|
||||
@property
|
||||
|
||||
Reference in New Issue
Block a user