reformat
This commit is contained in:
@ -59,12 +59,13 @@ class Radio(FastAPI):
|
|||||||
|
|
||||||
async def on_start(self) -> None:
|
async def on_start(self) -> None:
|
||||||
logging.info("radio: Initializing")
|
logging.info("radio: Initializing")
|
||||||
thread = threading.Thread(target=asyncio.run, args=(self.radio_util.load_playlist(),))
|
thread = threading.Thread(
|
||||||
|
target=asyncio.run, args=(self.radio_util.load_playlist(),)
|
||||||
|
)
|
||||||
thread.start()
|
thread.start()
|
||||||
# await self.radio_util.load_playlist()
|
# await self.radio_util.load_playlist()
|
||||||
await self.radio_util._ls_skip()
|
await self.radio_util._ls_skip()
|
||||||
|
|
||||||
|
|
||||||
async def radio_skip(
|
async def radio_skip(
|
||||||
self, data: ValidRadioNextRequest, request: Request
|
self, data: ValidRadioNextRequest, request: Request
|
||||||
) -> JSONResponse:
|
) -> JSONResponse:
|
||||||
|
Reference in New Issue
Block a user