Skip to content

Commit 4374e43

Browse files
committed
feat-463: recognize avid like R18-XXX
1 parent 15d9893 commit 4374e43

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

javsp/avid.py

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -80,6 +80,10 @@ def get_id(filepath_str: str) -> str:
8080
return match.group(1)
8181
# 尝试匹配东热n, k系列
8282
match = re.search(r'(N\d{4}|K\d{4})', norm, re.I)
83+
if match:
84+
return match.group(1)
85+
# 尝试匹配R18-XXX的番号
86+
match = re.search(r'R18-?\d{3}', norm, re.I)
8387
if match:
8488
return match.group(1)
8589
# 尝试匹配纯数字番号(无码影片)

0 commit comments

Comments
 (0)