Skip to content

Commit 7ad5ff2

Browse files
minor bug fix
1 parent ad7bed0 commit 7ad5ff2

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

extractnet/__init__.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
from extractnet.pipeline import Extractor
22

3-
__version__ = '2.0.3'
3+
__version__ = '2.0.4'
44

55

66
_LOADED_MODELS = {}

extractnet/metadata_extraction/metadata.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -77,7 +77,7 @@ def extract_json(tree, metadata):
7777
if '"publisher"' in elem.text:
7878
mymatch = JSON_PUBLISHER.search(elem.text)
7979
if mymatch and not ',' in mymatch.group(1):
80-
candidate = normalize_json(mymatch.group(1))
80+
candidate = url_normalizer(mymatch.group(1))
8181
if metadata['sitename'] is None or len(metadata['sitename']) < len(candidate):
8282
metadata['sitename'] = candidate
8383
if metadata['sitename'].startswith('http') and not candidate.startswith('http'):

0 commit comments

Comments
 (0)