Deployed 4ebe41f with MkDocs version: 1.6.1

This commit is contained in:
2026-07-07 23:37:56 +00:00
parent 7a802311e3
commit e4d714c091
3 changed files with 137 additions and 117 deletions
+6 -2
View File
@@ -6358,7 +6358,7 @@ It provides convenience functions for listing, sorting, and selecting tracks.</p
<a href="#unshackle.core.tracks.Tracks.sort_subtitles" class="headerlink" title="Permanent link">&para;</a></h3>
<div class="language-python doc-signature highlight"><pre><span></span><code><span id="__span-0-1"><a id="__codelineno-0-1" name="__codelineno-0-1" href="#__codelineno-0-1"></a><span class="nf">sort_subtitles</span><span class="p">(</span><span class="n">by_language</span><span class="o">=</span><span class="kc">None</span><span class="p">)</span>
<div class="language-python doc-signature highlight"><pre><span></span><code><span id="__span-0-1"><a id="__codelineno-0-1" name="__codelineno-0-1" href="#__codelineno-0-1"></a><span class="nf">sort_subtitles</span><span class="p">(</span><span class="n">by_language</span><span class="o">=</span><span class="kc">None</span><span class="p">,</span> <span class="n">type_priority</span><span class="o">=</span><span class="kc">None</span><span class="p">)</span>
</span></code></pre></div>
<div class="doc doc-contents ">
@@ -6384,7 +6384,11 @@ You may optionally provide a sequence of languages to prioritize to the top.</p>
<li>Hard of Hearing (SDH/CC)
(Least to most captions expected in the subtitle)</li>
</ul>
</details>
</details> <p>type_priority overrides the Language Group Order with an explicit ranking of
"forced", "normal", and "sdh" (cc counts as sdh); unlisted types fall to the end.
The first track after sorting receives the default flag at mux time, so this also
controls which subtitle type becomes default.</p>
</div>