Fix slower Zillow unit photo discovery path

This commit is contained in:
2026-03-28 02:28:30 -05:00
parent 7690dc259b
commit 8fe451e8d0
11 changed files with 167 additions and 49 deletions

View File

@@ -60,7 +60,7 @@ async function collectListingUrl(page) {
});
}
export async function discoverHarListing(rawAddress) {
export async function discoverHarListing(rawAddress, options = {}) {
const address = String(rawAddress || "").trim();
const identity = parseAddressIdentity(address);
const searchUrl = buildSearchUrl(address);
@@ -121,6 +121,7 @@ export async function discoverHarListing(rawAddress) {
};
},
{
timeoutMs: Number(options.timeoutMs || 0) || undefined,
onTimeout: closeContext
}
);