webosbrew / youtube-webos

YouTube app for webOS without ads
GNU General Public License v3.0
580 stars 42 forks source link
webos

youtube-webos

YouTube App with extended functionalities

Configuration Screen Segment Skipped

Features

Note: Configuration screen can be opened by pressing 🟩 GREEN button on the remote.

Pre-requisites

Installation

Configuration

Configuration screen can be opened by pressing 🟩 GREEN button on the remote.

Autostart

In order to autostart an application the following command needs to be executed via SSH or Telnet:

luna-send-pub -n 1 'luna://com.webos.service.eim/addDevice' '{"appId":"youtube.leanback.v4","pigImage":"","mvpdIcon":""}'

This will make "YouTube AdFree" display as an eligible input application (next to HDMI/Live TV, etc...), and, if it was the last selected input, it will be automatically launched when turning on the TV.

This will also greatly increase startup performance, since it will be runnning constantly in the background, at the cost of increased idle memory usage. (so far, relatively unnoticable in normal usage)

In order to disable autostart run this:

luna-send-pub -n 1 'luna://com.webos.service.eim/deleteDevice' '{"appId":"youtube.leanback.v4"}'

Building

git clone https://github.com/webosbrew/youtube-webos.git
cd youtube-webos

# Install dependencies (need to do this only when updating local repository / package.json is changed)
npm install

npm run build && npm run package

Development TV setup

These instructions use the webOS CLI tools. See https://webostv.developer.lge.com/develop/tools/cli-introduction for more information.

Configuring webOS CLI tools with Developer Mode App

This is partially based on https://webostv.developer.lge.com/develop/getting-started/developer-mode-app.

ares-setup-device -a webos -i "username=prisoner" -i "privatekey=webos_rsa" -i "passphrase=PASSPHRASE" -i "host=TV_IP" -i "port=9922"

Configuring webOS CLI tools with Homebrew Channel / root

ares-setup-device -a webos -i "username=root" -i "privatekey=id_rsa" -i "passphrase=SSH_KEY_PASSPHRASE" -i "host=TV_IP" -i "port=22"

Installation

npm run deploy

Launching

npm run launch

To jump immediately into some specific video use:

npm run launch -- -p '{"contentTarget":"v=F8PGWLvn1mQ"}'