diff --git a/src/functions.rs b/src/functions.rs index aab057a..7408df7 100644 --- a/src/functions.rs +++ b/src/functions.rs @@ -4,9 +4,9 @@ use inquire::{ }; use std::{collections::HashMap, fs, path::Path}; use tmdb_api::{ + client::{reqwest::ReqwestExecutor, Client}, movie::{credits::MovieCredits, search::MovieSearch}, prelude::Command, - Client, }; use torrent_name_parser::Metadata; @@ -15,7 +15,7 @@ use crate::structs::{get_long_lang, Language, MovieEntry}; // Function to process movie entries pub async fn process_file( filename: &String, - tmdb: &Client, + tmdb: &Client, pattern: &str, dry_run: bool, lucky: bool, @@ -206,7 +206,7 @@ pub async fn process_file( } // RenderConfig for the menu items -fn get_render_config() -> RenderConfig { +fn get_render_config() -> RenderConfig<'static> { let mut render_config = RenderConfig::default(); render_config.option_index_prefix = IndexPrefix::Simple; diff --git a/src/main.rs b/src/main.rs index c854d3c..655033b 100644 --- a/src/main.rs +++ b/src/main.rs @@ -1,6 +1,6 @@ use load_file::{self, load_str}; use std::{collections::HashMap, env, fs, path::Path, process::exit}; -use tmdb_api::Client; +use tmdb_api::client::{reqwest::ReqwestExecutor, Client}; // Import all the modules mod functions; @@ -50,7 +50,7 @@ async fn main() { } // Create TMDb object for API calls - let tmdb = Client::new(String::from(api_key)); + let tmdb = Client::::new(String::from(api_key)); // Iterate over entries for entry in entries {