Skip to main content

## Module from_jellyfin

Source
Expand description

Jellyfin → domain translation.

The ONLY place Jellyfin’s vocabulary touches the domain model. Adding a second provider later means a sibling `from_<provider>.rs`; the domain types and every consumer stay untouched.

Spec: docs/specs/frontend-domain-model.md

## Constants§

TICKS_PER_MILLISECOND 🔒
  Jellyfin ticks per second (10 million). A tick is 100 ns. The frontend must never see ticks — this is where they die.

## Functions§

kind_from_jellyfin
  Classify a Jellyfin `Type` string into a neutral `MediaKind`.
stream_kind_from_jellyfin
  Classify a Jellyfin media-stream `Type` string into a neutral `StreamKind`. Total and panic-free.
ticks_to_ms
  Convert a Jellyfin `RunTimeTicks` value to milliseconds.