From 5cd0b10b73cfb2fcc92fff8c29a6f8eb8e1ef158 Mon Sep 17 00:00:00 2001 From: Chris Josten Date: Tue, 2 Jan 2024 16:01:45 +0100 Subject: [PATCH] Make film posters 9:16 again This was broken due to the collectionType property of BaseItemDTO not being exposed to QML. Also update the changelog --- core/include/JellyfinQt/viewmodel/item.h | 3 +++ rpm/harbour-sailfin.changes | 4 +++- 2 files changed, 6 insertions(+), 1 deletion(-) diff --git a/core/include/JellyfinQt/viewmodel/item.h b/core/include/JellyfinQt/viewmodel/item.h index 562aa4e..06426c8 100644 --- a/core/include/JellyfinQt/viewmodel/item.h +++ b/core/include/JellyfinQt/viewmodel/item.h @@ -163,6 +163,7 @@ public: Q_PROPERTY(double primaryImageAspectRatio READ primaryImageAspectRatio NOTIFY primaryImageAspectRatioChanged) Q_PROPERTY(QStringList artists READ artists NOTIFY artistsChanged) Q_PROPERTY(QList artistItems READ artistItems NOTIFY artistItemsChanged); + Q_PROPERTY(QString collectionType READ collectionType NOTIFY collectionTypeChanged) // Why is this a QJsonObject? Well, because I couldn't be bothered to implement the deserialisations of // a QHash at the moment. Q_PROPERTY(QJsonObject imageTags READ imageTags NOTIFY imageTagsChanged) @@ -219,6 +220,7 @@ public: double primaryImageAspectRatio() const { return m_data->primaryImageAspectRatio().value_or(1.0); } QStringList artists() const { return m_data->artists(); } QList artistItems() const{ return this->m_artistItems; } + QString collectionType() const { return this->m_data->collectionType(); } QJsonObject imageTags() const { return m_data->imageTags(); } QStringList backdropImageTags() const { return m_data->backdropImageTags(); } QJsonObject imageBlurHashes() const { return m_data->imageBlurHashes(); } @@ -292,6 +294,7 @@ signals: void primaryImageAspectRatioChanged(double newPrimaryImageAspectRatio); void artistsChanged(const QStringList &newArtists); void artistItemsChanged(); + void collectionTypeChanged(); void imageTagsChanged(); void backdropImageTagsChanged(); void imageBlurHashesChanged(); diff --git a/rpm/harbour-sailfin.changes b/rpm/harbour-sailfin.changes index 9df3a05..a815143 100644 --- a/rpm/harbour-sailfin.changes +++ b/rpm/harbour-sailfin.changes @@ -22,7 +22,9 @@ - Navigation to artists of a song added when long-pressing a song or pressing the name on the now playing screen. - Bug fixes - - The album overview page should now behave correclty with an image with a non-square image + - The album overview page should now behave correctly with a non-square image + - Collections with films and series should now show the items in a 16:9 aspect ratio again + - Large lists with more than 100 items should no longer infinitly repeat the first 100 items * Wed Jul 20 2022 Chris Josten 0.4.2-1 - Bugfixes: