You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardexpand all lines: README.md
+5
Original file line number
Diff line number
Diff line change
@@ -22,10 +22,15 @@ Settings are set via [environment variables](https://kinsta.com/knowledgebase/wh
22
22
| REPLEX_HOST || Plex target host to proxy |
23
23
| REPLEX_INCLUDE_WATCHED | false | If set to false, hide watched items. |
24
24
| REPLEX_CACHE_TTL | 300 | Time to live for caches in seconds. Set to 0 to disable |
25
+
| REPLEX_TMDB_API_KEY || Enables tmdb artwork for hero hubs instead of plex background artwork |
25
26
26
27
## hub style
27
28
28
29
You can change the hub style to hero elements by setting the label "REPLEXHERO" on an collection.
30
+
Plex uses an items background for hero styles rows. Often these dont have any text or are not suitable for hero artwork in general.
31
+
You can use tmdb to automaticly load hero artwork by providing the env `REPLEX_TMDB_API_KEY`. This way you can keep your backgrounds and hero artwork seperated.
32
+
33
+
see https://developer.themoviedb.org/docs/getting-started on how to get an api key.
Copy file name to clipboardexpand all lines: src/cache.rs
+140-4
Original file line number
Diff line number
Diff line change
@@ -1,13 +1,145 @@
1
1
use async_trait::async_trait;
2
-
use salvo::{cache::CacheIssuer,Request,Depot};
2
+
use moka::{future::Cache, future::ConcurrentCacheExt,Expiry};
3
+
use once_cell::sync::Lazy;
4
+
use salvo::{cache::CacheIssuer,Depot,Request};
5
+
use serde::de::DeserializeOwned;
6
+
use serde::{Deserialize,Deserializer,Serialize};
7
+
use std::hash::Hash;
8
+
use std::{
9
+
sync::Arc,
10
+
time::{Duration,Instant},
11
+
};
12
+
use std::error::Error;
13
+
14
+
usecrate::config::Config;
15
+
16
+
// we close, this is a good example: https://github.com/getsentry/symbolicator/blob/170062d5bc7d4638a3e6af8a564cd881d798f1f0/crates/symbolicator-service/src/caching/memory.rs#L85
0 commit comments