mirror of
https://github.com/SinTan1729/movie-rename.git
synced 2025-04-11 07:16:02 -05:00
fix: Adapt to changes in deps
This commit is contained in:
parent
c5b1f51233
commit
80fdc110ae
2 changed files with 5 additions and 5 deletions
|
@ -4,9 +4,9 @@ use inquire::{
|
||||||
};
|
};
|
||||||
use std::{collections::HashMap, fs, path::Path};
|
use std::{collections::HashMap, fs, path::Path};
|
||||||
use tmdb_api::{
|
use tmdb_api::{
|
||||||
|
client::{reqwest::ReqwestExecutor, Client},
|
||||||
movie::{credits::MovieCredits, search::MovieSearch},
|
movie::{credits::MovieCredits, search::MovieSearch},
|
||||||
prelude::Command,
|
prelude::Command,
|
||||||
Client,
|
|
||||||
};
|
};
|
||||||
use torrent_name_parser::Metadata;
|
use torrent_name_parser::Metadata;
|
||||||
|
|
||||||
|
@ -15,7 +15,7 @@ use crate::structs::{get_long_lang, Language, MovieEntry};
|
||||||
// Function to process movie entries
|
// Function to process movie entries
|
||||||
pub async fn process_file(
|
pub async fn process_file(
|
||||||
filename: &String,
|
filename: &String,
|
||||||
tmdb: &Client,
|
tmdb: &Client<ReqwestExecutor>,
|
||||||
pattern: &str,
|
pattern: &str,
|
||||||
dry_run: bool,
|
dry_run: bool,
|
||||||
lucky: bool,
|
lucky: bool,
|
||||||
|
@ -206,7 +206,7 @@ pub async fn process_file(
|
||||||
}
|
}
|
||||||
|
|
||||||
// RenderConfig for the menu items
|
// RenderConfig for the menu items
|
||||||
fn get_render_config() -> RenderConfig {
|
fn get_render_config() -> RenderConfig<'static> {
|
||||||
let mut render_config = RenderConfig::default();
|
let mut render_config = RenderConfig::default();
|
||||||
render_config.option_index_prefix = IndexPrefix::Simple;
|
render_config.option_index_prefix = IndexPrefix::Simple;
|
||||||
|
|
||||||
|
|
|
@ -1,6 +1,6 @@
|
||||||
use load_file::{self, load_str};
|
use load_file::{self, load_str};
|
||||||
use std::{collections::HashMap, env, fs, path::Path, process::exit};
|
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
|
// Import all the modules
|
||||||
mod functions;
|
mod functions;
|
||||||
|
@ -50,7 +50,7 @@ async fn main() {
|
||||||
}
|
}
|
||||||
|
|
||||||
// Create TMDb object for API calls
|
// Create TMDb object for API calls
|
||||||
let tmdb = Client::new(String::from(api_key));
|
let tmdb = Client::<ReqwestExecutor>::new(String::from(api_key));
|
||||||
|
|
||||||
// Iterate over entries
|
// Iterate over entries
|
||||||
for entry in entries {
|
for entry in entries {
|
||||||
|
|
Loading…
Reference in a new issue