📌 Overview
WPTubeBot is a fast, flexible video importer for WordPress. It pulls feeds from multiple providers (KVS, TubeCorp & more), creates clean posts with embeds, thumbnails, tags, and model/site taxonomies, and automates everything with a robust cron queue.
- Provider Registry with per-provider filters (categories, tags, models).
- One-click Add KVS wizard & dynamic URL parameter builder.
- Job Queue with wptb_every_minute, wptb_5min, wptb_15min.
- Quick actions: Harvest, Import, Maintenance, Purge.
📥 Installation
- Download wptubebot.zip.
- WordPress → Plugins → Add New → Upload Plugin.
- Activate. Go to WP-Admin → WPTubeBot.
Choose wptubebot.zip → Install Now → Activate
🖥️ Admin UI Tour
| Area | What it does |
|---|---|
| Provider Cards | Each provider shows status, last sync, and quick actions. |
| Add KVS | Opens a modal to build a KVS feed quickly. |
| Filters | Per-provider include/exclude by categories, tags, models. |
| Purge Videos | Optional cleanup tool to remove imported posts (by provider/site). |
🌐 Providers
Add multiple providers and let the queue run them round-robin. You can pause a provider, change limits, or edit filters without breaking the queue.
🏷️ TubeCorp: Find your User ID
Some TubeCorp feeds require your numeric User ID to authenticate or personalize results. Here are two simple ways to find it:
- From the Feeds/API page: TubeCorp → Feeds/API. Look for a URL containing source=123456.
🧩 KVS: Add a feed with Add KVS
- Go to WP-Admin → WPTubeBot and click Add KVS.
- Enter your KVS site Site URL (e.g., https://example.com).
- Enter your KVS Feed Feed URL (e.g., https://example.com/admin/feeds/feed).
- Fill the parameters using the builder.
- Set a Site Slug (e.g., kvs_example) to tag imported posts.
- Save and click Test to preview 1–2 items. If OK → Enable.
⏱️ Cron & Jobs
WPTubeBot uses an internal queue and three cron rhythms to process jobs safely without overloading your server.
| Hook | Frequency | Role |
|---|---|---|
| wptb_every_minute | every 60s | Import worker: creates/updates posts from the queue. |
| wptb_5min | every 5 min | Harvest: reads provider feeds, paginates, and enqueues new items. |
| wptb_15min | every 15 min | Maintenance: retries, orphan cleanup, metrics. |
WP-Cron vs System Cron
You can run scheduled jobs either with WordPress’s built-in WP-Cron or with a system cron job. If you choose system cron, disable WP-Cron and call wp-cron.php (or trigger via WP-CLI).
Admin Quick Actions
- Harvest Now: run discovery (enqueue only, no import).
- Import Now: force the worker to consume the queue immediately.
- Maintenance: run cleanup/retries now.
- Purge Videos: delete imported posts (by provider or site_slug). Irreversible.
⚙️ Import Settings
- Limit per Harvest: max items to enqueue per pass.
- Limit per Import: max posts created/updated per cycle.
- Import Thumbnails & Featured Image (WordPress sideload).
- Import Tags / Categories: create/map taxonomy terms.
- Skip Duplicates by provider URL/UID (persistent hash).
- Taxonomy binding: assign wptb_site and wptb_models.
- Status: publish or draft imported posts.
- Post Type: choose your CPT if not using default post.
🏷️ Taxonomies
- wptb_site: tracks the source site/provider (useful for filtering, purge by site, archives).
- wptb_models: optional model tags if the feed provides them.
- Native categories & tags: can be imported/mapped per provider.
🛠️ Troubleshooting
“Set to 1000 but only a few are imported.”
That’s expected. Feeds are paginated and the queue enforces per-run limits. Let the cron cycles run; items will be imported progressively.
Nothing imports / stuck at 0
- Check WP-Cron or your system cron is actually firing.
- Ensure provider is Enabled and limits > 0.
- Open browser console/network to confirm the feed returns JSON items.
Thumbnails not saving
- Server allows outbound HTTPS (firewall/proxy).
- Increase PHP max_execution_time and memory_limit if importing many images.
- wp-content/uploads must be writable.
Avoid “Uncategorized”
Enable category import or set a default category in WordPress. You can also map per-provider categories.
❓ FAQ
Is WPTubeBot free?
Yes, free to use. Future premium placements may be optional.
Can I sell sites built with it?
Yes. You can build and sell sites using WPTubeBot.
Where do I see progress?
Provider cards show last sync and counts. Logs indicate harvest/import/maintenance activity.
Does it store third-party media?
No. It embeds media from providers; thumbnails can be sideloaded if enabled.