mirror of
https://github.com/unshackle-dl/unshackle.git
synced 2026-11-12 12:05:07 +00:00
Deployed 4ebe41f with MkDocs version: 1.6.1
This commit is contained in:
@@ -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">¶</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>
|
||||
|
||||
|
||||
Reference in New Issue
Block a user