optional episode date
This commit is contained in:
parent
ee442c4090
commit
14597c3974
1 changed files with 7 additions and 4 deletions
|
@ -348,10 +348,13 @@ class IMDb:
|
||||||
description = stripTags(description.split('Next US airings:')[0])
|
description = stripTags(description.split('Next US airings:')[0])
|
||||||
episodes[episode]['description'] = description
|
episodes[episode]['description'] = description
|
||||||
episodes[episode]['date'] = ''
|
episodes[episode]['date'] = ''
|
||||||
d = stripTags(match[4])
|
try:
|
||||||
d = d.replace('Original Air Date: ', '')
|
d = stripTags(match[4])
|
||||||
d = time.strftime("%Y-%m-%d", time.strptime(d, '%d %B %Y'))
|
d = d.replace('Original Air Date: ', '')
|
||||||
episodes[episode]['date'] = d
|
d = time.strftime("%Y-%m-%d", time.strptime(d, '%d %B %Y'))
|
||||||
|
episodes[episode]['date'] = d
|
||||||
|
except:
|
||||||
|
pass
|
||||||
except:
|
except:
|
||||||
import traceback
|
import traceback
|
||||||
print traceback.print_exc()
|
print traceback.print_exc()
|
||||||
|
|
Loading…
Reference in a new issue