1
0
Fork 0
mirror of https://github.com/HenkKalkwater/harbour-sailfin.git synced 2025-09-06 02:32:44 +00:00

[2/3] update openapi spec: generate code

This updates the openapi spec and invokes the code generator to update
to the Jellyfin 10.10.6 API.

A big motivation to do this was because some mandatory fields have been
made obsolete and are no longer included in responses. Sailfin tries to
deserialize these mandatory fields and fails deserializing. It was evident
in the list of sessions to control.

The failing was a bit too gracefully in my opinion, it did not even show
that an error occurred, nor was it logged anywhere. It took some time
to debug.
This commit is contained in:
Chris Josten 2025-03-13 02:39:07 +01:00
parent eeb9183909
commit d685b48ec1
504 changed files with 62190 additions and 41202 deletions

View file

@ -52,14 +52,18 @@ class UserConfiguration {
public:
UserConfiguration(
bool playDefaultAudioTrack,
bool displayMissingEpisodes,
bool displayMissingEpisodes,
QStringList groupedFolders,
SubtitlePlaybackMode subtitleMode,
bool displayCollectionsView,
bool enableLocalPassword,
bool enableLocalPassword,
QStringList orderedViews,
QStringList latestItemsExcludes,
QStringList myMediaExcludes,
bool hidePlayedInLatest,
bool rememberAudioSelections,
bool rememberSubtitleSelections,
bool enableNextEpisodeAutoPlay
bool enableNextEpisodeAutoPlay
);
UserConfiguration(const UserConfiguration &other);
@ -114,8 +118,6 @@ public:
QStringList groupedFolders() const;
void setGroupedFolders(QStringList newGroupedFolders);
bool groupedFoldersNull() const;
void setGroupedFoldersNull();
SubtitlePlaybackMode subtitleMode() const;
@ -136,22 +138,16 @@ public:
QStringList orderedViews() const;
void setOrderedViews(QStringList newOrderedViews);
bool orderedViewsNull() const;
void setOrderedViewsNull();
QStringList latestItemsExcludes() const;
void setLatestItemsExcludes(QStringList newLatestItemsExcludes);
bool latestItemsExcludesNull() const;
void setLatestItemsExcludesNull();
QStringList myMediaExcludes() const;
void setMyMediaExcludes(QStringList newMyMediaExcludes);
bool myMediaExcludesNull() const;
void setMyMediaExcludesNull();
bool hidePlayedInLatest() const;
@ -173,6 +169,17 @@ public:
void setEnableNextEpisodeAutoPlay(bool newEnableNextEpisodeAutoPlay);
/**
* @brief Gets or sets the id of the selected cast receiver.
*/
QString castReceiverId() const;
/**
* @brief Gets or sets the id of the selected cast receiver.
*/
void setCastReceiverId(QString newCastReceiverId);
bool castReceiverIdNull() const;
void setCastReceiverIdNull();
protected:
QString m_audioLanguagePreference;
@ -190,6 +197,7 @@ protected:
bool m_rememberAudioSelections;
bool m_rememberSubtitleSelections;
bool m_enableNextEpisodeAutoPlay;
QString m_castReceiverId;
private:
// Private constructor which generates an invalid object, for use withing UserConfiguration::fromJson();