mirror of
https://github.com/clementine-player/Clementine
synced 2024-12-16 19:31:02 +01:00
Merge pull request #4740 from sobkas/small_fixes
Small fixes for podcasts
This commit is contained in:
commit
f73d2f4d24
@ -103,6 +103,7 @@ void PodcastDeleter::AutoDelete() {
|
||||
timeout_ms = QDateTime::currentDateTime().toMSecsSinceEpoch();
|
||||
timeout_ms -= oldest_episode_time.toMSecsSinceEpoch();
|
||||
timeout_ms = (delete_after_secs_ * kMsecPerSec) - timeout_ms;
|
||||
qLog(Info) << "Timeout for autodelete set to:" << timeout_ms <<"ms";
|
||||
if (timeout_ms >= 0) {
|
||||
auto_delete_timer_->setInterval(timeout_ms);
|
||||
} else {
|
||||
|
@ -49,7 +49,7 @@ Task::Task(PodcastEpisode episode, QFile* file, PodcastBackend* backend)
|
||||
connect(repl.get(), SIGNAL(finished()), SLOT(finishedInternal()));
|
||||
connect(repl.get(), SIGNAL(downloadProgress(qint64, qint64)),
|
||||
SLOT(downloadProgressInternal(qint64, qint64)));
|
||||
emit ProgressChanged(episode_, PodcastDownload::Downloading, 0);
|
||||
emit ProgressChanged(episode_, PodcastDownload::Queued, 0);
|
||||
}
|
||||
|
||||
PodcastEpisode Task::episode() const { return episode_; }
|
||||
|
Loading…
Reference in New Issue
Block a user