CrendKing / mpv-twitch-chat

Show Twitch chat messages as subtitles when watching Twitch VOD with mpv.
MIT License
89 stars 4 forks source link

scipt-opts: error converting value 'false' for key 'ignore_sub' #5

Closed sbstratos79 closed 3 years ago

sbstratos79 commented 3 years ago

The script is working fine but it's throwing errors for the script-opts file.

[mpv_twitch_chat] Error: Can't convert 'true' to boolean!

[mpv_twitch_chat] script-opts/mpv_twitch_chat.conf:1 error converting value 'true' for key 'show_name'

[mpv_twitch_chat] Error: Can't convert 'true' to boolean!

[mpv_twitch_chat] script-opts/mpv_twitch_chat.conf:2 error converting value 'true' for key 'color'

[mpv_twitch_chat] Error: Can't convert 'false' to boolean!

[mpv_twitch_chat] script-opts/mpv_twitch_chat.conf:3 error converting value 'false' for key 'ignore_sub'
CrendKing commented 3 years ago

Show me your mpv_twitch_chat.conf. I suspect you are using string where it should be boolean.

sbstratos79 commented 3 years ago

I copied the options from main.lua and just changed the values.

mpv_twitch_chat.txt

CrendKing commented 3 years ago

Oh, you can't do that. You must use yes/no for config. true/false are for Lua script.

sbstratos79 commented 3 years ago

I see. Thanks. It's working now. I will close the issue.