1
0
Fork 0
mirror of https://github.com/HenkKalkwater/harbour-sailfin.git synced 2025-09-05 18:22:46 +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

@ -50,8 +50,12 @@ public:
TunerHostInfo(
bool importFavoritesOnly,
bool allowHWTranscoding,
bool allowFmp4TranscodingContainer,
bool allowStreamSharing,
qint32 fallbackMaxStreamingBitrate,
bool enableStreamLooping,
qint32 tunerCount
qint32 tunerCount,
bool ignoreDts
);
TunerHostInfo(const TunerHostInfo &other);
@ -112,6 +116,21 @@ public:
void setAllowHWTranscoding(bool newAllowHWTranscoding);
bool allowFmp4TranscodingContainer() const;
void setAllowFmp4TranscodingContainer(bool newAllowFmp4TranscodingContainer);
bool allowStreamSharing() const;
void setAllowStreamSharing(bool newAllowStreamSharing);
qint32 fallbackMaxStreamingBitrate() const;
void setFallbackMaxStreamingBitrate(qint32 newFallbackMaxStreamingBitrate);
bool enableStreamLooping() const;
void setEnableStreamLooping(bool newEnableStreamLooping);
@ -136,6 +155,11 @@ public:
void setUserAgentNull();
bool ignoreDts() const;
void setIgnoreDts(bool newIgnoreDts);
protected:
QString m_jellyfinId;
QString m_url;
@ -144,10 +168,14 @@ protected:
QString m_friendlyName;
bool m_importFavoritesOnly;
bool m_allowHWTranscoding;
bool m_allowFmp4TranscodingContainer;
bool m_allowStreamSharing;
qint32 m_fallbackMaxStreamingBitrate;
bool m_enableStreamLooping;
QString m_source;
qint32 m_tunerCount;
QString m_userAgent;
bool m_ignoreDts;
private:
// Private constructor which generates an invalid object, for use withing TunerHostInfo::fromJson();