Skip to content

Commit affca88

Browse files
committed
fix: [item blur screenshot] check domain tags
1 parent b9faf8b commit affca88

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

bin/lib/objects/Items.py

+4-4
Original file line numberDiff line numberDiff line change
@@ -307,17 +307,17 @@ def get_meta_crawler(self, tags=None):
307307
"""
308308
:type tags: list
309309
"""
310-
if tags is None:
311-
tags = []
312310
crawler = {}
313311
if self.is_crawled():
314312
crawler['domain'] = self.get_domain()
315313
crawler['har'] = self.get_har()
316314
crawler['screenshot'] = self.get_screenshot()
317315
crawler['url'] = self.get_url()
318-
if not tags:
316+
317+
domain_tags = self.get_obj_tags('domain', '', crawler['domain'], r_list=True)
318+
if tags is None:
319319
tags = self.get_tags()
320-
crawler['is_tags_safe'] = self.is_tags_safe(tags)
320+
crawler['is_tags_safe'] = self.is_tags_safe(tags) and self.is_tags_safe(domain_tags)
321321
return crawler
322322

323323
def get_meta_lines(self, content=None):

0 commit comments

Comments
 (0)