Skip to content

Commit

Permalink
update
Browse files Browse the repository at this point in the history
  • Loading branch information
biezhihua committed Jan 26, 2024
1 parent 3249955 commit 0d3cb47
Show file tree
Hide file tree
Showing 3 changed files with 17 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -129,7 +129,7 @@
],
"source": [
"(Web|web|WEB|BD|BR|HD|DVD|HDTV)[Rr][Ii][Pp]",
"[B|b]lu[-]?[Rr]ay[ \\.]?(Remux|REMUX)?",
"[B|b]lu[-]?[Rr]ay[ \\.]?(Remux|ReMuX|REMUX)?",
"(AVC|BD)?[\\.-]?(Remux|REMUX)",
"(REMUX|UHD)[\\. ][B|b]lu[Rr]ay",
"(WEB|web|Web)([_ -]DL)?",
Expand Down
4 changes: 2 additions & 2 deletions soda_resource_tools_lib/src/soda/meta/strong_match_token.rs
Original file line number Diff line number Diff line change
Expand Up @@ -721,13 +721,13 @@ fn build_tokens(rule: &Rule, input: &str) -> Option<Token> {

// 处理Remux的各种样式
source = source.replace("REMUX", "Remux").to_string();
source = source.replace("ReMuX", "Remux").to_string();

//
source = source.replace("Remux BluRay", "BluRay.Remux").to_string();

// 处理BluRay[.- ]Remux的各种样式
let all_regex: Regex = Regex::new(r"BluRay[ -]Remux").unwrap();
source = all_regex.replace(&source, "BluRay.Remux").to_string();
source = Regex::new(r"BluRay[ -]Remux").unwrap().replace(&source, "BluRay.Remux").to_string();

//
if source == "WEB" {
Expand Down
14 changes: 14 additions & 0 deletions soda_resource_tools_lib/tests/movie_and_tv_metadata.json
Original file line number Diff line number Diff line change
Expand Up @@ -6440,6 +6440,20 @@
"release_group": "MOOVEE",
"container": "mkv"
}
},
{
"title": "Her.2013.1080p.BluRay.ReMuX.AVC.DTS-HD.MA.5.1.mkv",
"metadata": {
"cn_name": "",
"en_name": "Her",
"year": "2013",
"resolution": "1080p",
"source": "BluRay.Remux",
"video_codec": "H.264",
"audio_codec": "DTS-HD.MA.5.1",
"release_group": "",
"container": "mkv"
}
}
]
}

0 comments on commit 0d3cb47

Please sign in to comment.