Error "Radio doesn\'t have more candidates" auto close radio generator

This commit is contained in:
localhost_frssoft 2022-11-10 23:21:56 +03:00
parent 5f08977faa
commit 522a6e36b8

View File

@ -148,6 +148,8 @@ def radio_get_track(radio_session_id):
return
if isinstance(radio_context, str):
logger.error(radio_context)
if radio_context == "Radio doesn't have more candidates":
radio_event_gen.clear()
return
if radio_context.get('error'):
logger.error(radio_context.get('error'))