mirror of
https://github.com/searxng/searxng
synced 2024-01-01 19:24:07 +01:00
extract publishDate from vimeo
This commit is contained in:
parent
337bd6d907
commit
993271bed3
2 changed files with 7 additions and 1 deletions
|
|
@ -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)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue