Skip to content

Releases

yoto-swift 0.1.0

Choose a tag to compare

@kokluch kokluch released this 28 Nov 23:04

First public version.

Added

  • YotoAPI: OAuth 2 with PKCE and a token store (single-use refresh tokens rotated atomically,
    keychain or in-memory persistence).
  • Card, Chapter and Track: typed Codable models that keep every field they don't model (and
    known fields with unexpected values) and write them back unchanged. == ignores local-only
    values; Card.empty.
  • MYO playlists: list, load (with media URLs), create, update, copy, delete; streams and
    multi-track chapters.
  • Card editing: combine chapters into one multi-track chapter and separate them again, copy
    chapters from another playlist without uploading, move, rename, remove, remove duplicates.
  • Playback options: play from start, shuffle, hidden track numbers, end of track, online-only
    playback; track end commands (events.onEnd: stop, repeat).
  • Card details: category, ages, languages, author, narrator, description, genres
    (metadata.genres), copyright.
  • Audio upload with Yoto's transcoding (progress phases, optional server-side loudness
    normalization, SHA-256 deduplication); cover upload.
  • Icons: Yoto's public library and the user's own, IconCatalog search, number and title-matched
    icons; uploadIcon sends the raw image (with a filename), with a multipart form as fallback when
    Yoto answers 400 or 415.
  • Chapter.hasIcon (false for no icon or Yoto's "MYO Default Icon",
    DisplayIcon.myoDefaultMediaID) and CardHealth.missingIcons.
  • Chapter.IconSnapshot and Card.restoreIcon(_:ofChapter:) put a chapter's icons back exactly.
  • Family library and groups; players and their settings. Player and FamilyCard are Decodable
    and have public initializers, to rebuild them from a local cache.
  • CardArchive: local version history of playlists.
  • YotoRealtime: player control and live state over MQTT.
  • yoto CLI: login, logout, playlists, show, create, add, rename, delete, backup, players, status,
    play, pause, resume, stop, volume.