pyatv: atvscript playing is facing an exception "app is not supported"
Just installed via pip install pyatv
scanning is working fine.
Now I want to see what’s currently playing
So while executing atvscript -s 192.168.178.27 playing
I’m facing following error:
{
"result": "failure",
"datetime": "2021-12-06T13:33:35.612050+01:00",
"exception": "app is not supported",
"stacktrace": "Traceback (most recent call last):\n File \"/Library/Frameworks/Python.framework/Versions/3.9/lib/python3.9/site-packages/pyatv/scripts/atvscript.py\", line 302, in appstart\n print(args.output(await _handle_command(args, abort_sem, loop)), flush=True)\n File \"/Library/Frameworks/Python.framework/Versions/3.9/lib/python3.9/site-packages/pyatv/scripts/atvscript.py\", line 198, in _handle_command\n return await _run_command(atv, args, abort_sem, loop)\n File \"/Library/Frameworks/Python.framework/Versions/3.9/lib/python3.9/site-packages/pyatv/scripts/atvscript.py\", line 205, in _run_command\n return output_playing(await atv.metadata.playing(), atv.metadata.app)\n File \"/Library/Frameworks/Python.framework/Versions/3.9/lib/python3.9/site-packages/pyatv/core/facade.py\", line 193, in app\n return self.relay(\"app\")\n File \"/Library/Frameworks/Python.framework/Versions/3.9/lib/python3.9/site-packages/pyatv/core/relayer.py\", line 82, in relay\n instance = self._find_instance(\n File \"/Library/Frameworks/Python.framework/Versions/3.9/lib/python3.9/site-packages/pyatv/core/relayer.py\", line 106, in _find_instance\n raise exceptions.NotSupportedError(f\"{target} is not supported\")\npyatv.exceptions.NotSupportedError: app is not supported\n"
}
further notice: while executing atvscript -s 192.168.178.27 playing
ATV is displaying a pair code, haven’t expected this too.
About this issue
- Original URL
- State: closed
- Created 3 years ago
- Comments: 18 (9 by maintainers)
You need to go to the AirPlay menu on your Apple TV and change so that anyone on the same network is allowed to connect.