debug(pl24): TEMP Hyundai/Kia raw HTML row log (katalogJob Faz 2 upstream doğrulama)
This commit is contained in:
@@ -3633,6 +3633,17 @@ export class PL24FordLegacyService {
|
||||
const groups: PL24DecodedCategory[] = [];
|
||||
const seen = new Set<string>();
|
||||
|
||||
// TEMP DEBUG (katalogJob Faz 2): dump raw Hyundai/Kia illustration-listing
|
||||
// HTML to see whether the row carries a description next to the figure code.
|
||||
if (/hyundai|kia/i.test(serviceName)) {
|
||||
const rows = html
|
||||
.split(/<tr\s/)
|
||||
.filter((s) => s.includes("tc-data-row"))
|
||||
.slice(0, 6)
|
||||
.map((s) => s.replace(/\s+/g, " ").slice(0, 400));
|
||||
this.logger.warn(`[hyundai-debug] ${serviceName} rows: ${JSON.stringify(rows)}`);
|
||||
}
|
||||
|
||||
const config = getServiceConfig(serviceName);
|
||||
const basePath = config ? `${config.basePath}/${serviceName}` : `/ford/${serviceName}`;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user