diff --git a/bikegear-local-scraper/bikegear-scraper.js b/bikegear-local-scraper/bikegear-scraper.js index 482ef78..5263899 100644 --- a/bikegear-local-scraper/bikegear-scraper.js +++ b/bikegear-local-scraper/bikegear-scraper.js @@ -353,7 +353,7 @@ async function scrapeProductDetail(productUrl, brandName) { url: productUrl, sku: jsonLd.sku || productUrl.split("/").pop(), name: jsonLd.name || "", - brand: jsonLd.brand?.name || brandName, + brand: brandName || jsonLd.brand?.name || "BikeGear", price, currency: jsonLd.offers?.priceCurrency || "INR", availability: jsonLd.offers?.availability?.replace("https://schema.org/", "") || "Unknown", diff --git a/src/business-logic/import-pipeline/sources/bikegear/scraper.js b/src/business-logic/import-pipeline/sources/bikegear/scraper.js index 8dfe1fd..c9f292f 100644 --- a/src/business-logic/import-pipeline/sources/bikegear/scraper.js +++ b/src/business-logic/import-pipeline/sources/bikegear/scraper.js @@ -561,7 +561,7 @@ async function scrapeProductDetail(productUrl, brandName, refererUrl = null) { url: productUrl, sku: jsonLd.sku || productUrl.split("/").pop(), name: jsonLd.name || "", - brand: jsonLd.brand?.name || brandName, + brand: brandName || jsonLd.brand?.name || "BikeGear", price, currency, availability: jsonLd.offers?.availability?.replace("https://schema.org/", "") || "Unknown",