Add optional imdb_id
This commit is contained in:
parent
90c3fc5ee3
commit
df6e3476cc
7 changed files with 14 additions and 0 deletions
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue