Skip to main content

Module sections

Module sections 

Source
Expand description

Section-header maps, one per content type. Port of the *_SECTIONS tables in XILP001_script_parser.py.

Constantsยง

CHAPTER_WORDS ๐Ÿ”’
DRAMA ๐Ÿ”’
LEGACY ๐Ÿ”’
The legacy map: every show-specific header ever added, merged under all the type maps so old scripts keep parsing.
LEGACY_TAIL ๐Ÿ”’
PODCAST ๐Ÿ”’

Functionsยง

audiobook_map ๐Ÿ”’
drama_map ๐Ÿ”’
from_pairs ๐Ÿ”’
get_section_map
Section map for a content type: the legacy table with the typeโ€™s own entries laid over it.
legacy_map ๐Ÿ”’
match_section
Section slug for a header line, or None. A subtitle-qualified header (ACT ONE: "Yesterday") matches on the part before the first colon.
podcast_map ๐Ÿ”’
special_map ๐Ÿ”’

Type Aliasesยง

Map ๐Ÿ”’