Rewriten title check system.
This commit is contained in:
parent
2ea219e1b5
commit
3a2e380add
1 changed files with 4 additions and 5 deletions
9
adl.py
9
adl.py
|
@ -101,11 +101,10 @@ def exit_ask():
|
||||||
|
|
||||||
# check for problematic title
|
# check for problematic title
|
||||||
def check_title(title):
|
def check_title(title):
|
||||||
for problem in PROBLEMATIC_TITLES:
|
if title in PROBLEMATIC_TITLES:
|
||||||
if problem == title:
|
title = GOOD_TITLES[PROBLEMATIC_TITLES.index(
|
||||||
title = GOOD_TITLES[PROBLEMATIC_TITLES.index(
|
title)].encode('utf-8')
|
||||||
problem)].encode('utf-8')
|
title = title.decode('utf-8')
|
||||||
title = title.decode('utf-8')
|
|
||||||
return title
|
return title
|
||||||
|
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue