Skip to content
Snippets Groups Projects
Commit 66f4548a authored by Chris Pastl's avatar Chris Pastl
Browse files

fix: calc loading timeout from timeslot end

parent 5a94587c
No related branches found
No related tags found
1 merge request!40Fix retry connect stream
Pipeline #8025 failed
...@@ -329,7 +329,8 @@ class Player: ...@@ -329,7 +329,8 @@ class Player:
item.play.set_loading(chosen_channel) item.play.set_loading(chosen_channel)
self.logger.info(SU.pink(msg)) self.logger.info(SU.pink(msg))
is_ready = item.play.channel.load(uri, timeout=item.duration, metadata=metadata) timeout = item.playlist.timeslot.end - SU.timestamp()
is_ready = item.play.channel.load(uri, timeout=timeout, metadata=metadata)
if is_ready: if is_ready:
item.play.set_ready() item.play.set_ready()
......
  • @chrizz maybe it's some misunderstanding from my side, but why are you calculating the timeslot end? Shouldn't the re-tries only happen until the end of the playlist item?

0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment