-
Notifications
You must be signed in to change notification settings - Fork 68
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Fix LibraryItemState snake_case and camelCase inconsistency #470
Comments
Is not clear, both links references to the same file and line |
You are correct, I just fixed the link. Core LibraryItemState might not be fixable because this will trigger bad deserialization in apps like stremio-web which store locally a serialised version of the Libarary in one form or another |
ok, so a ticket must be created in that repo. Which other app might be impacted due to this change? |
We need to double check if this field is used in the API, if it is we cannot change it but we could add an alias. |
@elpiel this propery is used in the go server and must be named like that, |
We have 2 different ways of representing
video_id
- snake_case and camelCase, this should be fixed and aligned with coreIn core we now use
video_id
(snake_case) although all other fields are camelCase.core-web -
videoId
in CW LibraryItemState - https://github.com/Stremio/stremio-core-web/blob/936ab4116a5d071dc604a57b26e0a90a3e63a939/src/model/serialize_continue_watching_preview.rs#L106-L110core-web -
video_id
in Player LibraryItemState - https://github.com/Stremio/stremio-core-web/blob/af66b2eb6bd1aae35e18cdf66e70879100ee7fd5/src/model/serialize_player.rs#L67-L73Fix
LibraryItemState
(core
)snake_case
fieldFix the 2
LibraryItemState
incore-web
The text was updated successfully, but these errors were encountered: