diff --git a/app/ytdl.py b/app/ytdl.py index 9d23852..e32892e 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