30 KiB
AI Media Hub Handover
Working Rule
- This file is both backlog and handover log.
- Every meaningful change should record:
- what changed
- why it changed
- how it was verified
- what is still risky or incomplete
- If a push fails or a change remains local-only, that must be written here explicitly.
Current State At A Glance
- Project:
ai-media-hub - Goal: AI-assisted media discovery + ingest dashboard for Unraid
- Backend: Go
- Worker: Python +
yt-dlp+ffmpeg - Frontend: HTML + Vanilla JS + Tailwind CDN
- Database: SQLite
- Search backend:
SearXNG - AI translation / visual ranking:
Gemini 2.5 Flash - Deployment target: single Docker container on Unraid
- Git remote:
https://git.savethenurse.com/savethenurse/ai-media-hub.git
Current Status Summary
- Upload / direct download flow is implemented and broadly usable.
- Search is implemented end-to-end and now refactored into source-specific collectors.
- Search remains the main unstable subsystem.
- Envato metadata and preview extraction are much stronger than before, including additional hydration-data preview fallback.
- Artgrid metadata fidelity is improved, but stable public hover-video preview extraction is still not solved.
- Frontend now logs more useful API and debug information than earlier versions.
- A local self-test workflow now exists and should be run before container builds or pushes.
Current Architecture
backend/main.go- app bootstrap
- env loading
- static frontend serving
- route registration
backend/handlers/api.go- upload / download / search APIs
- WebSocket progress broadcast
- debug event broadcast
- search request orchestration only, with ranking/Gemini logic mostly moved out
backend/services/cse.go- SearXNG querying
- shared search helpers
- source-specific enrich helpers
- URL filtering / parsing utilities
backend/services/search_collectors.go- source-specific collectors:
envatoCollectorartgridCollectorgoogleVideoCollector
- source-specific collectors:
backend/services/ranker.go- ranking
- Gemini candidate cap logic
- Gemini batch evaluation wrapper
- recommendation merge logic
backend/services/gemini.go- query translation
- deterministic query expansion
- Gemini vision scoring
- video frame extraction via
ffmpegwhen needed
backend/models/db.go- SQLite init
- download history
worker/downloader.pyyt-dlpprobe / downloadffmpegclip extraction
frontend/index.html- main dashboard UI
- result viewer modal
- preview modal
- debug log panel
frontend/app.js- API calls
- WebSocket status bar
- result viewer modal
- hover preview playback
- direct download handoff for Google Video results
- debug logger panel
- platform toggles
frontend/style.css- custom styles
- clamp helpers
- slider thumb styles
- debug panel scrollbar styles
scripts/selftest.sh- local smoke test flow
scripts/mock_searxng.py- local mock SearXNG used by self-test
unraid-template.xml- Unraid template for current image source
Search Flow: Current Implementation
- User enters a query in Zone A.
- Frontend sends
/api/searchwith:query- selected
platforms
- Backend translates the query in
GeminiService.TranslateQuery.- Gemini translation if available
- Google Translate HTTP fallback
- Korean media-term dictionary fallback
- explicit normalization for known compound phrases such as
사이버 펑크->cyberpunk
- Backend builds deterministic English search variants in
GeminiService.ExpandQuery. SearchService.SearchMedia(...)orchestrates source-specific collectors.- Collectors query SearXNG separately for:
- Envato
- Artgrid
- Google Video
- Each collector applies source-specific acceptance logic.
- Google Video: YouTube-only plus noise filtering
- Envato:
elements.envato.comitem URLs only - Artgrid: accepts both:
artgrid.io/clip/...artlist.io/stock-footage/clip/...
- Artgrid canonical links are normalized to:
https://artgrid.io/clip/<id>/<slug>
- Results are enriched source-by-source.
- Envato:
VideoObjectJSON-LD preferred- page meta preferred over search-engine proxy thumbnail
- preview mp4 extraction via JSON-LD / HTML parsing
- Python HTML fetch fallback used when Go HTTP fetch gets Cloudflare challenge pages
- Artgrid:
- page title / description / thumbnail cleaning
- homepage / challenge HTML is now rejected so generic site metadata does not overwrite clip metadata
- preview video extraction still not stable
- Envato:
- Ranked results are passed through the shared ranker.
- All ranked candidates are evaluated with Gemini Vision in batches.
- Merge order now prefers:
- Gemini recommended items
- Gemini-reviewed non-recommended items
- keyword fallback items only if Gemini output is incomplete
- Frontend renders cards, result viewer modal, and hover previews.
Direct Downloader Flow: Current Implementation
- User enters URL in Zone C.
- Frontend checks duplicate history via
/api/history/check. - Frontend loads preview metadata via
/api/download/preview. - Preview modal opens with:
- media preview
- duration
- crop dual-thumb slider
- quality select
- User confirms download.
- Backend launches Python worker.
- Worker downloads source with
yt-dlp, clips withffmpeg, emits JSON progress lines. - Backend rebroadcasts progress over WebSocket.
Major Work Completed So Far
- Added local self-test workflow:
scripts/selftest.shscripts/mock_searxng.py
- Fixed translation fallback when Gemini key is missing.
- Added tests for translation fallback logic.
- Added HLS frontend wiring:
hls.jsscript- native HLS fallback
- Reduced search timeout risk by:
- limiting collector result caps
- limiting enrichment scope
- limiting Gemini Vision evaluation scope
- replacing oversized raw debug result payloads with summaries
- Improved Google Video filtering:
- rejects more music / trailer / BGM style noise
- Improved Envato fidelity:
- real title / description / thumbnail / preview from source page
- Improved Artgrid fidelity:
- accepts canonical Artlist URLs
- normalizes Artgrid clip URLs
- cleans title / description better
- Refactored search into source-specific collectors.
- Moved ranking and Gemini batch handling into
backend/services/ranker.go. - Fixed server-side 500 caused by Gemini candidate cap exceeding available ranked candidates.
- Improved frontend logging:
- raw non-JSON error body logging
- more compact debug payload rendering
- Changed hover preview playback to lazy attach on hover:
- attach source on
mouseenter - wait for readiness before
play() - detach source on
mouseleave
- attach source on
- Added in-app result viewer modal for search results:
- results now open in a modal instead of directly opening a new tab
- modal now prefers internal preview media over embedded third-party iframes to avoid embed blocking
- external open button remains available
- Google Video results can now jump directly into the existing direct-download preview / crop flow from the result viewer
- Gemini reason generation is now intended to be Korean-first for readability
- Gemini Vision evaluation now covers all ranked results instead of only a top subset
- Search results now prioritize AI note text visually ahead of source summary
- Search query order and final top results now include light randomness so repeated searches are less static
Current Features Implemented
- Project folder structure
- Dockerfile
- Gitea workflow
- Unraid template
- SQLite download history
- File upload
- yt-dlp direct downloader
- Preview modal for direct download
- Crop selection slider
- Quality selection
- WebSocket realtime progress
- Search source toggles
- Search card hover preview support
- Result viewer modal for search results
- Google Video direct-download handoff from search results
- Debug log panel in frontend
.logdownload from debug panel- Local self-test workflow
- Source-specific search collectors
- Shared ranker service layer
Important Current Constraints / Known Problems
- Search backend quality is still the most fragile subsystem.
- Search relevance is still heuristic-heavy and not yet benchmarked against a durable real-query set.
- Embedded third-party result viewing is no longer relied on because many providers block iframe embedding with
X-Frame-Options/ CSP. - Artgrid hover-video preview is still partial / unresolved:
- provided Artgrid HTML snapshots and downloaded asset bundles did not expose a stable public preview mp4/m3u8 URL
- public HTML often only exposes title / description / thumbnail / canonical URL
- Artgrid can still be sensitive to how SearXNG indexes canonical domains.
- Full browser-level validation is still not covered by local self-test.
- Frontend JavaScript still has no Node-based lint/build step in this environment.
- Search cards now separate source snippet from AI reason, but metadata fidelity still depends on source enrichment quality.
- Gemini notes are now intended to be Korean, but final output quality still depends on Gemini response consistency.
- The local self-test script is better than before, but it is still a smoke test, not full integration coverage.
Current Risks Around Search Quality
- Upstream SearXNG quality still controls the candidate pool.
- Gemini Vision can only rerank the candidates it receives.
- If source enrichment fails, Gemini may still judge a weaker proxy thumbnail or fallback image.
- Compound Korean intents are better handled now, but the translation path is still heuristic and can drift on niche concepts.
- Running Gemini Vision across all ranked results increases latency and token usage compared with the earlier capped approach.
Frontend Debug Logger
- UI button: bottom-right
Logs - Files:
frontend/index.htmlfrontend/app.jsfrontend/style.css
- Logs currently capture:
- API request / response
- WebSocket progress messages
- ignored WS debug messages
- status updates
- platform toggle state
- result viewer modal open / close
- preview source attach / detach
- hover start / hover end
- hover play errors
- modal preview open / close
- browser errors
- promise rejections
- backend debug broadcasts
Recent Change Log
-
Date:
2026-03-16 -
What changed:
- Result modal layout was rebuilt to match a top
16:9embedded viewer with bottom-left full AI note and bottom-right action panel. - Google Video results now load YouTube embed URLs in the modal viewer and keep the white
Direct Downloadaction in the lower-right panel. - When Gemini evaluation comes back mostly negative or too weak, the backend now runs one supplemental search pass with broader intent variants and reevaluates the merged pool.
- Failed Gemini batch evaluations now retry sequentially candidate-by-candidate with a short delay so more candidates can still be processed when batch/token evaluation is unstable.
- Result modal layout was rebuilt to match a top
-
Why it changed:
- The requested modal information hierarchy was different from the previous implementation.
- The user wanted negative Gemini feedback to trigger more exploration instead of stopping at the first pool.
- Batch-level Gemini failures were causing too many results to skip evaluation entirely.
-
How it was verified:
- code-path inspection against the updated modal wiring and search flow
-
What is still risky or incomplete:
- Non-YouTube third-party pages can still refuse iframe embedding via CSP or
X-Frame-Options. - Sequential Gemini retries improve coverage but also increase latency when the model is degraded.
- Non-YouTube third-party pages can still refuse iframe embedding via CSP or
-
Date:
2026-03-16 -
What changed:
- Bumped frontend asset version and added result-modal initialization guards to avoid click failures when browser cache serves mismatched HTML/JS.
-
Why it changed:
- The result modal stopped opening after the modal markup refactor, which is consistent with stale cached frontend assets or partially initialized modal DOM.
-
How it was verified:
- static code inspection of modal DOM/JS bindings
-
What is still risky or incomplete:
- Browser cache behavior itself was not fully reproduced here, so a hard refresh may still be needed in an already-open client session.
-
Date:
2026-03-16 -
What changed:
- Envato preview extraction now also inspects
INITIAL_HYDRATION_DATAwhen direct page meta / JSON-LD preview URLs are missing. - Search result cards and result modal now surface AI note before source summary text.
- Google Video direct download action moved into the AI note area and now seeds Zone C input before opening the shared preview/download modal.
- Result modal no longer depends on third-party iframe embedding and instead shows internal preview media plus external-open fallback.
- Search flow now shuffles collector query order and lightly randomizes the top merged results to reduce identical repeated outputs.
- Envato preview extraction now also inspects
-
Why it changed:
- Some Envato items still missed preview URLs.
- Third-party iframe embedding was failing for blocked sites and creating a poor modal experience.
- The user wanted AI note to be the primary explanatory text and Google Video download action to be more obvious.
- Repeated searches returning the same ordering made the discovery experience feel too static.
-
How it was verified:
go test ./...python3 -m py_compile worker/downloader.py scripts/mock_searxng.pybash scripts/selftest.sh- added unit coverage for Envato hydration preview extraction
-
What is still risky or incomplete:
- Envato hydration structure could change again, so this fallback is still heuristic.
- Full browser-level validation of the revised result modal and button placement was not fully reproducible in this environment.
- Search randomness currently changes ordering and query traversal, but does not guarantee materially different source pools if upstream SearXNG returns a narrow candidate set.
Current Environment Variables
APP_ROOTAPP_ADDRSQLITE_PATHDOWNLOADS_DIRFRONTEND_DIRWORKER_SCRIPTSEARXNG_BASE_URLSEARXNG_GOOGLE_VIDEO_ENGINESEARXNG_WEB_ENGINEGEMINI_API_KEY
Local Self-Test Workflow
- Primary command:
bash scripts/selftest.sh
- What it currently verifies:
- Go formatting for touched backend files
- Python syntax for worker + mock SearXNG
go test ./...- backend binary build
- local app boot with temp SQLite/download dirs
/healthz/api/searchusing local mock SearXNG/api/upload
- Notes:
- search step now retries to reduce startup timing flakiness
- this is a smoke test, not a browser-level verification suite
Verified Locally In This Environment
go build -o /tmp/ai-media-hub ./backendgo test ./...- Python syntax check for worker + self-test helper
- local app boot /
/healthzthroughscripts/selftest.sh - local
/api/searchagainst mock SearXNG throughscripts/selftest.sh - local
/api/uploadthroughscripts/selftest.sh - full browser-level validation was not fully reproducible in this environment
Recent Change Log
-
Date:
2026-03-16 -
What changed:
- Added
/api/preview/streamso remote preview assets are fetched through the backend instead of relying on the browser to load Envato / Artgrid media directly. - MP4 previews are cached on disk under the downloads area, and HLS playlists are rewritten so segment fetches also flow through the same backend proxy route.
- Added
-
Why it changed:
- Direct browser loading of remote preview URLs was still unstable and often failed due to upstream restrictions or missing headers.
-
How it was verified:
- code-path inspection of preview proxy and playlist rewrite flow
-
What is still risky or incomplete:
- HLS caching is not yet persisted segment-by-segment; current implementation rewrites playlists and proxies segment requests live.
-
Date:
2026-03-16 -
What changed:
- Relaxed final recommendation merge so Gemini-reviewed non-negative items can still appear, and only a small preview-capable ranked filler set is used when the result list is otherwise too thin.
-
Why it changed:
- The stricter
recommended=true onlymerge made the visible result set collapse too aggressively in real searches.
- The stricter
-
How it was verified:
go test ./...bash scripts/selftest.sh
-
What is still risky or incomplete:
- Filler results can still appear with the fallback reason when Gemini-reviewed positives are scarce, though the amount is now intentionally capped.
-
Date:
2026-03-16 -
What changed:
- Google Video embed URL now uses
youtube-nocookiewith explicitoriginto reduce player load failures. - Gemini Vision prompt now forces a
YesorNoverdict per candidate and onlyYescandidates are merged into the final result set. - Candidate visual fetch now prefers Envato / Artgrid preview video frames before thumbnails and sends a
Refererheader for thumbnail fetches. - Envato / Artgrid enrichment now retries preview extraction once after a short delay when the first fetch still lacks a usable preview URL.
- Google Video embed URL now uses
-
Why it changed:
- The user reported YouTube player error
153, too many fallback-style results, and source pages that appear to need additional loading time before preview URLs become visible.
- The user reported YouTube player error
-
How it was verified:
- log review from
ai-media-hub-2026-03-16T05-05-58-704Z.log go test ./...
- log review from
-
What is still risky or incomplete:
- If a YouTube video has embedding disabled by the uploader, no embed URL variant will fully bypass that restriction.
- Delay-and-retry HTML fetching cannot execute JavaScript, so pages that only expose preview URLs after full client-side rendering may still need a real browser-based fetch path later.
-
Date:
2026-03-16 -
What changed:
- Reduced the heaviest search-stage caps slightly: fewer query variants per request, smaller per-source result caps, lower enrichment scope, and a bounded Gemini candidate set.
-
Why it changed:
- The widened search configuration was pushing the request past the reverse-proxy timeout and surfacing
504 Gateway Time-out.
- The widened search configuration was pushing the request past the reverse-proxy timeout and surfacing
-
How it was verified:
go test ./...bash scripts/selftest.sh
-
What is still risky or incomplete:
- Search coverage is still broader than the original baseline, but there is now an explicit tradeoff between result volume and request latency.
-
Date:
2026-03-16 -
What changed:
- Increased collector result caps and widened source-specific search query templates for Envato, Artgrid, and Google Video.
- Strengthened Gemini query-expansion and vision prompts with a professional video-editor framing.
- Restored result modal media fallback so Google Video uses YouTube embed while Envato and Artgrid can show preview video or thumbnail instead of blocked iframe pages.
- Expanded generic preview URL parsing so HTML-embedded
.mp4and.m3u8sources are accepted more broadly.
-
Why it changed:
- Search result volume was too low.
- The user wanted Gemini to reason more like a professional editor.
- Envato iframe pages were being refused, Google Video modal opening was broken, and preview extraction still missed known media URLs.
-
How it was verified:
- local code inspection against attached Envato / Artgrid HTML samples
go test ./...
-
What is still risky or incomplete:
- The attached Artgrid HTML sample is a generic homepage shell, so preview extraction still depends on what the live clip page or downstream assets expose at runtime.
- Some providers can still refuse iframe rendering even when Artgrid pages currently appear to work.
Unraid / Docker / CI Notes
- Dockerfile uses:
- Go build stage
- static ffmpeg image stage
- Python runtime stage
- Heavy apt ffmpeg install path was removed earlier to reduce build time.
- Gitea workflow builds and pushes:
git.savethenurse.com/savethenurse/ai-media-hub:latestgit.savethenurse.com/savethenurse/ai-media-hub:${{ github.sha }}
Recent Relevant Commits
9637b76Improve query intent handling and preview playback6d9391bExpand Artgrid query coverage to artlist canonical URLsd8cc32eFix Gemini candidate cap causing search 500se426261Fix Artgrid collector matching and split ranker5aebbefRefactor search into source-specific collectorsae091c5Improve source parsing from Envato and Artgrid HTML06ea4f3Restore Envato and Artgrid fallback search breadth7dfb1adStabilize search pipeline and improve preview diagnostics6f3149aAdd local self-test flow and fix fallback regressionsf968458Rewrite TODO as project handover
Git / Push Status
- Current branch in ongoing work:
main - Current state:
- latest work in this environment has been pushed successfully multiple times after the earlier remote unpacker issue
- the older push failure note is historical context only and should not be treated as the current repo state
- Operational note:
- because the frontend is static and aggressively cached, browser hard refreshes are often required after UI / modal / preview changes
Highest-Value Next Steps
- Reduce
/api/searchlatency further without collapsing result count - Improve Envato / Artgrid preview acquisition reliability so Gemini Vision sees real frames more often
- Revisit Google Video UX:
- current YouTube embed was abandoned due error
153 - current in-app panel is more reliable but less rich than a true embedded watch page
- current YouTube embed was abandoned due error
- Build collector-specific integration tests with recorded SearXNG samples
- Separate source enrichment tests from live network behavior using local fixtures
- Add a browser-level preview validation path, especially for hover video and preview proxy routing
- If Artgrid hover preview is still required, obtain one real clip HAR / DevTools network export and derive a stable preview URL parser
- Build a small fixed real-query benchmark set to evaluate search quality before further tuning
- If frontend tooling becomes available, add lint/build checks
Short Handover Summary
- The codebase runs.
- Upload / direct-download features mostly exist and are broadly usable.
- Search is functional but still the least stable subsystem by a wide margin.
- Envato source fidelity is better than before, but Cloudflare / fetch failures still affect enrichment and preview acquisition.
- Artgrid source fidelity is improved, but query coverage and preview extraction are still unreliable.
- There is now a local self-test workflow.
- Backend debug logging is now much more detailed and intended to support exported log-file analysis from the in-app
Logspanel.
Current Reality Check
- Search request flow is now heavily instrumented.
- The frontend
Logspanel can capture:- API request start / completion
- SearXNG request / response counts
- collector query expansion
- enrichment start / finish
- Gemini translation / vision preparation / batch failures
- preview proxy fetch / cache events
- The latest broad issue pattern observed in logs is:
- too many SearXNG calls for a single request can still push total latency too high
- Envato / Artgrid often fail to provide enough preview-capable candidates for Gemini Vision
- Google Video is frequently the easiest source to retrieve and therefore can dominate final results
- YouTube embed error
153made the prior Google modal approach unreliable
Active Problems
504 Gateway Time-out- Root cause:
/api/searchcan still become too expensive when query expansion, source collectors, enrichment, and Gemini batch retries stack together. - Current mitigation: request-level time budget and partial-result return path.
- Residual risk: fewer reviewed results can be returned when the budget is exhausted.
- Root cause:
- Too many Google Video-only result sets
- Root cause: Envato / Artgrid queries can still produce repeated
rawCount: 0responses from SearXNG. - Current mitigation: looser unquoted query variants for both sources.
- Residual risk: upstream SearXNG quality still dominates discovery.
- Root cause: Envato / Artgrid queries can still produce repeated
- Gemini Vision partial or weak evaluation
- Root cause: many candidates still lack usable thumbnails / preview frames, so Gemini sees fewer real visuals than the raw result count suggests.
- Current mitigation: more verbose visual-fetch logging, preview-video-first strategy for Envato / Artgrid, and partial backfill from ranked candidates.
- Residual risk: if source media cannot be fetched, Gemini quality still degrades sharply.
- Envato / Artgrid preview instability
- Root cause: source HTML can be incomplete, fetches can fail, and some previews may only appear after client-side rendering or protected media access paths.
- Current mitigation: JSON-LD/meta/hydration parsing, delayed retry, preview proxy route, MP4 cache, and HLS playlist rewriting.
- Residual risk: a real browser-rendered fetch path may still be needed later for some pages.
- Google Video popup UX
- Root cause: YouTube embed error
153. - Current mitigation: dedicated in-app Google panel instead of direct embed.
- Residual risk: this is reliable but not as rich as showing the live watch page.
- Root cause: YouTube embed error
Current Technical Notes
- Preview proxy route:
/api/preview/stream- MP4 responses can be cached to disk
- HLS playlists are rewritten so segment fetches also flow through the backend
- Frontend cache busting is done via
/app.js?v=... - If behavior in the browser does not match the latest backend/frontend code, the first assumption should be stale frontend assets until proven otherwise
Recent Change Log
-
Date:
2026-03-16 -
What changed:
- When Gemini batch evaluation is only partially successful, the API now explicitly backfills the final list with preview-capable ranked candidates instead of leaving the visible result set too thin.
- Result modal behavior was switched so Envato and Artgrid open their actual item webpages inside the modal iframe again, while Google Video still uses the YouTube embed path.
- Frontend asset version was bumped again to force clients off stale preview-handling code.
-
Why it changed:
- The new debug log showed
recommendedCount: 2plus one failed Gemini batch, but the final visible list still collapsed to6items even though the raw pool was25. - The user wants in-modal login/download for Envato and Artgrid rather than preview-only media mode.
- The new debug log showed
-
How it was verified:
- log review from
ai-media-hub-2026-03-16T06-00-31-359Z.log - code inspection of post-Gemini backfill and modal rendering path
- log review from
-
What is still risky or incomplete:
- Artgrid candidate volume is still often low because SearXNG is returning many
0-result queries for current Artgrid query templates. - If a browser still holds older frontend assets, a hard refresh may be required before the latest modal/preview behavior appears.
- Artgrid candidate volume is still often low because SearXNG is returning many
-
Date:
2026-03-16 -
What changed:
- Significantly increased backend debug logging volume and routed it into the existing WebSocket
debugstream so the in-appLogspanel captures much deeper request, search, preview, Gemini, and ranking traces. - Added request-start/request-done API middleware logs with request body and truncated response body snapshots.
- Added service-level debug hooks for SearXNG requests, collector activity, enrichment passes, Gemini translation/vision steps, ranking batch stats, and preview proxy/cache behavior.
- Significantly increased backend debug logging volume and routed it into the existing WebSocket
-
Why it changed:
- The user wants to export detailed browser-visible log files and use them later for root-cause analysis instead of relying on sparse summaries.
-
How it was verified:
- code inspection of debug hook wiring from backend services to WebSocket
debugbroadcasts
- code inspection of debug hook wiring from backend services to WebSocket
-
What is still risky or incomplete:
- Very verbose logging can make the
Logspanel noisier and larger, especially during long searches or preview playback.
- Very verbose logging can make the
-
Date:
2026-03-16 -
What changed:
- Removed per-batch Gemini fallback injection so empty Gemini sub-results no longer automatically turn into many
"Gemini Vision 응답이 부족해..."items. - Relaxed final merge to keep more non-negative Gemini-reviewed candidates and allow a larger capped preview-capable filler set when the visible result list is too small.
- Slightly raised Envato / Artgrid caps and enrichment scope again after the stricter merge caused visible result count to collapse too far.
- Bumped frontend asset version to
20260316eso clients pick up the newer preview-proxy behavior.
- Removed per-batch Gemini fallback injection so empty Gemini sub-results no longer automatically turn into many
-
Why it changed:
- The user still saw too few results and too many fallback-labeled items despite the earlier filtering changes.
-
How it was verified:
go test ./...
-
What is still risky or incomplete:
- If the browser is holding an older cached
app.js, a hard refresh may still be needed before the proxied preview path is actually used on the client.
- If the browser is holding an older cached
-
Date:
2026-03-16 -
What changed:
- Added a request-level time budget so search collection, enrichment, supplemental exploration, and Gemini evaluation stop early enough to return partial results before the reverse proxy reaches
504 Gateway Time-out. - Reduced query variant count and per-source caps slightly again to cut the worst-case number of SearXNG calls in a single search request.
- Added a request-level time budget so search collection, enrichment, supplemental exploration, and Gemini evaluation stop early enough to return partial results before the reverse proxy reaches
-
Why it changed:
- The new debug log showed
/api/searchtaking about90s, with the timeout happening during the Gemini stage after a very large number of search and enrichment steps.
- The new debug log showed
-
How it was verified:
go test ./...bash scripts/selftest.sh
-
What is still risky or incomplete:
- Partial-result responses are now preferred over hard 504s, so some searches may return fewer reviewed items when the time budget is exhausted.
-
Date:
2026-03-16 -
What changed:
- Loosened Envato and Artgrid query templates by adding unquoted variants so source discovery is less brittle when SearXNG has weak exact-phrase coverage.
- Replaced the Google Video modal embed with a dedicated in-app panel using thumbnail + metadata + action buttons, instead of relying on unstable YouTube embed playback.
- Bumped frontend asset version to
20260316g.
-
Why it changed:
- The latest log showed Envato and Artgrid repeatedly returning
rawCount: 0, which is consistent with over-constrained exact-phrase queries. - Google Video still hit YouTube player error
153, so the modal needed a non-embed fallback that remains usable.
- The latest log showed Envato and Artgrid repeatedly returning
-
How it was verified:
- log review from
ai-media-hub-2026-03-16T06-23-45-335Z.log go test ./...
- log review from
-
What is still risky or incomplete:
- Even with looser queries, SearXNG quality still controls whether Envato and Artgrid candidates are discoverable for a given term.