Add possible title with some char replacements
This commit is contained in:
1 parent
8d058d9dc8
commit
b8bed627a8
1 file changed
+4
@@ -176,6 +176,10 @@ def possibleTitles(raw_title):
|
|||||||
titles.append(raw_title.lower())
|
titles.append(raw_title.lower())
|
||||||
titles.append(simplifyString(raw_title))
|
titles.append(simplifyString(raw_title))
|
||||||
|
|
||||||
|
# replace some chars
|
||||||
|
new_title = raw_title.replace('&', 'and')
|
||||||
|
titles.append(simplifyString(new_title))
|
||||||
|
|
||||||
return list(set(titles))
|
return list(set(titles))
|
||||||
|
|
||||||
def randomString(size = 8, chars = string.ascii_uppercase + string.digits):
|
def randomString(size = 8, chars = string.ascii_uppercase + string.digits):
|
||||||
|
|||||||
Reference in new issue
Block a user