code refactoring, dependencies update

This commit is contained in:
2024-08-23 20:31:47 +02:00
parent 54771b2d78
commit 434efc79d8
8 changed files with 60 additions and 27 deletions

View File

@@ -64,7 +64,8 @@ func (m *MessageQueue) downloadConsumer() {
if p.Progress.Status != StatusCompleted {
if p.Livestream {
go p.Start() // livestreams have higher priorty and will ignore the queue
// livestreams have higher priorty and they ignore the semaphore
go p.Start()
} else {
p.Start()
}

View File

@@ -168,10 +168,6 @@ func (p *Process) Start() {
ETA: progress.Eta,
}
if p.Livestream {
p.Progress.Status = StatusLivestream
}
slog.Info("progress",
slog.String("id", p.getShortId()),
slog.String("url", p.Url),