Merge pull request #4740 from sobkas/small_fixes

Small fixes for podcasts
This commit is contained in:
John Maguire 2015-02-11 16:11:04 +01:00
commit f73d2f4d24
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_; }