Commit graph

236 commits

Author SHA1 Message Date
juancarlos.cavero
6a3b1e58ab fix(cost): price table with prefix match instead of hardcoded 2.5-flash rates 2026-07-17 21:26:04 +02:00
juancarlos.cavero
e5d88999cf config: default all Gemini text/analysis calls to gemini-3.1-flash-lite
Unified via GEMINI_MODEL (plus per-task overrides GEMINI_MODEL_EDITOR /
GEMINI_MODEL_SAAS / GEMINI_MODEL_THUMBNAIL). The thumbnail image model stays
on gemini-3.1-flash-image-preview — flash-lite cannot generate images.
2026-07-17 21:26:04 +02:00
juancarlos.cavero
61954a7f28 fix(auth): OAUTH_REDIRECT_URI override for local login through the Vite proxy
Through the dev proxy the backend sees Host backend:8000, so url_for built
redirect_uri=https://backend:8000/... which Google rejects with 400
invalid_request. Allow pinning the callback via OAUTH_REDIRECT_URI; the
Host-derived behavior is unchanged when the variable is unset (prod).
2026-07-17 21:26:04 +02:00
juancarlos.cavero
40151e1708 feat: karaoke subtitles, deterministic Auto-Edit v2, emoji hooks, retries (PR #50 block 1)
Ported from PR #50 (Themegaindex) onto current main, adapted to the
billing-mode app.py and the Lumen dashboard:

- subtitles.py: karaoke ASS generation (word-level highlight, glow/pop/box
  effects, dim/uppercase), whisper continuation-word merging, env-configurable
  whisper model, ASS/font input sanitization, faststart
- editor.py + edit_builder.py: Auto-Edit v2 — Gemini returns a structured
  edit-decision list and the FFmpeg filter is built deterministically with
  hard caps (no raw filter strings from the LLM), 2s dry-run + one
  self-repair round, caption-safe mode blocks zooms on subtitled clips
- app.py: /api/subtitle karaoke fields + re-subtitle prefix walk-back
  (fixes double subtitles), has_captions passed to Auto-Edit
- hooks.py: emoji rendering (color-emoji font with strip fallback),
  char-level hard wrap, unique temp PNGs, ffmpeg timeouts; keeps the
  duration/enable overlay from b1113d7
- translate.py: exponential-backoff retries for transient ElevenLabs errors
- dashboard: 11 caption presets in SubtitleModal; karaoke burns server-side
- tests/: 50 pytest tests; .github/workflows/ci.yml runs them + fe build

Encode settings kept at CRF 18 (medium for post-process steps) per f791a74.

Co-authored-by: Themegaindex <themegaindex@users.noreply.github.com>
2026-07-17 21:26:04 +02:00
juancarlos.cavero
83b0649b20 fix(cloud): precise proxy alerts, scrub proxy creds from logs, hide system logs from paid users
- alerts.py: _looks_like_proxy_error only matches genuine proxy/download-stage
  signatures (407, ProxyError, tunnel failed, 402/out-of-credits) instead of a
  bare "proxy"/"credit"/"balance" substring — a job that failed in processing (or
  a video titled with one of those words) no longer fires a false "out of credits"
  alert. Real proxy failures still alert.
- app.py: _scrub_secrets() masks user:pass in any URL before a subprocess line is
  printed or stored, so the residential proxy URL yt-dlp echoes in verbose debug
  never lands in the server console or job log.
- app.py: _visible_logs() — cloud (BILLING on) surfaces only the pipeline's own
  friendly progress lines (emoji-prefixed + worker start/finish) and hides the raw
  yt-dlp/ffmpeg/debug spew from paying users; self-host still shows everything.
2026-07-17 21:23:54 +02:00
juancarlos.cavero
f791a74807 quality: CRF 18 on all encode steps, Lanczos resampling on resizes
Re-encode passes (vertical render, hooks, subtitles, AI effects) ran at
CRF 22-23, stacking visible generation loss across steps (#13). Bump all
of them to CRF 18; post-process steps also move preset fast -> medium
(the realtime reframe pipe keeps fast to not slow the streamed encode).
OpenCV resizes now use INTER_LANCZOS4 for sharper scaling.

Adopted from PR #14 review (the good parts, rebased on current main).
2026-07-17 17:11:14 +02:00
juancarlos.cavero
b1113d7a3f fix: Gemini retry with backoff, hook overlay duration, configurable job retention
- Retry transient Gemini errors (503/429/500) up to 3x with exponential
  backoff before falling back to whole-video conversion (#27)
- Thread the hook Duration slider through /api/hook down to the FFmpeg
  overlay enable filter so hooks can end after N seconds (#2)
- Read JOB_RETENTION_SECONDS from env so self-hosters can keep finished
  jobs longer than the 1h default (#46)
2026-07-17 16:47:38 +02:00
juancarlos.cavero
3bc51e1f7c ui: remove 9:16 crop-window overlay from pricing demo 2026-07-17 12:43:25 +02:00
juancarlos.cavero
e50db9f607 seo: keyword-rich h1, clipping/clipper terms, FAQ schema sync + remove crop overlay
- H1 restores 'free open source ai clip generator' keeping the redesign tagline
- Hero subline recovers the AI UGC keyword and adds 'online'
- Add clipping/clipper mentions (top non-brand GSC queries with zero on-page presence)
- FAQ schema: dual pricing answer synced with visible FAQ, dateModified bumped
- Remove orange crop-window overlay from the Smart Crop demo
2026-07-17 12:25:14 +02:00
victormanuel.caverogracia
7ea3ad5308 seo: keyword phrase back in hero subline
Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
2026-07-17 10:14:24 +02:00
victormanuel.caverogracia
aa676a7814 redesign: Lumen design system across landing, app and paywall
Full visual rework to a single locked design system (design.md, Lumen
Night Foundry): dark violet canvas, molten-brass accent, Instrument
Serif + Geist + JetBrains Mono, hairline cards, zero gradients and
zero glassmorphism.

- Landing: marquee hero with real vertical demo clip in an instrument
  bezel, meter strip, smart-crop before/after section, cloud-first
  copy (start free trial primary, self-host demoted to secondary),
  text density cut, SEO surfaces preserved (single h1, ids, FAQs,
  comparison table intact)
- App: workbench restyle — sidebar with mono ordinals, unified header,
  settings/ai-agent/dashboard views on shared tokens; per-feature
  gradient identities retired
- Shared UI: new Modal, SegmentedControl and StepIndicator replace 8+
  duplicated modal shells and 2 wizard steppers
- New pricing paywall page (#/pricing): demo proof strip, honest trust
  signals, billing FAQ
- Routing: app logo links back to landing via #landing without
  resetting the skip-landing preference
- Responsive: audited and fixed at 320/375/414/768px (no horizontal
  scroll, tables scroll in-container, single-line CTAs)
- ScheduleWeekModal translated to English; ProcessingAnimation comment
  noise removed

Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
2026-07-17 02:41:22 +02:00
victormanuel.caverogracia
54bb701b83 fix(social): stop 'Error fetching User Profiles' alert loop
fetchUserProfiles used a raw fetch without the bearer token, so managed
users always got a 400 from /api/social/user, and the mount effect fired
an alert() on every page load. Use apiFetch (auth attached), let managed
users fetch without a local key, and make the background auto-fetch
silent — only the manual Settings button alerts now.

Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
2026-07-17 00:24:16 +02:00
victormanuel.caverogracia
0311b6143d fix(social): let managed users post without BYOK Upload-Post key
The Post modal and Schedule Week modal gated on the localStorage
uploadPostKey, so managed (plan/trial) users saw 'Configure API Keys'
even though the backend already posts with the server-side managed key.
Gate on isManaged || BYOK keys instead.

Fixes #3559

Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
2026-07-17 00:10:47 +02:00
juancarlos.cavero
687412a860 fix(cloud): preview falls back to durable R2 url when local clip is gone
After a reload the ephemeral /videos/ files may be cleaned up (1h retention),
leaving black previews on the results screen. For managed users, fetch the job's
clips from /api/history (now includes clip_index) and fall back to the durable R2
url on video error (with a retry for the load race).
2026-07-16 19:44:26 +02:00
juancarlos.cavero
3f6ee50b86 feat(cloud): hide Gemini token cost from managed users on the results screen 2026-07-16 19:39:43 +02:00
juancarlos.cavero
0373c8571b feat(social): keep scheduling calendar + add Content calendar button in dashboard
- revert showCalendar to true (calendar stays available in the white-label page)
- add a 'Content calendar' button (opens the Upload-Post page in a new tab) so users
  can consult/manage scheduled posts from the dashboard
2026-07-16 19:26:51 +02:00
juancarlos.cavero
8ce4d3c5d9 feat(social): auto-connect socials after paying, same-tab redirect, hide calendar
- social connect JWT: showCalendar=false (hide scheduling calendar in white-label page)
- connect opens in the same tab so the page's redirectUrl returns the user to the app
- after the first plan activation (checkout success), take the user straight to the
  social-connect flow; guarded so top-up checkouts don't re-trigger it
2026-07-16 19:24:49 +02:00
juancarlos.cavero
1f7ec835db fix(oauth): force https on Google redirect_uri for public hosts
Proxy-header trust alone wasn't enough in prod (still built http://). Build the
redirect_uri and force https for non-localhost hosts so it matches the registered
Google URI regardless of how the reverse proxy forwards the scheme.
2026-07-16 18:52:39 +02:00
juancarlos.cavero
5118fd6989 fix(prod): trust proxy headers so OAuth redirect_uri uses https
Behind Coolify's reverse proxy the backend saw requests as http and built an
http:// redirect_uri, causing Google 'redirect_uri_mismatch'. Run uvicorn with
--proxy-headers --forwarded-allow-ips=* so X-Forwarded-Proto (https) is honored.
2026-07-16 18:49:38 +02:00
juancarlos.cavero
a122c90c89 feat(ui): make file upload the primary input, video URL secondary 2026-07-16 18:41:24 +02:00
juancarlos.cavero
06efc095a5 fix(frontend): no-store on index.html so deploys aren't served stale
index.html points at the hashed asset bundle; without a no-cache header the
browser kept serving a previous deploy's index.html (and thus old JS), which
showed the BYOK UI instead of the freshly-deployed billing UI. Add
Cache-Control: no-store on the SPA fallback (security headers repeated since
nginx add_header doesn't inherit into a location that sets its own).
2026-07-16 18:32:38 +02:00
juancarlos.cavero
c32d579675 chore: scrub infra hints from repo
- Remove vendor name (proxy provider) and strategy-revealing comments across
  Dockerfile, docker-compose.cloud.yml, main.py, cloud/metering.py, cloud/alerts.py
- Stop tracking .env.cloud.example (kept local only; added to .gitignore)

Functional references (yt-dlp helper plugin, env var names) necessarily remain.
2026-07-16 18:31:55 +02:00
juancarlos.cavero
41f43dc0dc docs(legal): remove infra hints from Terms (proxy, vendor names, ingestion) 2026-07-16 18:31:55 +02:00
mutonby
3ea5973e25
Merge pull request #52 from mutonby/feat/paid-mode
Paid hosted mode (managed keys, billing, video library) — self-host stays free
2026-07-16 18:03:00 +02:00
juancarlos.cavero
3b2221b0d2 feat(alerts): Telegram admin alerts for purchases + ops issues
- config: TELEGRAM_BOT_TOKEN / TELEGRAM_CHAT_ID + telegram_configured
- alerts: send_telegram(); send_admin_alert now pushes to Telegram + email
  (so existing proxy-out-of-credits and high-failure alerts hit Telegram too)
- billing webhook: alert on new subscription, trial→paid conversion, and top-up
- .env.cloud.example documents the Telegram vars

Verified end-to-end: alert delivered to the admin group via the same
send_admin_alert path the webhook uses. Token stays in gitignored .env.
2026-07-16 17:59:07 +02:00
juancarlos.cavero
0f8e19f119 feat(ui): support email, in-app pricing link, landing pricing section
- App sidebar: Support card (mailto:info@openshorts.app) + "Plans & Pricing" link (billing-gated)
- Landing: embedded 3-tier pricing section (live from Stripe), Pricing nav link,
  hosted card mentions the saved video library — all gated on billingEnabled so
  self-host shows nothing broken
2026-07-16 17:43:28 +02:00
juancarlos.cavero
6ec6935532 fix(cloud): harden paid-mode surface + source-available license for cloud/
Security fixes on the hosted/paid surface (all no-op in self-host / BYOK):
- upload path traversal: basename() client filenames in /api/process,
  /api/thumbnail/upload, /api/thumbnail/analyze fallback, /api/thumbnail/generate
  (face/bg + session_id) so "../" can't escape UPLOAD_DIR
- SSRF: saasshorts subpage scraper now follow_redirects=False + assert_public_url
  per hop (was open to 302 -> 169.254.169.254 metadata)
- metering: reserve+commit/release on /api/render, /api/subtitle, /api/hook and a
  fixed guard cost on /api/thumbnail/upload transcription (were entitlement-gated
  but unmetered -> unlimited off-quota compute)
- entitlement: SaaSShorts generate/actor-options/actor-upload now require a plan
  in cloud; /api/edit ignores body api_key in cloud (no gate/meter bypass)
- multi-tenant IDOR: stamp user_id on thumbnail_sessions/saas_jobs and reject
  non-owners (404) across status/mutation/publish/post endpoints
- DoS: bounded/streamed reads on actor-upload and thumbnail uploads
- retry_job_id routed through _safe_under

Frontend: raw fetch -> apiFetch on the now-gated/owner-checked endpoints so the
bearer token attaches.

License: cloud/ is now source-available under the OpenShorts Commercial License
(self-host/personal use allowed; no competing hosted service). Core stays MIT.
2026-07-16 17:30:12 +02:00
juancarlos.cavero
c0ad5e0de8 feat(billing): 20-min trial cap + activate-plan-now upgrade flow
- config: TRIAL_MINUTE_CAP=20 — trial allowance capped across all plans
- metering: apply the cap in _balance while status=trialing (full minutes once active)
- billing: POST /api/billing/end-trial ends the Stripe trial immediately (charge now,
  unlock full minutes); webhook flips status→active
- frontend: hitting the cap while trialing opens TrialUpgradeModal (activate plan now)
  instead of the top-up modal; polls /api/me until active
- Legal: disclose the 20-minute trial allowance
2026-07-16 02:13:55 +02:00
juancarlos.cavero
d298f69f12 feat(cloud): bake bgutil 720p into image, profile menu, video-URL info, trial→pricing
- Dockerfile: bake bgutil PO-token provider in script mode (no sidecar); 720p verified
- main.py / cloud/metering.py: support BGUTIL_SCRIPT_PATH (script mode) alongside HTTP
- docker-compose.cloud.yml: drop bgutil sidecar; .env.cloud.example documents script mode
- docker-compose.e2e.local.yml: local FRONTEND_URL/ALLOWED_ORIGINS/VITE_API_URL for testing
- AuthContext: new/non-entitled sign-ins land on pricing to start the trial
- ProfileMenu: header account dropdown (email, account & billing, sign out)
- MediaInput: "YouTube URL" → "Video URL" + supported-platforms info popover
2026-07-16 02:07:53 +02:00
juancarlos.cavero
1901b06f3a docs(legal): rewrite Terms & Privacy for the paid hosted service
Covers accounts/sign-in, the 3-day trial + auto-renewal disclosure, plans &
billing via Stripe, cancellation/refunds (incl. EU immediate-performance
waiver), what we store and for how long (video library kept while subscribed +
7 days), the subprocessor list (Stripe, Cloudflare R2, Google, Upload-Post,
proxy, email), account/data deletion, and self-host carve-out.
2026-07-15 15:19:13 +02:00
juancarlos.cavero
2a0e5e0de5 chore(prod): production frontend build + skip AWS upload in cloud + /health
- dashboard/Dockerfile: multi-stage — 'dev' (Vite HMR for local compose) and
  'prod' (npm build -> nginx static serving, SPA fallback). Prod is the default
  target so Coolify builds the static app; VITE_API_URL is a build arg.
- dashboard/nginx.conf: SPA routing + asset caching + basic security headers.
- docker-compose.yml: local frontend targets the dev stage.
- app.py: skip the redundant AWS S3 upload in cloud mode (R2 is the store now);
  add a /health liveness endpoint for uptime checks.

Verified: prod image serves index.html + deep-link fallback (200).
2026-07-14 15:32:01 +02:00
juancarlos.cavero
0ba4fac47b feat: durable video library on Cloudflare R2 (history + retention)
- cloud/storage.py: R2 (S3-compatible) client — upload, presigned view/download
  URLs, delete-by-prefix.
- cloud/videos.py: archive a completed managed job's clips to R2 under
  users/<uid>/<job>/, GET /api/history (private signed links), and a retention
  sweeper that deletes a user's videos 7 days after their subscription ends.
- models.py: user_videos table (created via create_all).
- app.py: archive clips to R2 on managed-job completion.
- billing.py: email the admin the moment a subscriber hits cancel.
- Frontend: History tab (library grid with per-video view + download).

R2 bucket 'openshorts-videos' + scoped API token created; end-to-end verified:
archive -> presigned GET (200) -> purge after grace -> object 404.
2026-07-14 14:56:40 +02:00
juancarlos.cavero
12d423d739 feat: 720p->360p download fallback + SMTP email alerts
- main.py / metering.py: try the HD (bgutil/720p) strategy first, fall back to
  the conservative (360p) clients on any failure, so a YouTube/yt-dlp change
  degrades gracefully instead of failing the whole job.
- cloud/alerts.py: in-memory tracking of managed-job outcomes; emails the admin
  (ADMIN_EMAIL) when a proxy/credit error appears or when many jobs fail in a
  row, with a 1h per-alert cooldown. Wired into run_job_wrapper.
- Email switched from Resend to SMTP (cloud/emails.py) for magic link + alerts
  (Namecheap Private Email). Config via SMTP_* / EMAIL_FROM / ADMIN_EMAIL in the
  mounted .env (kept out of compose so the password's $/* aren't mangled).

SMTP send verified from host and from the backend container.
2026-07-14 14:00:02 +02:00
juancarlos.cavero
ebe876c497 feat: unlock 720p/1080p YouTube downloads (Deno + bgutil PO tokens)
YouTube now forces SABR streaming, capping downloads at 360p without a GVS PO
token. Adds the full recipe (cloud mode only):
- Dockerfile: Deno JS runtime (nsig challenge) + latest yt-dlp[default] nightly
  + bgutil-ytdlp-pot-provider plugin
- docker-compose.cloud.yml: bgutil PO-token sidecar + BGUTIL_BASE_URL
- main.py / metering.py: when BGUTIL_BASE_URL is set, use yt-dlp default clients
  + the bgutil HTTP provider (→ 720p); self-host keeps the conservative fallback

Verified E2E through the container: managed user -> YouTube -> DataImpulse
residential proxy + Deno + bgutil -> real 720p (format 136) download, no 403.
2026-07-14 13:42:07 +02:00
juancarlos.cavero
c15f26b31c fix: use residential proxy for the yt-dlp duration probe too
The metering duration probe (probe_url_minutes) ran yt-dlp without the proxy or
anti-bot extractor args, so it got IP-blocked on the server before the download
step. Now it mirrors main.py: PROXY_URL + player_client fallbacks. Verified E2E —
YouTube download completes through the DataImpulse residential proxy.
2026-07-14 13:17:53 +02:00
juancarlos.cavero
05578c5456 feat: add hosted paid mode (managed keys, Stripe trial, metering)
Adds an optional cloud/paid mode behind a BILLING_ENABLED flag. With the flag
off the app is byte-identical to today's self-hosted BYOK build (regression-zero).

Backend (cloud/ package, only imported when BILLING_ENABLED):
- Auth: magic link (Resend) + Google OAuth (authlib) + JWT sessions
- Stripe: hosted Checkout with 3-day card trial, Customer Portal, idempotent
  order-safe webhooks; 3 plans (Starter/Creator/Pro) resolved by lookup_key
- Postgres + SQLAlchemy async; atomic minute metering (reserve/commit/release,
  plan->topup FIFO, restart-safe) with sweeper
- Managed keys: Gemini + Upload-Post server-side for entitled users; paid-only
  (BYOK core header ignored on hosted); Upload-Post white-label per-user profiles
- Metering wired into /api/process (probe->reserve->402, priority queue) and
  thumbnail image generation (3 min/batch)
- yt-dlp residential PROXY_URL support + 720p cap for hosted YouTube downloads

Frontend:
- AuthContext, LoginModal, PricingSection (3-day trial), AccountPage, UsageMeter,
  TopUpModal, TrialGate/AdvancedBanner
- Paid-only UI: hide BYOK core inputs, trial prompts per tool
- Included (Clip Generator, YouTube Studio) vs BYOK (AI Shorts/dubbing: fal.ai +
  ElevenLabs) clearly separated; ThumbnailStudio + SaaShortsTab managed-aware
- Landing: free-self-host vs paid-hosted messaging

Verified end-to-end against real Postgres + Stripe test mode.
2026-07-14 13:04:43 +02:00
juancarlos.cavero
fe87af6dd5 docs: Remove clip-generator screenshot from README and repo
Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
2026-05-06 14:57:22 +02:00
juancarlos.cavero
d19739925a fix: Remove "Made with by Upload-Post" credit from app footer
A second instance of the footer credit was still rendering inside the
authed app view (App.jsx). Drop it together with the now-empty footer
strip so the credit is gone from both Landing and App.

Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
2026-05-06 12:33:46 +02:00
juancarlos.cavero
b8602fd841 feat: Add minimal Terms & Privacy page
- New Legal.jsx single-page notice covering AS-IS, user responsibility,
  retention (1h job purge), third-party APIs, GDPR rights, copyright
  takedown via GitHub Issues, self-hosted disclaimer
- main.jsx routes #legal to the Legal page; Landing footer adds the link
- Attestation checkbox now references the Terms & Privacy page
- Drop "Made with by Upload-Post" footer credit

Anchors the ownership attestation to a written notice and gives a
public surface for GDPR/DMCA contact, without inventing fake emails.

Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
2026-05-06 12:31:15 +02:00
juancarlos.cavero
ef1c3eaa68 docs: Drop "long YouTube videos" framing from README
Mirror the Landing/index.html cleanup so the public README stops
marketing the tool as a YouTube downloader. Mentions of YouTube as
a publishing destination, YouTube Studio feature, and the embedded
tutorial link remain — those aren't inducement.

Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
2026-05-06 12:16:52 +02:00
juancarlos.cavero
521ba638b9 fix: Drop "URL or file" mention from clip generator subtitle
The clip generator subtitle leaked "URL" into the copy even when YouTube
URL ingest is disabled by DISABLE_YOUTUBE_URL. Make the line neutral so
it reads correctly in both modes.

Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
2026-05-06 12:10:53 +02:00
juancarlos.cavero
12c1b8e1d5 feat: Require ownership attestation before processing a video
- MediaInput shows a checkbox the user must tick before Generate enables
- Frontend sends acknowledged=true alongside URL/file payload
- /api/process rejects with 400 if attestation is missing, and records
  IP/UA/timestamp/source on the job for legal record-keeping

Defensive posture for the public deployment: shifts responsibility to
the user via an explicit affirmative act, even without login.

Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
2026-05-06 11:55:12 +02:00
juancarlos.cavero
3f4c814e22 feat: Add DISABLE_YOUTUBE_URL flag and reframe marketing copy
- New env var DISABLE_YOUTUBE_URL gates URL ingest in /api/process (403)
- /api/config exposes the flag so MediaInput can hide the YouTube tab
- Landing.jsx and index.html (meta + JSON-LD) reworded around
  "your long-form videos" instead of marketing YouTube downloads,
  reducing inducement exposure on the public deployment

Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
2026-05-06 11:51:08 +02:00
juancarlos.cavero
edd42b4de9 chore: Pin Python dependencies to versions verified in current build
Avoid future upstream-break surprises (like the scenedetect 0.6/0.7
VideoManager removal that surfaced today) by pinning to the exact
versions resolved in the last successful Docker build. yt-dlp left
unpinned so it can keep up with YouTube extractor changes.

Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
2026-05-06 11:42:11 +02:00
juancarlos.cavero
771d7da552 fix: Migrate scene detection to PySceneDetect 0.6+ API
VideoManager/SceneManager top-level imports were removed in 0.6+, causing
ImportError on job start. Switched to open_video() and SceneManager.detect_scenes(video=...).

Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
2026-05-06 10:36:50 +02:00
juancarlos.cavero
c6d5d51094 docs: Mark Upload-Post API key as required in README
Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
2026-05-04 16:00:03 +02:00
juancarlos.cavero
a7d54f2158 feat: Add AI Agent sidebar tab linking to skill-autoshorts repo
Introduces a new sidebar entry that explains the autonomous clipping
workflow (drop videos → AI clippers cut → user validates → auto-publish)
and warns that source footage must already be in vertical 9:16 format.

Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
2026-05-01 16:52:05 +02:00
juancarlos.cavero
9575b774d0 fix: Auto Edit no longer throws "setCompositionParams is not defined"
handleAutoEdit referenced setCompositionParams and setShowPreviewModal — neither exists in ResultCard, leftovers from a prior refactor. Align it with handleSubtitle/handleHook: accumulate the generated effects into activeLayers and re-render the clip via renderInBrowser.

Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
2026-04-30 07:09:49 +02:00
juancarlos.cavero
42ca76c48b feat: Make Upload-Post API key required and warn on every screen
Treat the Upload-Post key as mandatory like the Gemini key: block /api/process when either is missing, mark the Settings section as Required, and show a persistent banner plus a header pill on every screen until both keys are configured. The missing-key modal now lets the user paste each key inline.

Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
2026-04-30 07:05:41 +02:00
juancarlos.cavero
6a83ebdcd7 fix: Strip '#' from sanitized filenames to prevent broken clip URLs
YouTube titles containing '#' (e.g. hashtags like #shorts) were saved to disk correctly, but the browser parses '#' as a URL fragment, so the frontend could never request the actual file and clips appeared missing. Add '#' to the regex in sanitize_filename().

Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
2026-04-30 07:05:27 +02:00