Skip to content
This repository has been archived by the owner on Jun 1, 2022. It is now read-only.

Commit

Permalink
Fix method invocation ambiguity
Browse files Browse the repository at this point in the history
  • Loading branch information
dschmidt authored and mseeley committed Mar 23, 2021
1 parent 5d099a1 commit ae73e07
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 4 deletions.
6 changes: 3 additions & 3 deletions src/player/CodecsComponent.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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;
}

Expand Down
3 changes: 2 additions & 1 deletion src/player/CodecsComponent.h
Original file line number Diff line number Diff line change
Expand Up @@ -75,7 +75,8 @@ class Downloader : public QObject
{
Q_OBJECT
public:
typedef QList<QPair<QString, QString>> HeaderList;
typedef QPair<QString, QString> Header;
typedef QList<Header> HeaderList;
explicit Downloader(QVariant userData, const QUrl& url, const HeaderList& headers, QObject* parent);
Q_SIGNALS:
void done(QVariant userData, bool success, const QByteArray& data);
Expand Down

0 comments on commit ae73e07

Please sign in to comment.