• Detects season patterns between titles with debug logging. Wraps checkSeasonPattern to log matches when season/part/volume differences are found.

    Parameters

    • leftTitle: string

      The title from Kenmei (or left-hand side).

    • rightTitle: string

      The title from AniList (or right-hand side).

    Returns number

    Similarity score 0.95 if only season patterns differ, -1 if no pattern detected.

    export function checkSeasonPatterns(
    leftTitle: string,
    rightTitle: string,
    ): number {
    const result = checkSeasonPattern(leftTitle, rightTitle);

    if (result > 0) {
    console.debug(
    `[MangaSearchService] 🎯 Season pattern match found: "${leftTitle}" ↔ "${rightTitle}" (score: ${result})`,
    );
    console.debug(
    `[MangaSearchService] Likely same series with different season/part numbering`,
    );
    }

    return result;
    }