diff options
| author | Mohamed Elashri <muhammadelashri@gmail.com> | 2022-09-30 23:06:54 +0000 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2022-09-30 23:06:54 +0000 |
| commit | 8d5653e60d5299979c0de5e55b1c5ca0bee8190c (patch) | |
| tree | 8dc02b7663a5c9c91b09483e4499a612d9823698 /searx/engines/core.py | |
| parent | 212c98c9f55dc602f57b4f01a73192450e9782b7 (diff) | |
| parent | 62324655ff0d2e6f234b3e31413877b4b4a7a9fa (diff) | |
Merge branch 'searxng:master' into master
Diffstat (limited to 'searx/engines/core.py')
| -rw-r--r-- | searx/engines/core.py | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/searx/engines/core.py b/searx/engines/core.py index 2a71a216c..2fa66e226 100644 --- a/searx/engines/core.py +++ b/searx/engines/core.py @@ -77,6 +77,7 @@ def response(resp): if url is None: continue + publishedDate = None time = source['publishedDate'] or source['depositedDate'] if time: publishedDate = datetime.fromtimestamp(time / 1000) @@ -106,8 +107,8 @@ def response(resp): # 'pages' : '', # 'number': '', 'doi': source['doi'], - 'issn': source['issn'], - 'isbn': source.get('isbn'), # exists in the rawRecordXml + 'issn': [x for x in [source.get('issn')] if x], + 'isbn': [x for x in [source.get('isbn')] if x], # exists in the rawRecordXml 'pdf_url': source.get('repositoryDocument', {}).get('pdfOrigin'), } ) |