feat: dodanie mechanizmu limitu odtworzeń (TTL) w kolejce oraz konfiguracji w UI i na Discordzie
This commit is contained in:
5 files changed
+218
-9
No files matched your search
@@ -51,6 +51,7 @@ class YTDLSource(discord.PCMVolumeTransformer):
|
||||
self.id = uuid.uuid4().hex # Unique track identifier
|
||||
self.duration = data.get('duration') # Duration in seconds
|
||||
self.elapsed = 0.0 # Elapsed time in seconds
|
||||
self.plays_left = data.get('plays_left', None) # Remaining plays in queue
|
||||
|
||||
def read(self):
|
||||
data = super().read()
|
||||
|
||||
Reference in new issue
Block a user