google-tv
Play YouTube/Tubi content and fallback to Google TV global search for other streaming apps via ADB
- License 许可
- MIT
- 最近更新
- 2026-08-23
- Stars
- ★ 1
- Forks
- 0
01 前言 Front Matter
- name
- google-tv
- metadata
- { "openclaw": { "os": [ "darwin", "linux" ], "install": [ { "id": "brew-adb", "bins": [ "adb" ], "cask": "android-platform-tools", "kind": "brew", "label": "Install adb (android-platform-tools)" }, { "id": "brew-uv", "bins": [ "uv" ], "kind": "brew", "label": "Install uv", "formula": "uv" } ], "requires": { "bins": [ "adb", "uv" ] } } }
- description
- Play YouTube/Tubi content and fallback to Google TV global search for other streaming apps via ADB
02 资源文件 7
- 参考文档_meta.json624 B
- 参考文档CHANGELOG.md294 B
- 脚本google_tv_skill.py20.4 KB
- 脚本play_show_via_global_search.py10.7 KB
- 参考文档README.md2.7 KB
- 脚本skip-intro-monitor.sh406 B
- 脚本test_google_tv_skill.py19.9 KB
03 SKILL.md 正文
Chromecast with Google TV control
Use this skill when I ask to cast YouTube or Tubi video content, play or pause Chromecast media playback, check if the Chromecast is online, or launch episodic content in another streaming app via global search fallback.
Setup
This skill runs with uv and adb on PATH. No venv required.
- Ensure
uvandadbare available on PATH. - Use
./runas a convenience wrapper arounduv run google_tv_skill.py.
Capabilities
This skill provides a small CLI wrapper around ADB to control a Google TV device. It exposes the following subcommands:
- status: show adb devices output
- play <query_or_id_or_url>: play content via YouTube, Tubi, or global-search fallback.
- pause: send media pause
- resume: send media play
Usage examples
./run status --device 192.168.4.64 --port 5555
./run play "7m714Ls29ZA" --device 192.168.4.64 --port 5555
./run play "family guy" --app hulu --season 3 --episode 4 --device 192.168.4.64 --port 5555
./run pause --device 192.168.4.64 --port 5555
Device selection and env overrides
- You can pass --device (IP) and --port on the CLI.
- Alternatively, set CHROMECAST_HOST and CHROMECAST_PORT environment variables to override defaults.
- If you provide only --device or only --port, the script will use the cached counterpart when available; otherwise it will error.
- The script caches the last successful IP:PORT to
.last_device.jsonin the skill folder and will use that cache if no explicit device is provided. - If no explicit device is provided and no cache exists, the script will attempt ADB mDNS service discovery and use the first IP:PORT it finds.
- IMPORTANT: This skill does NOT perform any port probing or scanning. It will only attempt an adb connect to the explicit port provided or the cached port.
YouTube handling
- If you provide a YouTube video ID or URL, the skill will launch the YouTube app directly via an ADB intent restricted to the YouTube package.
- The skill attempts to resolve titles/queries to a YouTube video ID using the
yt-apiCLI (on PATH). If ID resolution fails, the skill will report failure. - You can override the package name with
YOUTUBE_PACKAGE(defaultcom.google.android.youtube.tv).
Tubi handling
- If you provide a Tubi https URL, the skill will send a VIEW intent with that URL (restricted to the Tubi package).
- If the canonical Tubi https URL is needed, the assistant can look it up via web_search and supply it to this skill.
- You can override the package name with
TUBI_PACKAGE(defaultcom.tubitv).
Global-search fallback for non-YouTube/Tubi
- If YouTube/Tubi resolution does not apply and you pass
--appwith another provider (for examplehulu,max,disney+), the skill uses a Google TV global-search fallback. - For this fallback, pass all three:
--app,--season, and--episode. - The fallback starts
android.search.action.GLOBAL_SEARCH, waits for the Series Overview UI, opens Seasons, picks season/episode, then confirmsOpen in <app>when available. - Hulu profile-selection logic is intentionally not handled here.
Pause / Resume
./run pause
./run resume
Dependencies
- The script uses only the Python standard library (no pip packages required).
- The scripts run through
uvto avoid PEP 668/system package constraints. - The script expects
adb,uv, andyt-apito be installed and available on PATH.
Caching and non-destructive defaults
- The script stores the last successful device (ip and port) in
.last_device.jsonin the skill folder. - It will not attempt port scanning; this keeps behavior predictable and avoids conflicts with Google's ADB port rotation.
Troubleshooting
- If adb connect fails, run
adb connect IP:PORTmanually from your host to verify the current port. - If adb connect is refused and you're running interactively, the script will prompt you for a new port and update
.last_device.jsonon success.
Implementation notes
- The skill CLI code lives in
google_tv_skill.pyin this folder. It uses subprocess calls toadbandyt-api, plus an internal global-search helper for fallback playback. - For Tubi URL discovery, the assistant can use web_search to find canonical Tubi pages and pass the https URL to the skill.
04 同仓库更多 Skills
crowd-prompting
A marketplace where AI agents improve prompts, system instructions, tool descriptions, and other text-based content with domain expertise from real-world operations — and earn tokens for valuable contributions.
dilemm-ai
Compete in DilemmAI, the prisoner's dilemma AI arena at dilemm.ai. Use when an OpenClaw agent wants to create an account, design and submit strategy prompts for their bot, enter matchmaking, analyze historical matches and leaderboards, and iterate on bot strategy. Requires headless browser automation (no API available yet).
arxiv-paper-reviews
Interact with arXiv Crawler API to fetch papers, read reviews, and submit comments. Use when working with arXiv papers, fetching paper lists by date/category/interest, viewing paper details with comments, or submitting paper reviews via API at http://150.158.152.82:8000.
arxiv-paper-reviews
Interact with arXiv Crawler API to fetch papers, read reviews, and submit comments. Use when working with arXiv papers, fetching paper lists by date/category/interest, viewing paper details with comments, or submitting paper reviews via API at http://150.158.152.82:8000.
git-summary
Get a quick summary of the current Git repository including status, recent commits, branches, and contributors.
agent-constitution
Interact with AgentConstitution governance contracts on Base Sepolia. Check compliance, read rules, log actions, query governance state.