Fix unable to play some downloaded episodes
commit80998ec3c85d3b2b7a7dfce6ac17c3074e693449
authorDaniel Kutka <dano.kutka@gmail.com>
dateSat 15 Aug 2020, 21:53 (6 years ago)
parentc27f9d1
backend/modules/Podbird/filemanager.cpp+2−1
@@ -19,6 +19,7 @@
1919#include <QFile>
2020#include <QDebug>
2121#include <QDir>
22+#include <QUrl>
2223#include <QStandardPaths>
2324
2425#include "filemanager.h"
@@ -56,7 +57,7 @@ QString FileManager::saveDownload(QString origPath) {
5657 QString filePath;
5758 int attempts = 0;
5859 do {
59− filePath = m_podcastDir + QDir::separator() + fi.fileName();
60+ filePath = m_podcastDir + QDir::separator() + QUrl::fromPercentEncoding(fi.fileName().toUtf8());
6061 if (attempts > 0) {
6162 filePath += "." + QString::number(attempts);
6263 }