fix: specials/news.py
per contentLanguage che sono liste
This commit is contained in:
+7
-2
@@ -417,8 +417,13 @@ def get_title(item):
|
|||||||
title = re.compile("\[/*I\]", re.DOTALL).sub("", title)
|
title = re.compile("\[/*I\]", re.DOTALL).sub("", title)
|
||||||
|
|
||||||
title = '[B]'+title+'[/B]'
|
title = '[B]'+title+'[/B]'
|
||||||
if (type(item.contentLanguage) != list and 'ITA' not in item.contentLanguage) or item.contentLanguage != 'ITA':
|
if type(item.contentLanguage) == list and len(item.contentLanguage) ==1:
|
||||||
title += support.typo(item.contentLanguage, '_ [] color kod')
|
if 'ITA' not in item.contentLanguage:
|
||||||
|
title += support.typo(item.contentLanguage[0], '_ [] color kod')
|
||||||
|
elif type(item.contentLanguage) != list and item.contentLanguage != 'ITA':
|
||||||
|
title += support.typo(item.contentLanguage, '_ [] color kod')
|
||||||
|
else:
|
||||||
|
title += item.contentLanguage
|
||||||
if item.quality:
|
if item.quality:
|
||||||
title += support.typo(item.quality, '_ [] color kod')
|
title += support.typo(item.quality, '_ [] color kod')
|
||||||
return title
|
return title
|
||||||
|
|||||||
Reference in New Issue
Block a user