Extend title helper

This commit is contained in:
Ruud
2014-03-08 22:14:54 +01:00
parent 274e2c1cc2
commit f5d29eafe0

View File

@@ -236,8 +236,11 @@ def getTitle(media_dict):
try:
return media_dict['info']['titles'][0]
except:
log.error('Could not get title for %s', media_dict.get('identifier'))
return None
try:
return media_dict['media']['info']['titles'][0]
except:
log.error('Could not get title for %s', media_dict.get('identifier'))
return None
log.error('Could not get title for %s', media_dict['identifier'])
return None