← 返回
未分类 中文

ClawShorts

Block YouTube Shorts on Fire TV. Use when asked to check, manage, or configure YouTube Shorts limiting on Buck's Fire TV devices. Triggers on requests like "...
阻止 Fire TV 上的 YouTube Shorts。当被要求检查、管理或配置 Buck 的 Fire TV 设备上的 YouTube Shorts 限制时使用。触发于类似 ... 的请求。
cindulasai cindulasai 来源
未分类 clawhub v1.3.2 2 版本 100000 Key: 无需
★ 1
Stars
📥 490
下载
💾 1
安装
2
版本
#latest

概述

ClawShorts

YouTube Shorts limiter for Fire TV. Monitors watch time per device and auto-blocks when daily limit is reached.

Invocation

Primary entry point:

~/.openclaw/workspace/skills/clawshorts/scripts/clawshorts.sh <command>

Commands

CommandWhen to use
----------------------
statusCheck today's usage, remaining quota, daemon health
reset [IP]Reset today's counter (all devices or specific IP)
startStart the daemon if not running
stopStop the daemon
history [days]Show watch history (default 30 days)
logs [N]Show last N daemon log lines (default 50)
listList all configured devices with per-device config
setup [NAME]First-time setup for a new device
add [NAME]Add another Fire TV
connect Connect ADB to device + auto-detect screen
enable / disable Enable/disable a device
`config [show\get\set\reset]`View/set global or per-device config
detect Re-detect screen resolution via ADB, update DB

Detection Logic

Detection requires both conditions to be true simultaneously:

  1. Player width < 30% of screen width (configurable per-device)
  2. Aspect ratio < 1.3 (portrait — distinguishes Shorts from 16:9 landscape previews)
  • Poll interval: 3 seconds via ADB
  • Shorts: ~32% screen width, 9:16 portrait (ar ~0.56)
  • Regular video: ~100% screen width, 16:9 landscape (ar ~1.78)
  • Home/browse: no video active
  • Only actual Shorts playback counts toward limit

Configuration

All detection parameters are stored in SQLite with global defaults and per-device overrides.

Global defaults (shorts config):

keydefaultdescription
---------------------------
shorts_width_threshold0.30player width must be < this ratio of screen width
shorts_max_aspect_ratio1.3portrait if ar < this value
shorts_fallback_height_ratio0.4fallback: player height must exceed this ratio of screen height
shorts_delta_cap300max seconds accumulated per poll
default_screen_width1920fallback assumed screen width
default_screen_height1080fallback assumed screen height

Per-device overrides — any of the above can be set per-device in the devices table. NULL = use global default.

Config commands:

shorts config                    # show all global defaults
shorts config get <key>         # get a specific value
shorts config set <key> <value> # set global default
shorts config set <IP> <col> <value>  # set per-device override
shorts config reset <IP>        # clear per-device overrides
shorts detect <IP>              # re-detect screen via ADB

Data Locations

  • Database: ~/.clawshorts/clawshorts.db (SQLite)
  • config — global detection defaults
  • devices — per-device settings (IP, name, limit, screen size, thresholds)
  • daily_usage — daily watch time per device
  • Daemon log: ~/.clawshorts/daemon.log
  • LaunchAgent: ~/Library/LaunchAgents/com.fink.clawshorts.plist

Requirements

  • adb (Android platform tools)
  • Python 3
  • Fire TV with ADB debugging enabled
  • shorts symlink at /opt/homebrew/bin/shorts (optional)

⚠️ Security Notes

ADB has no built-in authentication. Only enable ADB Debugging on a trusted, password-protected home network. Never on public WiFi. Anyone on the same network with ADB enabled can connect to your Fire TV.

This tool only accepts private IP addresses (10.x.x.x, 172.16–31.x.x, 192.168.x.x). Public IPs are rejected to prevent accidental targeting of unrelated hosts.

版本历史

共 2 个版本

  • v1.3.2 当前
    2026-05-03 05:56 安全 安全
  • v1.0.4
    2026-03-30 23:59

安全检测

腾讯云安全 (Keen)

安全,无风险
查看报告

腾讯云安全 (Sanbu)

安全,无风险
查看报告

🔗 相关推荐

ai-agent

NextSteps

cindulasai
在智能体回复后添加上下文感知的下一步建议,生成可操作的后续跟进,从记忆中提取未完成任务,并包含创意...
★ 0 📥 527
it-ops-security

1password

steipete
设置和使用 1Password CLI (op)。适用于:安装 CLI、启用桌面应用集成、登录(单/多账户)、通过 op 读取/注入/运行密钥。
★ 53 📥 32,157
it-ops-security

Free Ride - Unlimited free AI

shaivpidadi
管理OpenClaw的OpenRouter免费AI模型,自动按质量排名模型,配置速率限制备用方案,并更新opencla...
★ 473 📥 79,074