Repository navigation
feat: add asset track skipped to status enum - #100
Merged
Merged
Conversation
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>
jsanford8
approved these changes
Nov 12, 2026
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
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 returnsstatus: "skipped"and the spec lists it, butTrack.statusonly allowedpreparing,ready,erroredanddeleted, so deserializing the whole asset raised.Hand-patched pending a regen, mirroring muxinc/mux-ruby#102:
skippedtoTrack.statusallowed valuesstatusdescription to match the current specFixes #99
Example
Suggested review order
mux_python/models/track.pydocs/Track.mdsetup.py,gen/generator-config.json,mux_python/__init__.py,mux_python/api_client.py,mux_python/configuration.pyNote
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
skippedto theTrack.statusclient-side validation enum so asset responses that include skipped generated text tracks (e.g. subtitles requested on an asset with no audio) deserialize without raisingValueError.The
statusfield docs and model docstrings now describeskippedas a track that was not created because the asset does not support it. Package version is bumped 5.1.2 → 5.2.0 acrosssetup.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.