mirror of
https://github.com/dgtlmoon/changedetection.io.git
synced 2026-11-11 08:23:02 +00:00
Distill.io import bug fix when no tags assigned to a watch (#557)
This commit is contained in:
1 parent
2566de2aae
commit
a2a1d5ae90
1 file changed
+3
-6
@@ -92,7 +92,7 @@ class import_distill_io_json(Importer):
|
||||
|
||||
for d in data.get('data'):
|
||||
d_config = json.loads(d['config'])
|
||||
extras = {'title': d['name']}
|
||||
extras = {'title': d.get('name', None)}
|
||||
|
||||
if len(d['uri']) and good < 5000:
|
||||
try:
|
||||
@@ -114,12 +114,9 @@ class import_distill_io_json(Importer):
|
||||
except IndexError:
|
||||
pass
|
||||
|
||||
try:
|
||||
|
||||
if d.get('tags', False):
|
||||
extras['tag'] = ", ".join(d['tags'])
|
||||
except KeyError:
|
||||
pass
|
||||
except IndexError:
|
||||
pass
|
||||
|
||||
new_uuid = datastore.add_watch(url=d['uri'].strip(),
|
||||
extras=extras,
|
||||
|
||||
Reference in new issue
Block a user