optional episode date

This commit is contained in:
j 2007-09-17 08:40:02 +00:00
parent ee442c4090
commit 14597c3974

View file

@ -348,10 +348,13 @@ class IMDb:
description = stripTags(description.split('Next US airings:')[0])
episodes[episode]['description'] = description
episodes[episode]['date'] = ''
try:
d = stripTags(match[4])
d = d.replace('Original Air Date: ', '')
d = time.strftime("%Y-%m-%d", time.strptime(d, '%d %B %Y'))
episodes[episode]['date'] = d
except:
pass
except:
import traceback
print traceback.print_exc()