YouTube Board

youtube.channels.videos.live

scheduler disabled local polling disabled active command ready read-only not due now
Modern command
youtube:channels:videos --live=1 --force=3
Legacy command
/usr/bin/php /home/urtube/maint/get_video.php live=1 force=3
Schedule
5 2-16 * * *
02-16 點每小時第 5 分
Evaluation time
2026-05-26 10:54:33 Asia/Taipei
External dependency
Local DB
Write targets
none by default; manual local-only `--execute` inserts videos/schedules/live rows
Notes
Legacy 會從 `urt_count.tags` 找 `[52]` 直播頻道,呼叫 YouTube `playlistItems.list(snippet)` 抓 uploads playlist,insert `urt_video`、`urt_video_schedule`,並在 live/upcoming 時 insert `urt_video_live`。Modern command 預設仍只列出 would-fetch channels;manual local-only `--execute --id/--channel --limit --max-results` 會檢查 `YOUTUBE_API_KEY` 後限量呼叫 YouTube,idempotently upsert 本機 `urt_video`、`urt_video_schedule`、`urt_video_live` 並更新 `urt_channel.vtime`。Scheduler 不傳 `--execute`,仍是 dry-run。

Execution Guardrail

This job is read-only, active, command-ready, and allowed to execute when its cron expression is due. Scheduler execution still requires INGESTION_SCHEDULER_ENABLED=true.

Scheduled Local Polling

Scheduler-enabled local polling is blocked for this job until every explicit gate is satisfied.

  • INGESTION_LOCAL_POLLING_ENABLED is false.
  • Job key is not in INGESTION_SCHEDULED_WRITE_ALLOWLIST.
  • Production polling is not explicitly enabled.

youtube:channels:videos --live=1 --force=3 --execute --limit=1 --max-results=1

Safe Commands

php artisan ingestion:run --job=youtube.channels.videos.live --at="2026-05-26 10:54:33" INGESTION_SCHEDULER_ENABLED=true php artisan ingestion:run --execute --job=youtube.channels.videos.live INGESTION_SCHEDULER_ENABLED=true INGESTION_LOCAL_POLLING_ENABLED=true INGESTION_SCHEDULED_WRITE_ALLOWLIST=youtube.channels.videos.live php artisan ingestion:run --execute --job=youtube.channels.videos.live

Next Runs

5 2-16 * * *

  • 2026-05-26 11:05:00 CST
  • 2026-05-26 12:05:00 CST
  • 2026-05-26 13:05:00 CST
  • 2026-05-26 14:05:00 CST
  • 2026-05-26 15:05:00 CST