Improve handling of previews
This commit is contained in:
@@ -190,7 +190,10 @@ Remote image search:
|
||||
- `GET /api/artwork/providers` exposes available providers to the UI
|
||||
- `GET /api/artwork/search` calls the selected provider
|
||||
- `POST /api/artwork/import` downloads, validates, size-limits, and caches a selected remote image
|
||||
- The first provider is Wikimedia Commons; add future providers by implementing `ImageSearchProvider` and registering it in `IMAGE_SEARCH_PROVIDERS`
|
||||
- Current providers are Wikimedia Commons, optional TMDB, and optional Google Custom Search
|
||||
- TMDB is enabled with `TMDB_BEARER_TOKEN` or `TMDB_API_KEY`
|
||||
- Google Custom Search is enabled with `GOOGLE_CUSTOM_SEARCH_API_KEY` and `GOOGLE_CUSTOM_SEARCH_ENGINE_ID`
|
||||
- Add future providers by implementing `ImageSearchProvider` and registering it in `IMAGE_SEARCH_PROVIDERS`
|
||||
|
||||
## Rendering Pipeline
|
||||
|
||||
|
||||
@@ -68,6 +68,20 @@ A self-hosted web UI that generates landscape thumbnails from your Emby library
|
||||
3. Give it a name (e.g. "Thumb Generator")
|
||||
4. Copy the key
|
||||
|
||||
## Optional Artwork Providers
|
||||
|
||||
The artwork editor always supports Emby images and Wikimedia Commons. You can enable additional search providers with environment variables:
|
||||
|
||||
```bash
|
||||
export TMDB_BEARER_TOKEN=your-tmdb-read-access-token
|
||||
# or: export TMDB_API_KEY=your-tmdb-v3-api-key
|
||||
|
||||
export GOOGLE_CUSTOM_SEARCH_API_KEY=your-google-api-key
|
||||
export GOOGLE_CUSTOM_SEARCH_ENGINE_ID=your-google-search-engine-id
|
||||
```
|
||||
|
||||
TMDB is the preferred external artwork source for posters and backdrops. Google Custom Search is optional and only uses Google's official Custom Search JSON API.
|
||||
|
||||
## Notes
|
||||
|
||||
- First generation will be slower as rembg downloads the U2-Net model (~170MB)
|
||||
|
||||
@@ -7,6 +7,11 @@ services:
|
||||
environment:
|
||||
- EMBY_URL=http://your-emby-server:8096
|
||||
- EMBY_API_KEY=your-api-key-here
|
||||
# Optional external artwork providers:
|
||||
# - TMDB_BEARER_TOKEN=your-tmdb-read-access-token
|
||||
# - TMDB_API_KEY=your-tmdb-v3-api-key
|
||||
# - GOOGLE_CUSTOM_SEARCH_API_KEY=your-google-api-key
|
||||
# - GOOGLE_CUSTOM_SEARCH_ENGINE_ID=your-google-search-engine-id
|
||||
volumes:
|
||||
- ./output:/app/output
|
||||
- ./cache:/app/cache
|
||||
|
||||
@@ -0,0 +1,7 @@
|
||||
{
|
||||
"folders": [
|
||||
{
|
||||
"path": "."
|
||||
}
|
||||
]
|
||||
}
|
||||
@@ -387,6 +387,7 @@
|
||||
<h1>Emby Thumbnail Generator</h1>
|
||||
<nav class="header-nav">
|
||||
<a class="nav-link" href="/">Generator</a>
|
||||
<a class="nav-link" href="/collections">Collections</a>
|
||||
<a class="nav-link active" href="/airing">Airing</a>
|
||||
</nav>
|
||||
<div class="header-status">
|
||||
|
||||
File diff suppressed because it is too large
Load Diff
+389
-653
File diff suppressed because it is too large
Load Diff
Reference in New Issue
Block a user