Skip to content

Commit aee7bc2

Browse files
committed
update
1 parent 62e8323 commit aee7bc2

File tree

2 files changed

+16
-2
lines changed

2 files changed

+16
-2
lines changed

soda_resource_tools_cli/src/main.rs

+2-2
Original file line numberDiff line numberDiff line change
@@ -186,7 +186,7 @@ fn init_lib_config(local_soda_config: &Value, config_dir: &Path, cache_dir: &Pat
186186
config.strong_match_regex_rules_path = "".to_string();
187187
config.strong_match_name_map_path = "".to_string();
188188
config.transfer_rename_format_tv = "$title_cn$.$title_en$.$release_year$/$title_cn$.$title_en$.$year$.$season$.$resolution$.$source$.$video_codec$.$audio_codec$/$title_cn$.$title_en$.$year$.$season$$episode$.$resolution$.$source$.$video_codec$.$audio_codec$.$extension$".to_string();
189-
config.transfer_rename_format_movie = "$title_cn$.$title_en$.$year$.$resolution$.$source$.$video_codec$.$audio_codec$/$title_cn$.$title_en$.$year$.$resolution$.$source$.$video_codec$.$audio_codec$.$extension$".to_string();
189+
config.transfer_rename_format_movie = "$title_cn$ ($year$)/$title_cn$ ($year$) - $resolution$.$extension$".to_string()
190190
config.metadata_skip_special = true;
191191
soda::update_lib_config(config);
192192
tracing::info!(target:"soda::info", "配置更新成功");
@@ -200,7 +200,7 @@ fn init_lib_config_dev(lib_dir: &Path) {
200200
config.strong_match_regex_rules_path = lib_dir.join("config").join("mt_strong_match_regex_rules.json").to_str().unwrap().to_string();
201201
config.strong_match_name_map_path = lib_dir.join("config").join("mt_strong_match_name_map.json").to_str().unwrap().to_string();
202202
config.transfer_rename_format_tv = "$title_cn$.$title_en$.$release_year$/$title_cn$.$title_en$.$year$.$season$.$resolution$.$source$.$video_codec$.$audio_codec$/$title_cn$.$title_en$.$year$.$season$$episode$.$resolution$.$source$.$video_codec$.$audio_codec$.$extension$".to_string();
203-
config.transfer_rename_format_movie = "$title_cn$.$title_en$.$year$.$resolution$.$source$.$video_codec$.$audio_codec$/$title_cn$.$title_en$.$year$.$resolution$.$source$.$video_codec$.$audio_codec$.$extension$".to_string();
203+
config.transfer_rename_format_movie = "$title_cn$ ($year$)/$title_cn$ ($year$) - $resolution$.$extension$".to_string();
204204
config.metadata_skip_special = true;
205205
soda::update_lib_config(config);
206206
tracing::info!(target:"soda::info", "配置更新成功");

soda_resource_tools_lib/src/soda/entity.rs

+14
Original file line numberDiff line numberDiff line change
@@ -99,6 +99,20 @@ pub struct LibConfig {
9999
pub transfer_rename_format_tv: String,
100100

101101
/// 影视 - 电影 重命名格式
102+
/// https://emby.media/support/articles/Movie-Naming.html
103+
/// \Movies\Avatar (2009)\Avatar (2009).mkv
104+
/// \Movies\Pulp Fiction (1994)\Pulp Fiction (1994).mp4
105+
/// \Movies\Reservoir Dogs (1992)\Reservoir Dogs (1992).mp4
106+
/// \Movies\The Usual Suspects (1995)\The Usual Suspects (1995).mkv
107+
/// \Movies\Top Gun (1986)\Top Gun (1986).mp4
108+
/// /Movies
109+
/// /300 (2006)
110+
/// /300 (2006)/300 (2006) - 1080p.mkv
111+
/// /300 (2006)/300 (2006) - 4K.mkv
112+
/// /300 (2006)/300 (2006) - 720p.mp4
113+
/// /300 (2006)/300 (2006) - extended edition.mp4
114+
/// /300 (2006)/300 (2006) - directors cut.mp4
115+
/// /300 (2006)/300 (2006) - 3D.hsbs.mp4
102116
pub transfer_rename_format_movie: String,
103117
}
104118

0 commit comments

Comments
 (0)