Small fixes for podcasts

This commit is contained in:
Krzysztof Sobiecki 2015-02-06 20:30:16 +01:00
parent fbf22ccf3b
commit 9934efc76b
2 changed files with 2 additions and 1 deletions

View File

@ -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 {

View File

@ -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_; }