1
0
Fork 0
mirror of https://github.com/HenkKalkwater/harbour-sailfin.git synced 2025-09-04 01:42:44 +00:00

Added debug page, fix RemoteImage on covers

This commit is contained in:
Chris Josten 2021-02-13 21:42:57 +01:00
parent eda4994aac
commit 5ddd5e8e2e
12 changed files with 112 additions and 123 deletions

View file

@ -77,6 +77,7 @@ public:
Q_PROPERTY(QString baseUrl MEMBER m_baseUrl READ baseUrl NOTIFY baseUrlChanged)
Q_PROPERTY(bool authenticated READ authenticated WRITE setAuthenticated NOTIFY authenticatedChanged)
Q_PROPERTY(QString userId READ userId NOTIFY userIdChanged)
Q_PROPERTY(QJsonObject deviceProfile READ deviceProfile NOTIFY deviceProfileChanged)
Q_PROPERTY(QString version READ version)
/*QNetworkReply *handleRequest(QString path, QStringList sort, Pagination *pagination,
@ -145,6 +146,8 @@ signals:
void itemFetched(const QString &itemId, const QJsonObject &result);
void itemFetchFailed(const QString &itemId, const QNetworkReply::NetworkError error);
void deviceProfileChanged();
/**
* @brief onUserDataChanged Emitted when the user data of an item is changed on the server.
* @param itemId The id of the item being changed

View file

@ -265,6 +265,7 @@ void ApiClient::generateDeviceProfile() {
root["PlayableMediaTypes"] = playableMediaTypes;
m_deviceProfile = root;
emit deviceProfileChanged();
}
void ApiClient::defaultNetworkErrorHandler(QNetworkReply::NetworkError error) {

View file

@ -80,7 +80,7 @@ QJsonObject DeviceProfile::generateProfile() {
JsonPair("Type", "VideoAudio")
});
codecProfiles.append(QJsonObject {
JsonPair("Coded", "h264"),
JsonPair("Codec", "h264"),
JsonPair("Conditions", QJsonArray {
QJsonObject {
JsonPair("Property", "IsAnamorphic"),