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:
parent
eeb9183909
commit
d685b48ec1
504 changed files with 62190 additions and 41202 deletions
|
@ -35,6 +35,7 @@
|
|||
#include <QString>
|
||||
#include <optional>
|
||||
|
||||
#include "JellyfinQt/dto/playbackorder.h"
|
||||
#include "JellyfinQt/dto/playmethod.h"
|
||||
#include "JellyfinQt/dto/repeatmode.h"
|
||||
#include "JellyfinQt/support/jsonconv.h"
|
||||
|
@ -54,7 +55,8 @@ public:
|
|||
bool isPaused,
|
||||
bool isMuted,
|
||||
PlayMethod playMethod,
|
||||
RepeatMode repeatMode
|
||||
RepeatMode repeatMode,
|
||||
PlaybackOrder playbackOrder
|
||||
);
|
||||
|
||||
PlayerStateInfo(const PlayerStateInfo &other);
|
||||
|
@ -162,6 +164,22 @@ public:
|
|||
void setRepeatMode(RepeatMode newRepeatMode);
|
||||
|
||||
|
||||
PlaybackOrder playbackOrder() const;
|
||||
|
||||
void setPlaybackOrder(PlaybackOrder newPlaybackOrder);
|
||||
|
||||
/**
|
||||
* @brief Gets or sets the now playing live stream identifier.
|
||||
*/
|
||||
QString liveStreamId() const;
|
||||
/**
|
||||
* @brief Gets or sets the now playing live stream identifier.
|
||||
*/
|
||||
void setLiveStreamId(QString newLiveStreamId);
|
||||
bool liveStreamIdNull() const;
|
||||
void setLiveStreamIdNull();
|
||||
|
||||
|
||||
protected:
|
||||
std::optional<qint64> m_positionTicks = std::nullopt;
|
||||
bool m_canSeek;
|
||||
|
@ -173,6 +191,8 @@ protected:
|
|||
QString m_mediaSourceId;
|
||||
PlayMethod m_playMethod;
|
||||
RepeatMode m_repeatMode;
|
||||
PlaybackOrder m_playbackOrder;
|
||||
QString m_liveStreamId;
|
||||
|
||||
private:
|
||||
// Private constructor which generates an invalid object, for use withing PlayerStateInfo::fromJson();
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue