Add optional imdb_id

This commit is contained in:
Marc Plano-Lesay 2025-05-01 20:53:37 +10:00
parent 90c3fc5ee3
commit df6e3476cc
Signed by: kernald
GPG key ID: 66A41B08CC62A6CF
7 changed files with 14 additions and 0 deletions

View file

@ -31,6 +31,7 @@ struct PostInfo {
magnet_links: Vec<Magnet>,
subreddit: String,
timestamp: DateTime<Utc>,
imdb_id: Option<String>,
}
/// Filters posts based on a title filter pattern
@ -112,6 +113,7 @@ async fn main() -> Result<()> {
subreddit: subreddit.to_string(),
magnet_links,
timestamp: post.created,
imdb_id: source_config.imdb_id.clone(),
};
// Store the post info in the database