RayPS / obs-spotify-mac

An OBS script to display Spotify track info on macOS
20 stars 1 forks source link

Failed to call script_properties #2

Closed danielpassos closed 1 year ago

danielpassos commented 1 year ago

I'm getting this error when I install the script

Mac OS: 13.1 (22C65) Chip: Apple M1 Pro OBS Version: 27.2.4 (64 Bits)

[spotify.lua] script_update
[spotify.lua] Failed to call script_properties for obs_lua_script_get_properties: spotify.lua:116: Error in obs_properties_add_text (arg 4), expected 'enum obs_text_type' got 'nil'
[spotify.lua] Failed to call script_properties for obs_lua_script_get_properties: spotify.lua:116: Error in obs_properties_add_text (arg 4), expected 'enum obs_text_type' got 'nil'
CleanShot 2023-01-01 at 12 30 25@2x
RayPS commented 1 year ago

Your OBS version is a little bit older, can you try upgrading your OBS to v28?

danielpassos commented 1 year ago

Gotcha! I will give it a try on OBS 28 but unfortunately I can't upgrade yet because some others plugins that I use (and need) don't support it yet. Thanks for the quick reply anyway!

danielpassos commented 1 year ago

Just wondering if that is not a good idea to provides a minimum OBS version requirement on the README

RayPS commented 1 year ago

There is a workaround for you, you can just remove this line of code: https://github.com/RayPS/obs-spotify-mac/blob/135fc058725c4c46fc9ed6891686941301084cf0/spotify.lua#L122 then it will work on OBS v27.

What this line do just add a text label above the option. (Which is a new text format introduced in V28) Without this line you are only missing a text label on the GUI which is fine and won't affect any functionality. Screenshot 2022-11-24 at 14 41 39@2x

RayPS commented 1 year ago

Let me know if that works and I will add this issue to the README as a reminder for OBS v27 users.

danielpassos commented 1 year ago

It works like a charm. Thanks!

danielpassos commented 1 year ago

PS: You should also add a way to people donate, like Buy me a coffee or something like that.

RayPS commented 1 year ago

Thank you! I will also add paypal.me/rayps to the README.