Skip to content

Conversation

@dyphire
Copy link
Contributor

@dyphire dyphire commented Sep 22, 2023

mpv is about to remove shared-script-properties, which will cause utils.shared_script_property_set to be nil.
Check for it's existence before calling it.
Also fall back to user-data in case they aren't available anymore.
Ref mpv-player/mpv#12456

mpv is about to remove `shared-script-properties`, which will cause
`utils.shared_script_property_set` to be nil.
Check for it's existence before calling it.

also fall back to user-data in case they aren't available anymore.
@Eisa01
Copy link
Owner

Eisa01 commented Sep 22, 2023

Thanks @dyphire.
Is there any alternative to be considered so we don't lose the functionality?

@dyphire
Copy link
Contributor Author

dyphire commented Sep 22, 2023

Thanks @dyphire. Is there any alternative to be considered so we don't lose the functionality?

For users with mpv versions lower than 0.36.0, they can continue to use this property of shared-script-properties without being affected.
since then mpv 0.36.0, it is recommended that users use this property of user-data instead.

@Eisa01
Copy link
Owner

Eisa01 commented Sep 22, 2023

Perfect, this also includes the fixes for user-data.
Thank you very much

@Eisa01 Eisa01 merged commit 4b87382 into Eisa01:master Sep 22, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants