Skip to content

rk0n/yttv

Repository files navigation

YTTV

Python API for YouTubeTV (https://youtube.com/tv)

Installation

poetry install
wget https://github.com/gorhill/uBlock/releases/download/1.42.4/uBlock0_1.42.4.firefox.signed.xpi
poetry run python yttv.py

Testing

poetry run pytest

docker

docker-compose

chmod +x fifo.sh
./fifo.sh
docker-compose up -d
cat .yttv_config/sockets/yttv-client.0.audio
cat .yttv_config/sockets/yttv-client.1.audio
Connect to YtTV using the YouTube App on Android/iOS -> Connect using TV Code
Get TV Code from docker logs output

Todo

0.0.1

  • Get YouTube TV Page
  • Go to Settings
  • Get TV Code
  • Add script block
  • Get multiple TV Code
  • Persistence
  • Dockerize
  • Add automated XPI Download
  • Add Tests
  • Add Docs
  • Add Versioning
  • Make python package

0.0.X

  • Enhance Tests
  • Enhance crawling template creation (Maybe use accesible_name)
  • Enhance speed (check if site is fully rendered)
  • Enhance dockerfile (check if site is fully rendered)

0.1.X

  • Think about new options and add them