Skip to content

feat: add asset track skipped to status enum - #100

Merged
philcluff merged 1 commit into
masterfrom
pc/track-skipped-status
Nov 12, 2026
Merged

philcluff merged 1 commit into
masterfrom
pc/track-skipped-status

Conversation

@philcluff

@philcluff philcluff commented Nov 12, 2026 •

Copy link
Copy Markdown
Contributor

Summary

GET /video/v1/assets/{ASSET_ID} fails when an asset has a generated text track that Mux skipped (e.g. generated subtitles on an asset with no audio). The API returns status: "skipped" and the spec lists it, but Track.status only allowed preparing, ready, errored and deleted, so deserializing the whole asset raised.

Hand-patched pending a regen, mirroring muxinc/mux-ruby#102:

  • Add skipped to Track.status allowed values
  • Update the status description to match the current spec
  • Bump to 5.2.0

Fixes #99

Example

import mux_python
mux_python.Track(type="text", status="skipped")
# before: ValueError: Invalid value for `status` (skipped), must be one of ['preparing', 'ready', 'errored', 'deleted']
# after:  works

Suggested review order

  1. mux_python/models/track.py
  2. docs/Track.md
  3. Version bump: setup.py, gen/generator-config.json, mux_python/__init__.py, mux_python/api_client.py, mux_python/configuration.py

Note

Low Risk
Narrow model/doc fix aligned with the API spec; version bump only. No auth or behavioral changes beyond accepting one more enum value on deserialize.

Overview
Adds skipped to the Track.status client-side validation enum so asset responses that include skipped generated text tracks (e.g. subtitles requested on an asset with no audio) deserialize without raising ValueError.

The status field docs and model docstrings now describe skipped as a track that was not created because the asset does not support it. Package version is bumped 5.1.2 → 5.2.0 across setup.py, generator config, __version__, User-Agent, and debug report strings.

Reviewed by Cursor Bugbot for commit 2133e7f. Bugbot is set up for automated code reviews on this repo. Configure here.

The API returns `skipped` for generated text tracks it couldn't create
(e.g. generated subtitles on an asset with no audio), and the spec lists
it, but `Track.status` rejected it, so deserializing the whole asset
failed. Hand-patched pending a regen; bumps to 5.2.0.

Fixes #99

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
@philcluff
philcluff requested a review from a team as a code owner November 12, 2026 11:02
@philcluff
philcluff merged commit 66b4ae2 into master Nov 12, 2026
2 checks passed
@philcluff
philcluff deleted the pc/track-skipped-status branch November 12, 2026 17:07
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Track.status rejects skipped, which the API returns and the OpenAPI spec lists

2 participants