From 8ea3359730add58105943a4647404ff5b2d82137 Mon Sep 17 00:00:00 2001 From: rdiaz738 Date: Thu, 6 Mar 2025 18:29:06 -0800 Subject: [PATCH] Fix for 605 and 607 --- app/ytdl.py | 2 +- ui/src/app/app.component.sass | 10 +++++++++- 2 files changed, 10 insertions(+), 2 deletions(-) diff --git a/app/ytdl.py b/app/ytdl.py index b8fd72e..a5c8304 100644 --- a/app/ytdl.py +++ b/app/ytdl.py @@ -232,7 +232,7 @@ class DownloadQueue: if self.config.DOWNLOAD_MODE == 'sequential': self.seq_lock = asyncio.Lock() elif self.config.DOWNLOAD_MODE == 'limited': - self.semaphore = asyncio.Semaphore(self.config.MAX_CONCURRENT_DOWNLOADS) + self.semaphore = asyncio.Semaphore(int(self.config.MAX_CONCURRENT_DOWNLOADS)) self.done.load() diff --git a/ui/src/app/app.component.sass b/ui/src/app/app.component.sass index d5e5a3f..265fdf7 100644 --- a/ui/src/app/app.component.sass +++ b/ui/src/app/app.component.sass @@ -99,7 +99,15 @@ td .modal-header border-bottom: 1px solid #eee + .modal-body textarea.form-control resize: vertical - + +.add-url + display: inline-flex + align-items: center + justify-content: center + + .spinner-border + margin-right: 0.5rem