Integrate local movie file into playlist

This commit is contained in:
euzu
2025-12-16 19:59:53 +01:00
parent 37985c0324
commit a571f863bb
17 changed files with 270 additions and 200 deletions
+6 -1
View File
@@ -46,7 +46,12 @@ fn extract_tmdb_id_from_playlist_item(item: &PlaylistItem) -> Option<u32> {
.get("tmdb_id")
.and_then(get_u32_from_serde_value)
.filter(|&id| id != 0)
.or_else(|| props.get("tmdb").and_then(get_u32_from_serde_value));
.or_else(|| {
props.get("info")
.and_then(|info| info.get("tmdb_id"))
.and_then(get_u32_from_serde_value)
.filter(|&id| id != 0)
});
}
}
None