| Metadata | Value |
|---|---|
| Status | Completed |
| Version | 1.0.3 |
| Last Updated | 2026-02-02 |
| Author | Sangeetha Grantha Team |
| Related Tracks | TRACK-001 (Bulk Import), TRACK-029 (Kshetra/Deity) |
Extract all language/script variants of lyrics in a single scrape from pages that publish multiple scripts (e.g. Guru Guha – Bala Kuchambike: English, Devanagari, Tamil, Telugu, Kannada, Malayalam), and create one lyric variant per language/script when approving the import.
lyrics string (and optional sections). Approve flow creates at most one lyric variant (e.g. Latin/primary). Other scripts on the page are ignored.lyricVariants: [{ language: 'SA', script: 'DEVANAGARI', sections: [...] }, { language: 'TA', script: 'TAMIL', sections: [...] }, ...]), and approve should create multiple lyric variants in one go.ScrapedKrithiMetadata and import-approve flow; creating multiple lyric variants from one import.ScrapedKrithiMetadata (or add) with a list of lyric variants, e.g. lyricVariants: List<ScrapedLyricVariantDto> where each has language, script, sections (or lyrics + optional section breakdown).lyrics/sections for backward compatibility or as fallback; (2) add “If the page contains lyrics in multiple languages or scripts, also populate lyricVariants with one entry per language/script and the corresponding text/sections.”ScrapedLyricVariantDto (language, script, sections or full lyrics).metadata.lyricVariants is non-empty, create one krithi_lyric_variant per scraped variant (with correct language/script), then create sections and krithi_lyric_sections per variant from scraped sections.metadata.lyrics/metadata.sections exist, keep current behaviour (single primary variant).krithi_lyric_variants, krithi_lyric_sections, krithi_sections (existing).