Skip to main content

render_clip_names

Function render_clip_names 

Source
pub fn render_clip_names(
    requests: &[NamingRequest<'_>],
    config: &NamingConfig,
    colliding_albums: &BTreeSet<String>,
    colliding_ids: &BTreeSet<String>,
) -> Vec<RenderedName>
Expand description

Render every request’s relative path as a batch, disambiguating collisions.

The {id8} suffix is whole-library-stable: a clip whose id is in colliding_ids (the store-derived set of clip ids sharing an {id8} with another distinct clip, see colliding_clip_ids) gets the full clip id appended regardless of which other clips are in this batch, so trashing or --limit-excluding an id8-twin never renames the kept clip (#356). The two trailing batch passes remain as a correctness backstop for template shapes the id8 set cannot see (no {id8}/{id} placeholder) and for case/NFC collisions.