Markus Heiser ca57c7421b [fix] qwant engine - prevent exception on date/time value is None
Has been reported in [1], error messages::

  Error
       Error: ValueError
       Percentage: 0
       Parameters: ()
       File name: searx/engines/qwant.py:159
       Function: response
       Code: pub_date = datetime.fromtimestamp(item['date'], None)

    Error
        Error: TypeError
        Percentage: 0
        Parameters: ('an integer is required (got type NoneType)',)
        File name: searx/engines/qwant.py:196
        Function: response
       Code: pub_date = datetime.fromtimestamp(item['date'])

Fix timedelta from seconds to milliseconds [1], error message::

    Error
        Error: TypeError
        Percentage: 0
        Parameters: ('unsupported type for timedelta seconds component: NoneType',)
        File name: searx/engines/qwant.py:195
        Function: response
        Code: length = timedelta(seconds=item['duration'])

[1] https://github.com/searxng/searxng/issues/222

Signed-off-by: Markus Heiser <markus.heiser@darmarit.de>
2021-07-24 14:48:14 +02:00
..
2021-07-16 01:36:34 -07:00
2021-01-14 20:57:17 +01:00
2021-01-14 20:57:17 +01:00
2021-02-22 21:19:34 +01:00
2021-02-04 11:31:35 +01:00
2021-01-14 20:57:17 +01:00
2021-01-14 20:57:17 +01:00
2021-01-14 20:57:17 +01:00
2021-05-30 15:18:36 +02:00
2021-01-14 20:57:17 +01:00
2021-01-14 20:57:17 +01:00
2021-01-14 20:57:17 +01:00
2021-01-14 20:57:17 +01:00
2021-03-01 08:52:36 +01:00
2021-01-14 20:57:17 +01:00
2021-01-14 20:57:17 +01:00
2021-07-10 14:09:29 +00:00
2021-02-09 12:45:39 +01:00
2021-01-14 20:57:17 +01:00
2021-07-15 21:35:33 +02:00
2021-05-28 17:36:46 +02:00
2021-01-14 20:57:17 +01:00
2021-05-28 17:34:44 +02:00
2021-02-07 10:05:35 -03:00
2021-01-14 20:57:17 +01:00
2021-04-21 16:31:29 +02:00
2021-01-14 20:57:17 +01:00
2021-01-14 20:57:17 +01:00
2021-04-10 15:38:33 +02:00