dmunozv04 / iSponsorBlockTV

SponsorBlock client for all YouTube TV clients.
GNU General Public License v3.0
2.21k stars 92 forks source link

Docker image no longer recognize my config.json #47

Closed L041S closed 1 year ago

L041S commented 1 year ago

Hello, I realized that since several days ads were not skipped anymore. I checked the container and saw that it crashed. When I try to launch I now got the message "invalid config file, please run with --setup"

Maybe it is related to a recent commit ?

Anyway, I tried to reconfigure it, with --setup but got

Found 1 Apple TV(s) in config.json. Add more? (y/n) Traceback (most recent call last): File "/app/main.py", line 3, in <module> helpers.app_start() File "/app/iSponsorBlockTV/helpers.py", line 43, in app_start config_setup.main(config, args.file, args.debug) File "/app/iSponsorBlockTV/config_setup.py", line 67, in main input("Found {} Apple TV(s) in config.json. Add more? (y/n) ".format(num_atvs)) EOFError: EOF when reading a line

oxixes commented 1 year ago

Did you type anything when it asked you yes or no? Or you simply hit enter?

You need to type n for no instead of just pressing enter.

And yes, it is related to a new commit, if the setup doesn't work just add "channel_whitelist": [] to the JSON config file.

L041S commented 1 year ago

Negative, I got the message as soon as I press enter when launching the container without the possibility to press n

oxixes commented 1 year ago

@dmunozv04 should be able to this this further, but it may be related to your setup not allowing user input. You can modify the config file manually if needed (although I told you what to add, you can look the config file template to get an idea of the structure).

dmunozv04 commented 1 year ago

It looks like you’re not running the setup in interactive mode, it requires specifying the -it flag like this:

docker run --rm -it \
--network=host \
-v /PATH_TO_YOUR_CONFIG.json:/app/config.json \
ghcr.io/dmunozv04/isponsorblocktv \
--setup

That should do the trick. Please let me know if that works

L041S commented 1 year ago

Thanks, it works ! I don’t know what changed and why I had to add the Apple TV again but everything is back on !