Eisa01 / mpv-scripts

This repository contain scripts I have made for mpv media player...
BSD 2-Clause "Simplified" License
504 stars 35 forks source link

Prepare for shared-script-properties removal #101

Closed dyphire closed 9 months ago

dyphire commented 9 months ago

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 https://github.com/mpv-player/mpv/pull/12456

Eisa01 commented 9 months ago

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

dyphire commented 9 months ago

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 commented 9 months ago

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