Compare commits

..

2 commits

Author SHA1 Message Date
Sayantan Santra
6541da5ecd
Merge pull request #8 from SinTan1729/dependabot/cargo/rustls-0.21.11
build(deps): bump rustls from 0.21.10 to 0.21.11
2024-04-19 15:12:35 -05:00
dependabot[bot]
0ba31f6592
build(deps): bump rustls from 0.21.10 to 0.21.11
Bumps [rustls](https://github.com/rustls/rustls) from 0.21.10 to 0.21.11.
- [Release notes](https://github.com/rustls/rustls/releases)
- [Changelog](https://github.com/rustls/rustls/blob/main/CHANGELOG.md)
- [Commits](https://github.com/rustls/rustls/compare/v/0.21.10...v/0.21.11)

---
updated-dependencies:
- dependency-name: rustls
  dependency-type: indirect
...

Signed-off-by: dependabot[bot] <support@github.com>
2024-04-19 19:56:35 +00:00
4 changed files with 418 additions and 878 deletions

1280
Cargo.lock generated

File diff suppressed because it is too large Load diff

View file

@ -1,6 +1,6 @@
[package]
name = "movie-rename"
version = "2.3.1"
version = "2.3.0"
build = "build.rs"
edition = "2021"
authors = ["Sayantan Santra <sayantan[dot]santra689[at]gmail[dot]com"]
@ -17,8 +17,8 @@ categories = ["command-line-utilities"]
[dependencies]
torrent-name-parser = "0.12.1"
tmdb-api = "0.8.0"
inquire = "0.7.5"
tmdb-api = "0.5.0"
inquire = "0.6.2"
load_file = "1.0.1"
tokio = { version = "1.32.0", features = ["macros", "rt-multi-thread"] }
clap = { version = "4.5.1", features = ["cargo"] }

View file

@ -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<ReqwestExecutor>,
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<'static> {
fn get_render_config() -> RenderConfig {
let mut render_config = RenderConfig::default();
render_config.option_index_prefix = IndexPrefix::Simple;

View file

@ -1,6 +1,6 @@
use load_file::{self, load_str};
use std::{collections::HashMap, env, fs, path::Path, process::exit};
use tmdb_api::client::{reqwest::ReqwestExecutor, Client};
use tmdb_api::Client;
// Import all the modules
mod functions;
@ -50,7 +50,7 @@ async fn main() {
}
// Create TMDb object for API calls
let tmdb = Client::<ReqwestExecutor>::new(String::from(api_key));
let tmdb = Client::new(String::from(api_key));
// Iterate over entries
for entry in entries {