dmunozv04 / iSponsorBlockTV

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

why? what happend? #56

Closed Yumega closed 9 months ago

Yumega commented 10 months ago

my docker system support host mode

docker run -d \ 
--name=iSponsorBlockTV \ 
--restart=unless-stopped \
 --network=host \ 
 -v /opt/iSponsorBlockTV/config.json:/app/config.json \ 
-e PUID=0
-e PGID=0
ghcr.io/dmunozv04/isponsorblocktv 
--setup

get error stderr: EOFError: EOF when reading a line image

dmunozv04 commented 10 months ago

Are you running docker in a non-interactive terminal? That could break some stuff. If you want, you can test the v2 branch, brand new. Use these instructions to use the v2 branch

Yumega commented 10 months ago

still get the same thing never work, the container auto stop ,found 0 device

dmunozv04 commented 10 months ago

@Yumega 0 devices found means that you haven’t added any. Please use the configurator as described on the v2 guide to add devices

Yumega commented 10 months ago

@dmunozv04 really don't know how to use the textual the configurator😂 it's nice you can make a tutorial step by step. I only know how to deploy docker container, don't know other things

dmunozv04 commented 10 months ago

@Yumega It’s already nicely explained on the doc. Just run the docker command and it should open

Yumega commented 10 months ago

@dmunozv04 does it need install python on the system?

dmunozv04 commented 10 months ago

@Yumega no, just run the command and it should work. Append --setup to the command you ran earlier that gave you the no devices found error or --setup-cli to run the cli configurator

dmunozv04 commented 9 months ago

@Yumega did it work correctly?

Yumega commented 9 months ago

@Yumega did it work correctly?

Doesn’t work. Still same problem

dmunozv04 commented 9 months ago

@Yumega I've posted a new version. Please check it out and let me know if it fixes your issues

Yumega commented 9 months ago

@dmunozv04

docker run -d \
--name iSponsorBlockTV \
--restart=unless-stopped \
-v /opt/iSponsorBlockTV:/app/data \
ghcr.io/dmunozv04/isponsorblocktv

I got error

stdout: Could not load config file
stdout: Blank config file created
stdout: No devices found, please add at least one device
stdout: Exiting in 10 seconds...
stdout: Could not load config file
stdout: Blank config file created
stdout: No devices found, please add at least one device
stdout: Exiting in 10 seconds...

do I need creat a config.json in /opt/iSponsorBlockTV?

dmunozv04 commented 9 months ago

You need to run the configurator first. This should be the command with your config directory mounted.

docker run --rm -it \
--name iSponsorBlockTV \
--net=host \ # Remove line on windows and macOS
-v /opt/iSponsorBlockTV:/app/data \
ghcr.io/dmunozv04/isponsorblocktv \
--setup
Yumega commented 9 months ago

@dmunozv04

I use openwrt with docker function after I run the configurator first

docker run --rm -it \
--name iSponsorBlockTV \
--net=host \
-v /opt/iSponsorBlockTV:/app/data \
ghcr.io/dmunozv04/isponsorblocktv \
--setup

I found /app/data/ still empty there is nothing inside.

then I run

docker run -d \
--name iSponsorBlock \
--restart=unless-stopped \
-v /opt/iSponsorBlockTV:/app/data \
ghcr.io/dmunozv04/isponsorblocktv

I still get

stdout: Could not load config file
stdout: Blank config file created
stdout: No devices found, please add at least one device
stdout: Exiting in 10 seconds...
dmunozv04 commented 9 months ago

Did the command I sent on the previous comment open a configurator window for you to enter some data? If not, try the text-based configurator, it should avoid some issues with the other configurator

docker run --rm -it \
--name iSponsorBlockTV \
--net=host \ # Remove line on windows and macOS
-v /opt/iSponsorBlockTV:/app/data \
ghcr.io/dmunozv04/isponsorblocktv \
--setup-cli
Yumega commented 9 months ago

@dmunozv04

lol, yes It should run in TTYD with the code

docker run --rm -it \
--net=host \
-v /opt/iSponsorBlockTV:/app/data \
ghcr.io/dmunozv04/isponsorblocktv \
--setup

now It open a window

image

but I don't know where to find the pairing code ,lan can't discover my atv. my atv ip is 192.168.11.8 my openwrt ip is 192.168.11.1

dmunozv04 commented 9 months ago

V2 has changed some stuff. You need to go into YouTube -> Settings -> Link with code. There you should get a 12 digit code to input

Yumega commented 9 months ago

@dmunozv04 seems it's successful now. I will test the result

Yumega commented 9 months ago

@dmunozv04 Thanks a lot, it works very well. it's very clean now. Thank you again very appreciate your help

dmunozv04 commented 9 months ago

That's great to hear, you're welcome