diff --git a/src/player/CodecsComponent.cpp b/src/player/CodecsComponent.cpp index 7baec8c4..d32e2c2a 100644 --- a/src/player/CodecsComponent.cpp +++ b/src/player/CodecsComponent.cpp @@ -685,9 +685,9 @@ static Downloader::HeaderList getPlexHeaders() Downloader::HeaderList headers; QString auth = SystemComponent::Get().authenticationToken(); if (auth.size()) - headers.append({"X-Plex-Token", auth}); - headers.append({"X-Plex-Product", WITH_CODECS ? "Plex Media Player" : "openpmp"}); - headers.append({"X-Plex-Platform", "Konvergo"}); + headers.append(Downloader::Header{"X-Plex-Token", auth}); + headers.append(Downloader::Header{"X-Plex-Product", WITH_CODECS ? "Plex Media Player" : "openpmp"}); + headers.append(Downloader::Header{"X-Plex-Platform", "Konvergo"}); return headers; } diff --git a/src/player/CodecsComponent.h b/src/player/CodecsComponent.h index ff0a8b3d..0b39fe35 100644 --- a/src/player/CodecsComponent.h +++ b/src/player/CodecsComponent.h @@ -75,7 +75,8 @@ class Downloader : public QObject { Q_OBJECT public: - typedef QList> HeaderList; + typedef QPair Header; + typedef QList
HeaderList; explicit Downloader(QVariant userData, const QUrl& url, const HeaderList& headers, QObject* parent); Q_SIGNALS: void done(QVariant userData, bool success, const QByteArray& data);