Fix slower Zillow unit photo discovery path
This commit is contained in:
@@ -64,7 +64,7 @@ async function collectListingUrl(page) {
|
||||
});
|
||||
}
|
||||
|
||||
export async function discoverZillowListing(rawAddress) {
|
||||
export async function discoverZillowListing(rawAddress, options = {}) {
|
||||
const address = String(rawAddress || "").trim();
|
||||
const identity = parseAddressIdentity(address);
|
||||
const searchUrl = `https://www.zillow.com/homes/${encodeURIComponent(buildZillowAddressSlug(address))}_rb/`;
|
||||
@@ -125,6 +125,7 @@ export async function discoverZillowListing(rawAddress) {
|
||||
};
|
||||
},
|
||||
{
|
||||
timeoutMs: Number(options.timeoutMs || 0) || undefined,
|
||||
onTimeout: closeContext
|
||||
}
|
||||
);
|
||||
|
||||
Reference in New Issue
Block a user