mirror of https://github.com/scrapy/scrapy.git
made url_is_from_spider work for tuples in extra_domain_names
--HG-- extra : convert_revision : svn%3Ab85faa78-f9eb-468e-a121-7cced6da292c%40666
This commit is contained in:
parent
a2d19760f3
commit
d1594df0cb
|
|
@ -22,7 +22,8 @@ def url_is_from_any_domain(url, domains):
|
|||
|
||||
def url_is_from_spider(url, spider):
|
||||
"""Return True if the url belongs to the given spider"""
|
||||
domains = [spider.domain_name] + spider.extra_domain_names
|
||||
domains = [spider.domain_name]
|
||||
domains.extend(spider.extra_domain_names)
|
||||
return url_is_from_any_domain(url, domains)
|
||||
|
||||
def urljoin_rfc(base, ref):
|
||||
|
|
|
|||
Loading…
Reference in New Issue