This commit is contained in:
@@ -106,7 +106,13 @@ export async function checkStockStatus(url: string): Promise<ScrapeResult> {
|
||||
status = 'in_stock';
|
||||
} else {
|
||||
// Sold-out / unavailable phrases — substring match on normalized button text.
|
||||
// Ubiquiti shows different sold-out text depending on auth state:
|
||||
// logged out → "Login for Notifications" (our scraper always sees this)
|
||||
// logged in → "Notify me when available"
|
||||
// Both mean the item is unavailable. Keep both, plus common siblings.
|
||||
const soldOutPhrases = [
|
||||
'login for notifications',
|
||||
'login for updates',
|
||||
'notify me when available',
|
||||
'notify me',
|
||||
'sold out',
|
||||
|
||||
Reference in New Issue
Block a user