Pulizia Titoli
This commit is contained in:
@@ -151,6 +151,7 @@ def cleantitle(title):
|
|||||||
cleantitle = ''
|
cleantitle = ''
|
||||||
if title:
|
if title:
|
||||||
if type(title) != str: title.decode('UTF-8')
|
if type(title) != str: title.decode('UTF-8')
|
||||||
|
title = scrapertools.unescape(title)
|
||||||
title = scrapertools.decodeHtmlentities(title)
|
title = scrapertools.decodeHtmlentities(title)
|
||||||
cleantitle = title.replace('"', "'").replace('×', 'x').replace('–', '-').strip()
|
cleantitle = title.replace('"', "'").replace('×', 'x').replace('–', '-').strip()
|
||||||
return cleantitle
|
return cleantitle
|
||||||
|
|||||||
Reference in New Issue
Block a user