Spaces:
Paused
Paused
FTA7700
Rewrite Library staleness checker to use timestamp comparison instead of predicted cache_key matching, which false-positived on titles with partial rating-source availability (e.g. Letterboxd has no TV data)
7cb5dfa Download api/src/entity/api_key_settings.rs from stremio-db/a: direct link, hf CLI and curl.
- Browser
- Download file 2.12 kB
-
https://huggingface.co/spaces/stremio-db/a/resolve/main/api/src/entity/api_key_settings.rs
- Command line
-
hf download hf://spaces/stremio-db/a/api/src/entity/api_key_settings.rs
-
curl -L -o api_key_settings.rs https://huggingface.co/spaces/stremio-db/a/resolve/main/api/src/entity/api_key_settings.rs
2.12 kB
| use sea_orm::entity::prelude::*; | |
| pub struct Model { | |
| pub api_key_id: i32, | |
| pub image_source: String, | |
| pub lang: String, | |
| pub textless: bool, | |
| pub ratings_limit: i32, | |
| pub ratings_order: String, | |
| pub poster_position: String, | |
| pub logo_ratings_limit: i32, | |
| pub backdrop_ratings_limit: i32, | |
| pub poster_badge_style: String, | |
| pub logo_badge_style: String, | |
| pub backdrop_badge_style: String, | |
| pub poster_label_style: String, | |
| pub logo_label_style: String, | |
| pub backdrop_label_style: String, | |
| pub poster_badge_direction: String, | |
| pub poster_badge_split: bool, | |
| pub poster_fit: String, | |
| pub poster_badge_size: String, | |
| pub logo_badge_size: String, | |
| pub backdrop_badge_size: String, | |
| pub backdrop_position: String, | |
| pub backdrop_badge_direction: String, | |
| pub episode_ratings_limit: i32, | |
| pub episode_badge_style: String, | |
| pub episode_label_style: String, | |
| pub episode_badge_size: String, | |
| pub episode_position: String, | |
| pub episode_badge_direction: String, | |
| pub episode_blur: bool, | |
| pub ratings_exclude: String, | |
| pub poster_badge_shape: String, | |
| pub logo_badge_shape: String, | |
| pub backdrop_badge_shape: String, | |
| pub episode_badge_shape: String, | |
| pub poster_badge_background: String, | |
| pub logo_badge_background: String, | |
| pub backdrop_badge_background: String, | |
| pub episode_badge_background: String, | |
| /// Distance (percent of width, 0–50) to inset backdrop ratings from the | |
| /// anchored horizontal edge (left or right). Ignored for centered positions. | |
| pub backdrop_edge_inset_x: i32, | |
| /// Distance (percent of height, 0–50) to inset backdrop ratings from the | |
| /// anchored vertical edge (top or bottom). Ignored for centered positions. | |
| pub backdrop_edge_inset_y: i32, | |
| pub updated_at: Option<i64>, | |
| } | |
| pub enum Relation {} | |
| impl ActiveModelBehavior for ActiveModel {} | |