Browse Source

Extend title helper

pull/3111/head
Ruud 11 years ago
parent
commit
f5d29eafe0
  1. 3
      couchpotato/core/helpers/variable.py

3
couchpotato/core/helpers/variable.py

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

Loading…
Cancel
Save