From: Guillaume Pellerin Date: Sat, 23 Aug 2025 12:12:20 +0000 (+0200) Subject: fix channel.sync when not relaying, add current media logging X-Git-Url: https://git.parisson.com/?a=commitdiff_plain;h=4b1c6851e0e18fae7a26550e23ee18713914ce08;p=deefuzzer.git fix channel.sync when not relaying, add current media logging --- diff --git a/deefuzzer/station.py b/deefuzzer/station.py index 07f9c01..2c377ff 100644 --- a/deefuzzer/station.py +++ b/deefuzzer/station.py @@ -632,6 +632,7 @@ class Station(Thread): else: media = self.playlist[self.id] self.id = (self.id + 1) % self.lp + self._info('Playing media: ' + media) self.q.get(1) try: @@ -982,6 +983,8 @@ class Station(Thread): try: # Send the chunk to the stream self.channel.send(self.chunk) + if not self.relay_mode: + self.channel.sync() self.is_alive = True except: self._err('could not send the buffer') @@ -996,6 +999,8 @@ class Station(Thread): self.channel.set_metadata({'song': self.song, 'charset': 'utf8', }) self._info('channel restarted') self.channel.send(self.chunk) + if not self.relay_mode: + self.channel.sync() self.is_alive = True except: self._err('could not send data after restarting the channel')