extract publishDate from vimeo

This commit is contained in:
Thomas Pointhuber
2014-03-18 15:56:22 +01:00
parent 337bd6d907
commit 993271bed3
2 changed files with 7 additions and 1 deletions

View File

@@ -53,7 +53,7 @@ def response(resp):
- timedelta(hours=int(timeNumbers[0]))\
- timedelta(minutes=int(timeNumbers[1]))
else:
publishedDate =parser.parse(publishedDate)
publishedDate = parser.parse(publishedDate)
if publishedDate.year == 1900:
publishedDate = publishedDate.replace(year=datetime.now().year)