dmunozv04 / iSponsorBlockTV

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

Cannot find apple tv and invalid config #48

Closed wayou closed 1 year ago

wayou commented 1 year ago

I'm running scripts from https://github.com/dmunozv04/iSponsorBlockTV/issues/36#issuecomment-1313135843 without luck.

docker run --rm -it 
--network=host 
-v /volume1/docker/isponsorblocktv/config.json:/app/config.json 
-e PUID=0 
-e PGID=0 
-e iSPBTV_docker= 
ghcr.io/dmunozv04/isponsorblocktv:pr-37
--setup 

it shows 0 atv found:

Found 0 Apple TV(s) in config.json. Add more? (y/n) y
done adding

when done with the setup then I run with the following script:

docker pull ghcr.io/dmunozv04/isponsorblocktv
docker run -d \
--name iSponsorBlockTV \
--restart=unless-stopped \
--network=host \
-v /root/xxx/config.json:/app/config.json \
ghcr.io/dmunozv04/isponsorblocktv \
--debug

here's the output:

Using default tag: latest
latest: Pulling from dmunozv04/isponsorblocktv
Digest: sha256:0d02ef2e6ff32eed2...d5f751c858b3acf44e225e7b7389
Status: Image is up to date for ghcr.io/dmunozv04/isponsorblocktv:latest
ghcr.io/dmunozv04/isponsorblocktv:latest
1bcadd9cddf7eececed...e2ff2dda2b882ce0de50667b87792

and here's the log:

$ docker logs xxx
invalid config file, please run with --setup
invalid config file, please run with --setup
invalid config file, please run with --setup
invalid config file, please run with --setup
invalid config file, please run with --setup
invalid config file, please run with --setup
invalid config file, please run with --setup
invalid config file, please run with --setup
invalid config file, please run with --setup

but the atvremote scan does show my atv device:

/app # atvremote scan
Scan Results
========================================
       Name: atv
   Model/SW: AppleTV14,1, Unknown OS 16.4.1
    Address: 192.xx.115
        MAC: A8:51:xx:02:CB
 Deep Sleep: False
Identifiers:
 - A8:51:xx:02:CB
 - A851xx02CB
Services:
 - Protocol: AirPlay, Port: 7000, Credentials: None, Requires Password: False, Password: None, Pairing: Mandatory
 - Protocol: Companion, Port: 49165, Credentials: None, Requires Password: False, Password: None, Pairing: Mandatory
 - Protocol: RAOP, Port: 7000, Credentials: None, Requires Password: False, Password: None, Pairing: Mandatory

       Name: my macbook pro
   Model/SW: MacBookPro16,1, Unknown OS
    Address: 192.xx.204
        MAC: 14:7D:xx:CA:3A
 Deep Sleep: False
Identifiers:
 - 14:7D:xx:CA:3A
 - 147DDxxA3A
Services:
 - Protocol: AirPlay, Port: 7000, Credentials: None, Requires Password: False, Password: None, Pairing: Mandatory
 - Protocol: Companion, Port: 54280, Credentials: None, Requires Password: False, Password: None, Pairing: Unsupported
 - Protocol: RAOP, Port: 7000, Credentials: None, Requires Password: False, Password: None, Pairing: Mandatory

       Name: Living Room HomePod
   Model/SW: AudioAccessory6,1, Unknown OS 16.4.1
    Address: 192.xx.127
        MAC: AC:BC:xx:3B:7D
 Deep Sleep: False
Identifiers:
 - AC:BC:xx:3B:7D
 - ACBCxxD3B7D
Services:
 - Protocol: AirPlay, Port: 7000, Credentials: None, Requires Password: False, Password: None, Pairing: NotNeeded
 - Protocol: Companion, Port: 49154, Credentials: None, Requires Password: False, Password: None, Pairing: Unsupported
 - Protocol: RAOP, Port: 7000, Credentials: None, Requires Password: False, Password: None, Pairing: NotNeeded
oxixes commented 1 year ago

You seem to be using an old version of iSBTV, this is because that pr you specified is old (was the most recent one at the time of the comment).

Please, try running the latest version of iSBTV, and if that doesn't work, please follow these steps (you may need to change /bin/bash to /bin/sh) to manually obtain your atv credentials and write them in your config.json file.

dmunozv04 commented 1 year ago

As @oxixes says, if you have your atv credentials, you can edit the config file using the template one as an example. You most likely are missing this:"channel_whitelist": [] since it was added in an update not long ago

wayou commented 1 year ago

Thx you guys. Now it works. I tried the manual way to access the credential but don't know how to use with it. Cause I didn't know there's a template for the config 😄 .