git.iko.soy/maciek134/podphoenix
on main help sign in
Fix unable to play some downloaded episodes
80998ecDaniel Kutka
backend/modules/Podbird/filemanager.cpp+2−1
@@ -19,6 +19,7 @@
19#include <QFile>
19#include <QFile>
20#include <QDebug>
20#include <QDebug>
21#include <QDir>
21#include <QDir>
22+#include <QUrl>
22#include <QStandardPaths>
23#include <QStandardPaths>
23
24
24#include "filemanager.h"
25#include "filemanager.h"
@@ -56,7 +57,7 @@ QString FileManager::saveDownload(QString origPath) {
56 QString filePath;
57 QString filePath;
57 int attempts = 0;
58 int attempts = 0;
58 do {
59 do {
59− filePath = m_podcastDir + QDir::separator() + fi.fileName();
60+ filePath = m_podcastDir + QDir::separator() + QUrl::fromPercentEncoding(fi.fileName().toUtf8());
60 if (attempts > 0) {
61 if (attempts > 0) {
61 filePath += "." + QString::number(attempts);
62 filePath += "." + QString::number(attempts);
62 }
63 }