Strip derivable metadata

This commit is contained in:
2025-05-03 18:38:53 -06:00
parent 45b0a5e601
commit 343978e3f2
9 changed files with 7 additions and 16 deletions
-3
View File
@@ -50,7 +50,6 @@ impl TmdbObject {
},
tmdb: Some(TmdbMovie {
id: tmdb.id,
collection: tmdb.collection.map(|c| c.id),
genres: tmdb.genres.iter().map(|g| g.id).collect(),
}),
})?,
@@ -67,7 +66,6 @@ impl TmdbObject {
})?,
TmdbObject::Season(tmdb) => toml::to_string(&Season {
season: GenericSeason {
number: tmdb.season_number,
name: tmdb.name,
overview: tmdb.overview,
air_date: tmdb.air_date,
@@ -75,7 +73,6 @@ impl TmdbObject {
})?,
TmdbObject::Episode(tmdb) => toml::to_string(&Episode {
episode: GenericEpisode {
number: tmdb.episode_number,
name: tmdb.name,
overview: tmdb.overview,
air_date: tmdb.air_date,