Browse Source

Fully encode URLs when loading files

Mark McDowall 7 years ago
parent
commit
9104c8d1d3
1 changed files with 1 additions and 1 deletions
  1. 1 1
      src/player/PlayerComponent.cpp

+ 1 - 1
src/player/PlayerComponent.cpp

@@ -306,7 +306,7 @@ void PlayerComponent::queueMedia(const QString& url, const QVariantMap& options,
     qurl.setHost(ConvertPlexDirectURL(host));
 
   QVariantList command;
-  command << "loadfile" << qurl.toString();
+  command << "loadfile" << qurl.toString(QUrl::FullyEncoded);
   command << "append-play"; // if nothing is playing, play it now, otherwise just enqueue it
 
   QVariantMap extraArgs;