fix diff - / chars switch

This commit is contained in:
simon 2021-05-22 13:16:21 +07:00
parent a2f57d7f35
commit f4b3d7c90e
1 changed files with 2 additions and 2 deletions

View File

@ -75,13 +75,13 @@ class MovieNameFix():
diff = [] diff = []
for num, value in enumerate(str1): for num, value in enumerate(str1):
try: try:
if value not in (str2[num], '-'): if value not in (str2[num], '/'):
diff.append(value) diff.append(value)
except IndexError: except IndexError:
diff.append(value) diff.append(value)
for num, value in enumerate(str2): for num, value in enumerate(str2):
try: try:
if value not in (str1[num], '/'): if value not in (str1[num], '-'):
diff.append(value) diff.append(value)
except IndexError: except IndexError:
diff.append(value) diff.append(value)