Merge pull request #604 from eoredthar/bug-queue-doesnt-restore-when-container-restarted

Fix: Restore queue when container restarted from old queue file
This commit is contained in:
Alex 2025-03-06 08:35:03 +02:00 committed by GitHub
commit 071bb30d56
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -238,7 +238,7 @@ class DownloadQueue:
async def __import_queue(self):
for k, v in self.queue.saved_items():
await self.add(v.url, v.quality, v.format, v.folder, v.custom_name_prefix, v.playlist_strict_mode, v.playlist_item_limit)
await self.add(v.url, v.quality, v.format, v.folder, v.custom_name_prefix, getattr(v, 'playlist_strict_mode', False), getattr(v, 'playlist_item_limit', 0))
async def initialize(self):
log.info("Initializing DownloadQueue")