storyline.py: skip SequenceMatcher when number match

This commit is contained in:
lededev
2021-10-17 23:25:19 +08:00
parent 3420f918f5
commit 56bbfe6f24

View File

@@ -203,10 +203,7 @@ def amazon_select_one(a_titles, q_title, number, debug):
for loc in range(len(a_titles)):
t = a_titles[loc]
if re.search(number, t, re.I): # 基本不带番号,但也有极个别有的,找到番号相同的直接通过
ratio = 1.0
sel = loc
save_t_ = t
break
return loc
if not re.search('DVD|Blu-ray', t, re.I):
continue
ama_t = str(re.sub('DVD|Blu-ray', "", t, re.I))