mirror of
https://github.com/unshackle-dl/unshackle.git
synced 2026-11-27 11:25:08 +00:00
Compare commits
2
Commits
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
21da928859 | ||
|
|
0aa9d77af7 |
@@ -3957,6 +3957,12 @@ ignore it safely. See <a href="../../creating-a-service/#split-episodes">Split e
|
||||
<td>Output subtitle format.</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td><code>sub_font</code></td>
|
||||
<td>string</td>
|
||||
<td><code>null</code></td>
|
||||
<td>Font for subtitles converted to ASS; implies <code>sub_format</code> ASS. With another <code>sub_format</code> the request returns <code>400</code>.</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td><code>video_only</code> / <code>audio_only</code> / <code>subs_only</code> / <code>chapters_only</code></td>
|
||||
<td>boolean</td>
|
||||
<td><code>false</code></td>
|
||||
@@ -4113,6 +4119,12 @@ ignore it safely. See <a href="../../creating-a-service/#split-episodes">Split e
|
||||
<td>Renumber episodes to a TVDB season order. Falls back to the <code>tvdb_order</code> config option.</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td><code>continuous_episodes</code></td>
|
||||
<td>boolean</td>
|
||||
<td><code>false</code></td>
|
||||
<td>Number each season on from the season before it, so season two starts at episode 5 after four episodes. Season 0 and episode 0 keep their numbers. <code>wanted</code> selects by the new numbers, but the list endpoints show the numbers of the service.</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td><code>enrich</code></td>
|
||||
<td>boolean</td>
|
||||
<td><code>false</code></td>
|
||||
|
||||
@@ -3180,6 +3180,11 @@
|
||||
<td>-</td>
|
||||
<td>Output subtitle format (<code>SRT</code>/<code>srt</code>, <code>VTT</code>/<code>webvtt</code>, <code>ASS</code>/<code>ssa</code>, <code>TTML</code>, <code>SMI</code>, ...), or <code>original</code> to keep the source format.</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td><code>--sub-font</code></td>
|
||||
<td>-</td>
|
||||
<td>Font for subtitles converted to ASS, with the rest of the look from <code>subtitle.ass_style</code>. Implies <code>--sub-format ASS</code> and overrides a <code>sub_format</code> from the configuration file; a typed <code>--sub-format</code> of another format is an error.</td>
|
||||
</tr>
|
||||
</tbody>
|
||||
</table>
|
||||
<div class="admonition tip">
|
||||
@@ -3371,6 +3376,10 @@ configuration file.</p>
|
||||
<td><code>--tvdb-order</code></td>
|
||||
<td>Renumber episodes to a TVDB season order: <code>official</code> (aired), <code>dvd</code>, <code>absolute</code>, <code>alternate</code>, or <code>regional</code>. Needs <code>tvdb_api_key</code>.</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td><code>-ce</code> / <code>--continuous-episodes</code></td>
|
||||
<td>Number each season on from the season before it. After a season one of four episodes, season two starts at <code>S02E05</code>. Season 0 and episode 0 keep their numbers.</td>
|
||||
</tr>
|
||||
</tbody>
|
||||
</table>
|
||||
<div class="admonition note">
|
||||
|
||||
@@ -1298,6 +1298,17 @@
|
||||
</span>
|
||||
</a>
|
||||
|
||||
</li>
|
||||
|
||||
<li class="md-nav__item">
|
||||
<a href="#continuous-episode-numbers" class="md-nav__link">
|
||||
<span class="md-ellipsis">
|
||||
|
||||
Continuous episode numbers
|
||||
|
||||
</span>
|
||||
</a>
|
||||
|
||||
</li>
|
||||
|
||||
</ul>
|
||||
@@ -3123,6 +3134,17 @@
|
||||
</span>
|
||||
</a>
|
||||
|
||||
</li>
|
||||
|
||||
<li class="md-nav__item">
|
||||
<a href="#continuous-episode-numbers" class="md-nav__link">
|
||||
<span class="md-ellipsis">
|
||||
|
||||
Continuous episode numbers
|
||||
|
||||
</span>
|
||||
</a>
|
||||
|
||||
</li>
|
||||
|
||||
</ul>
|
||||
@@ -4416,6 +4438,11 @@ lookups but keep the IDs you give, set
|
||||
<td><code>--tvdb-order dvd</code></td>
|
||||
<td>Renumber episodes to a TVDB season order. Needs <code>tvdb_api_key</code>.</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td><code>-ce</code> / <code>--continuous-episodes</code></td>
|
||||
<td>-</td>
|
||||
<td>Number each season on from the season before it, so season two starts at <code>S02E05</code> after four episodes.</td>
|
||||
</tr>
|
||||
</tbody>
|
||||
</table>
|
||||
<div class="language-shell highlight"><span class="filename">Force the right IMDb match, and keep the service's own naming</span><pre><span></span><code><span id="__span-49-1"><a id="__codelineno-49-1" name="__codelineno-49-1" href="#__codelineno-49-1"></a>unshackle<span class="w"> </span>dl<span class="w"> </span>--imdb<span class="w"> </span>tt1375666<span class="w"> </span>EXAMPLE<span class="w"> </span><span class="m">81234567</span>
|
||||
@@ -4549,6 +4576,18 @@ contain Futurama's four movies. Those episodes keep their original numbering. If
|
||||
two episodes the same season/episode slot, and so the same filename, unshackle logs an
|
||||
error and leaves the numbering untouched. Pick an order that covers the whole series.</p>
|
||||
</div>
|
||||
<h3 id="continuous-episode-numbers">Continuous episode numbers<a class="headerlink" href="#continuous-episode-numbers" title="Permanent link">¶</a></h3>
|
||||
<p>Some anime release groups number each season on from the season before it. With
|
||||
<code>--continuous-episodes</code>, a season two that follows a four-episode season one starts at
|
||||
<code>S02E05</code>:</p>
|
||||
<div class="language-shell highlight"><span class="filename">Number season two on from season one</span><pre><span></span><code><span id="__span-52-1"><a id="__codelineno-52-1" name="__codelineno-52-1" href="#__codelineno-52-1"></a>unshackle<span class="w"> </span>dl<span class="w"> </span>-ce<span class="w"> </span>EXAMPLE<span class="w"> </span><span class="m">81234567</span>
|
||||
</span></code></pre></div>
|
||||
<p>The count comes from the episodes the service lists, so download from the series URL, not
|
||||
from a single season. A season the service does not list in your region is not counted.
|
||||
Season 0 and episode 0 keep their numbers, and a season that already starts past the
|
||||
season before it is not changed. The renumbering runs before <code>--wanted</code>, so select episodes
|
||||
by their new numbers, for example <code>-w S02E05</code>. A whole-season selection such as <code>-w S05</code>
|
||||
matches episodes up to E999 only.</p>
|
||||
<h2 id="configuration-defaults">Configuration defaults<a class="headerlink" href="#configuration-defaults" title="Permanent link">¶</a></h2>
|
||||
<p>You can set every flag on this page as a default in your configuration file so you do not
|
||||
have to type it each time, and you can scope defaults per service. See
|
||||
@@ -4638,6 +4677,11 @@ authoritative list.</p>
|
||||
<td>Output subtitle format.</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td><code>--sub-font</code></td>
|
||||
<td></td>
|
||||
<td>Font for subtitles converted to ASS; implies <code>--sub-format ASS</code>.</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td><code>--wanted</code></td>
|
||||
<td><code>-w</code></td>
|
||||
<td>Episode/season range, an air date, or a track number for a music release (<code>1-5</code>, <code>2x3</code>).</td>
|
||||
@@ -4747,6 +4791,11 @@ authoritative list.</p>
|
||||
<td></td>
|
||||
<td>Renumber episodes to a TVDB season order.</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td><code>-ce</code> / <code>--continuous-episodes</code></td>
|
||||
<td></td>
|
||||
<td>Number each season on from the season before it.</td>
|
||||
</tr>
|
||||
</tbody>
|
||||
</table>
|
||||
|
||||
|
||||
@@ -1077,6 +1077,17 @@
|
||||
</span>
|
||||
</a>
|
||||
|
||||
</li>
|
||||
|
||||
<li class="md-nav__item">
|
||||
<a href="#custom-font-and-style" class="md-nav__link">
|
||||
<span class="md-ellipsis">
|
||||
|
||||
Custom font and style
|
||||
|
||||
</span>
|
||||
</a>
|
||||
|
||||
</li>
|
||||
|
||||
<li class="md-nav__item">
|
||||
@@ -2368,6 +2379,17 @@
|
||||
</span>
|
||||
</a>
|
||||
|
||||
</li>
|
||||
|
||||
<li class="md-nav__item">
|
||||
<a href="#custom-font-and-style" class="md-nav__link">
|
||||
<span class="md-ellipsis">
|
||||
|
||||
Custom font and style
|
||||
|
||||
</span>
|
||||
</a>
|
||||
|
||||
</li>
|
||||
|
||||
<li class="md-nav__item">
|
||||
@@ -2615,6 +2637,10 @@ format-appropriate clean-up to make a single, valid file:</p>
|
||||
<td>Output subtitle format / conversion target (see <a href="#converting-subtitle-formats">conversion</a>).</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td><code>--sub-font</code></td>
|
||||
<td>Font for subtitles converted to ASS; implies <code>--sub-format ass</code> (see <a href="#custom-font-and-style">custom font and style</a>).</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td><code>--skip-subtitle-errors</code></td>
|
||||
<td>Skip a subtitle that fails to download instead of aborting the whole title.</td>
|
||||
</tr>
|
||||
@@ -2998,6 +3024,53 @@ in the name, so players and media managers can match them automatically:</p>
|
||||
<a href="#subtitle-configuration"><code>sidecar_format</code></a> config key sets the sidecar file format. Use
|
||||
a format name like <code>srt</code> or <code>vtt</code>, or <code>original</code> to keep each subtitle in its downloaded
|
||||
format.</p>
|
||||
<h2 id="custom-font-and-style">Custom font and style<a class="headerlink" href="#custom-font-and-style" title="Permanent link">¶</a></h2>
|
||||
<p>Services mostly deliver WebVTT, which players draw in their own plain font. To use a font
|
||||
of your choice, unshackle converts the subtitles to ASS and gives them one style:</p>
|
||||
<div class="language-shell highlight"><span class="filename">Convert to ASS in a custom font</span><pre><span></span><code><span id="__span-12-1"><a id="__codelineno-12-1" name="__codelineno-12-1" href="#__codelineno-12-1"></a>unshackle<span class="w"> </span>dl<span class="w"> </span>--sub-font<span class="w"> </span><span class="s2">"Noto Sans"</span><span class="w"> </span>EXAMPLE<span class="w"> </span><span class="m">81234567</span>
|
||||
</span></code></pre></div>
|
||||
<p><code>--sub-font</code> sets only the font name. The rest of the look comes from
|
||||
<a href="#subtitle-configuration"><code>subtitle.ass_style</code></a>, a mapping of style fields. A field takes its
|
||||
<a href="https://pysubs2.readthedocs.io/en/latest/api-reference.html#ssastyle-style-of-subtitles">pysubs2 name</a>
|
||||
(<code>primarycolor</code>) or its ASS name (<code>PrimaryColour</code>). Give sizes and margins for a 1080-line
|
||||
picture. unshackle writes a 1080-line canvas in the shape of the video, and the player scales
|
||||
it to the screen, so the text has the same size on a 720p, 1080p or 2160p video.</p>
|
||||
<div class="language-yaml highlight"><span class="filename">unshackle.yaml</span><pre><span></span><code><span id="__span-13-1"><a id="__codelineno-13-1" name="__codelineno-13-1" href="#__codelineno-13-1"></a><span class="nt">subtitle</span><span class="p">:</span>
|
||||
</span><span id="__span-13-2"><a id="__codelineno-13-2" name="__codelineno-13-2" href="#__codelineno-13-2"></a><span class="w"> </span><span class="nt">ass_style</span><span class="p">:</span>
|
||||
</span><span id="__span-13-3"><a id="__codelineno-13-3" name="__codelineno-13-3" href="#__codelineno-13-3"></a><span class="w"> </span><span class="nt">fontname</span><span class="p">:</span><span class="w"> </span><span class="l l-Scalar l-Scalar-Plain">Noto Sans</span>
|
||||
</span><span id="__span-13-4"><a id="__codelineno-13-4" name="__codelineno-13-4" href="#__codelineno-13-4"></a><span class="w"> </span><span class="nt">fontsize</span><span class="p">:</span><span class="w"> </span><span class="l l-Scalar l-Scalar-Plain">72</span>
|
||||
</span><span id="__span-13-5"><a id="__codelineno-13-5" name="__codelineno-13-5" href="#__codelineno-13-5"></a><span class="w"> </span><span class="nt">primarycolor</span><span class="p">:</span><span class="w"> </span><span class="s">"&H00FFFFFF"</span>
|
||||
</span><span id="__span-13-6"><a id="__codelineno-13-6" name="__codelineno-13-6" href="#__codelineno-13-6"></a><span class="w"> </span><span class="nt">marginv</span><span class="p">:</span><span class="w"> </span><span class="l l-Scalar l-Scalar-Plain">60</span>
|
||||
</span></code></pre></div>
|
||||
<p>The fields you leave out keep these defaults: <code>fontname: Arial</code>, <code>fontsize: 72</code>, <code>bold: true</code>,
|
||||
<code>outline: 3.6</code>, <code>shadow: 1.5</code>, <code>backcolor: "&HA0000000"</code>, <code>marginl: 100</code>, <code>marginr: 100</code> and
|
||||
<code>marginv: 60</code>. Write colours as <code>&HAABBGGRR</code> strings in quotes: in YAML, an unquoted <code>&</code> starts
|
||||
an anchor, and an unquoted number is not read as a colour.</p>
|
||||
<ul>
|
||||
<li>A style makes ASS the output format when you set no <code>--sub-format</code>. With <code>--sub-format ass</code>
|
||||
or <code>ssa</code> the style applies too. With another format, unshackle does not use the style.
|
||||
A <code>--sub-font</code> that you type overrides a <code>sub_format</code> from the configuration file, and stops
|
||||
the download with an error when you also type another <code>--sub-format</code>. A <code>sub_font</code> from the
|
||||
configuration file is ignored when the format is not ASS.</li>
|
||||
<li>The style applies only to subtitles that unshackle converts into ASS. A subtitle that is
|
||||
already SSA/ASS keeps its own styles, positions and canvas, and so does its SDH-stripped copy.</li>
|
||||
<li>The SDH-stripped copy of a converted track keeps the style.</li>
|
||||
<li>unshackle checks the style before it downloads. An unknown field or a value that does not
|
||||
fit its field stops the download with an error.</li>
|
||||
<li>With <code>output_mode: sidecar</code> and a <code>sidecar_format</code> other than <code>ass</code>, the sidecar files do
|
||||
not use the style.</li>
|
||||
<li>Closed captions that unshackle extracts from the video stay SRT.</li>
|
||||
</ul>
|
||||
<div class="admonition note">
|
||||
<p class="admonition-title">Player settings</p>
|
||||
<p>A player draws an ASS subtitle with its own style, so player options for text subtitles,
|
||||
such as the mpv options <code>sub-font</code> and <code>sub-font-size</code>, no longer apply. The text size
|
||||
follows the height of the video, so on a wide video such as 1920x800 the text is smaller
|
||||
than on a 1920x1080 video.</p>
|
||||
</div>
|
||||
<p>The font must be on your system or in <a href="../../reference/configuration/directories/"><code>directories.fonts</code></a>,
|
||||
in a folder with the family name, for example <code>fonts/Noto Sans/NotoSans-Regular.ttf</code>. unshackle
|
||||
attaches it to the MKV, as described below.</p>
|
||||
<h2 id="fonts-for-styled-subtitles">Fonts for styled subtitles<a class="headerlink" href="#fonts-for-styled-subtitles" title="Permanent link">¶</a></h2>
|
||||
<p>Styled SSA/ASS subtitles reference specific fonts by name. When unshackle muxes such a
|
||||
subtitle it scans it for the fonts it uses and attaches the matching font files to the
|
||||
@@ -3007,14 +3080,14 @@ relevant font packages.</p>
|
||||
<h2 id="subtitle-configuration">Subtitle configuration<a class="headerlink" href="#subtitle-configuration" title="Permanent link">¶</a></h2>
|
||||
<p>You can set defaults for all of the behaviour above in the <code>subtitle</code> block of your
|
||||
<a href="../../getting-started/configuration-file/">configuration file</a>:</p>
|
||||
<div class="language-yaml highlight"><span class="filename">unshackle.yaml</span><pre><span></span><code><span id="__span-12-1"><a id="__codelineno-12-1" name="__codelineno-12-1" href="#__codelineno-12-1"></a><span class="nt">subtitle</span><span class="p">:</span>
|
||||
</span><span id="__span-12-2"><a id="__codelineno-12-2" name="__codelineno-12-2" href="#__codelineno-12-2"></a><span class="w"> </span><span class="nt">strip_sdh</span><span class="p">:</span><span class="w"> </span><span class="l l-Scalar l-Scalar-Plain">true</span>
|
||||
</span><span id="__span-12-3"><a id="__codelineno-12-3" name="__codelineno-12-3" href="#__codelineno-12-3"></a><span class="w"> </span><span class="nt">preserve_formatting</span><span class="p">:</span><span class="w"> </span><span class="l l-Scalar l-Scalar-Plain">true</span>
|
||||
</span><span id="__span-12-4"><a id="__codelineno-12-4" name="__codelineno-12-4" href="#__codelineno-12-4"></a><span class="w"> </span><span class="nt">conversion_method</span><span class="p">:</span><span class="w"> </span><span class="l l-Scalar l-Scalar-Plain">auto</span>
|
||||
</span><span id="__span-12-5"><a id="__codelineno-12-5" name="__codelineno-12-5" href="#__codelineno-12-5"></a><span class="w"> </span><span class="nt">sdh_method</span><span class="p">:</span><span class="w"> </span><span class="l l-Scalar l-Scalar-Plain">auto</span>
|
||||
</span><span id="__span-12-6"><a id="__codelineno-12-6" name="__codelineno-12-6" href="#__codelineno-12-6"></a><span class="w"> </span><span class="nt">convert_before_strip</span><span class="p">:</span><span class="w"> </span><span class="l l-Scalar l-Scalar-Plain">true</span>
|
||||
</span><span id="__span-12-7"><a id="__codelineno-12-7" name="__codelineno-12-7" href="#__codelineno-12-7"></a><span class="w"> </span><span class="nt">output_mode</span><span class="p">:</span><span class="w"> </span><span class="l l-Scalar l-Scalar-Plain">mux</span>
|
||||
</span><span id="__span-12-8"><a id="__codelineno-12-8" name="__codelineno-12-8" href="#__codelineno-12-8"></a><span class="w"> </span><span class="nt">sidecar_format</span><span class="p">:</span><span class="w"> </span><span class="l l-Scalar l-Scalar-Plain">srt</span>
|
||||
<div class="language-yaml highlight"><span class="filename">unshackle.yaml</span><pre><span></span><code><span id="__span-14-1"><a id="__codelineno-14-1" name="__codelineno-14-1" href="#__codelineno-14-1"></a><span class="nt">subtitle</span><span class="p">:</span>
|
||||
</span><span id="__span-14-2"><a id="__codelineno-14-2" name="__codelineno-14-2" href="#__codelineno-14-2"></a><span class="w"> </span><span class="nt">strip_sdh</span><span class="p">:</span><span class="w"> </span><span class="l l-Scalar l-Scalar-Plain">true</span>
|
||||
</span><span id="__span-14-3"><a id="__codelineno-14-3" name="__codelineno-14-3" href="#__codelineno-14-3"></a><span class="w"> </span><span class="nt">preserve_formatting</span><span class="p">:</span><span class="w"> </span><span class="l l-Scalar l-Scalar-Plain">true</span>
|
||||
</span><span id="__span-14-4"><a id="__codelineno-14-4" name="__codelineno-14-4" href="#__codelineno-14-4"></a><span class="w"> </span><span class="nt">conversion_method</span><span class="p">:</span><span class="w"> </span><span class="l l-Scalar l-Scalar-Plain">auto</span>
|
||||
</span><span id="__span-14-5"><a id="__codelineno-14-5" name="__codelineno-14-5" href="#__codelineno-14-5"></a><span class="w"> </span><span class="nt">sdh_method</span><span class="p">:</span><span class="w"> </span><span class="l l-Scalar l-Scalar-Plain">auto</span>
|
||||
</span><span id="__span-14-6"><a id="__codelineno-14-6" name="__codelineno-14-6" href="#__codelineno-14-6"></a><span class="w"> </span><span class="nt">convert_before_strip</span><span class="p">:</span><span class="w"> </span><span class="l l-Scalar l-Scalar-Plain">true</span>
|
||||
</span><span id="__span-14-7"><a id="__codelineno-14-7" name="__codelineno-14-7" href="#__codelineno-14-7"></a><span class="w"> </span><span class="nt">output_mode</span><span class="p">:</span><span class="w"> </span><span class="l l-Scalar l-Scalar-Plain">mux</span>
|
||||
</span><span id="__span-14-8"><a id="__codelineno-14-8" name="__codelineno-14-8" href="#__codelineno-14-8"></a><span class="w"> </span><span class="nt">sidecar_format</span><span class="p">:</span><span class="w"> </span><span class="l l-Scalar l-Scalar-Plain">srt</span>
|
||||
</span></code></pre></div>
|
||||
<table>
|
||||
<thead>
|
||||
@@ -3086,6 +3159,12 @@ relevant font packages.</p>
|
||||
<td>a list of codecs, e.g. <code>[VTT, STPP, WVTT]</code></td>
|
||||
<td>Keep one copy of a subtitle that the service sends in several codecs: the earliest listed codec wins.</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td><code>ass_style</code></td>
|
||||
<td><em>(unset)</em></td>
|
||||
<td>a mapping of pysubs2 style fields</td>
|
||||
<td>The look of subtitles converted to ASS; makes ASS the default output format. See <a href="#custom-font-and-style">custom font and style</a>.</td>
|
||||
</tr>
|
||||
</tbody>
|
||||
</table>
|
||||
<h3 id="which-settings-to-change">Which settings to change<a class="headerlink" href="#which-settings-to-change" title="Permanent link">¶</a></h3>
|
||||
|
||||
BIN
Binary file not shown.
@@ -2627,6 +2627,17 @@
|
||||
</ul>
|
||||
</nav>
|
||||
|
||||
</li>
|
||||
|
||||
<li class="md-nav__item">
|
||||
<a href="#unshackle.core.drm.Widevine.from_playready" class="md-nav__link">
|
||||
<span class="md-ellipsis">
|
||||
|
||||
<code class="doc-symbol doc-symbol-toc doc-symbol-method"></code> from_playready
|
||||
|
||||
</span>
|
||||
</a>
|
||||
|
||||
</li>
|
||||
|
||||
<li class="md-nav__item">
|
||||
@@ -3537,6 +3548,17 @@
|
||||
</ul>
|
||||
</nav>
|
||||
|
||||
</li>
|
||||
|
||||
<li class="md-nav__item">
|
||||
<a href="#unshackle.core.drm.Widevine.from_playready" class="md-nav__link">
|
||||
<span class="md-ellipsis">
|
||||
|
||||
<code class="doc-symbol doc-symbol-toc doc-symbol-method"></code> from_playready
|
||||
|
||||
</span>
|
||||
</a>
|
||||
|
||||
</li>
|
||||
|
||||
<li class="md-nav__item">
|
||||
@@ -5873,6 +5895,31 @@ track exactly. A PSSH can name the KIDs of other renditions too.</p>
|
||||
<div class="doc doc-object doc-function">
|
||||
|
||||
|
||||
<h3 id="unshackle.core.drm.Widevine.from_playready" class="doc doc-heading">
|
||||
<code class="doc-symbol doc-symbol-heading doc-symbol-method"></code> <span class="doc doc-object-name doc-function-name">from_playready</span>
|
||||
|
||||
|
||||
<span class="doc doc-labels">
|
||||
<small class="doc doc-label doc-label-staticmethod"><code>staticmethod</code></small>
|
||||
</span>
|
||||
|
||||
<a href="#unshackle.core.drm.Widevine.from_playready" 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">from_playready</span><span class="p">(</span><span class="n">pssh</span><span class="p">)</span>
|
||||
</span></code></pre></div>
|
||||
|
||||
<div class="doc doc-contents ">
|
||||
|
||||
<p>A Widevine PSSH naming a v1 box's own KIDs, then the KIDs the PlayReady class reads from it.</p>
|
||||
<p>pywidevine's own conversion fails on a bare WRMHEADER and byte-swaps PlayReady KIDs.</p>
|
||||
|
||||
|
||||
</div>
|
||||
|
||||
</div>
|
||||
|
||||
<div class="doc doc-object doc-function">
|
||||
|
||||
|
||||
<h3 id="unshackle.core.drm.Widevine.from_track" class="doc doc-heading">
|
||||
<code class="doc-symbol doc-symbol-heading doc-symbol-method"></code> <span class="doc doc-object-name doc-function-name">from_track</span>
|
||||
|
||||
|
||||
@@ -2327,6 +2327,12 @@ default. In other words, config only fills in options you did not set on the com
|
||||
<td>Convert subtitles to this format (<code>srt</code>, <code>vtt</code>, <code>original</code>, ...).</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td><code>sub_font</code></td>
|
||||
<td>str</td>
|
||||
<td><em>(unset)</em></td>
|
||||
<td>Font for subtitles converted to ASS; implies <code>sub_format: ass</code>. Ignored when <code>sub_format</code> is another format.</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td><code>forced_subs</code></td>
|
||||
<td>bool</td>
|
||||
<td><code>false</code></td>
|
||||
@@ -2596,6 +2602,12 @@ in or writes them as sidecar files. See <a href="../../../guide/subtitles/">Subt
|
||||
<td>Languages to sort to the top, in the order you give. The rest keep the default order: original language first, then alphabetical. Nothing is removed.</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td><code>ass_style</code></td>
|
||||
<td>dict</td>
|
||||
<td><em>(unset)</em></td>
|
||||
<td>Style for subtitles converted to ASS, as pysubs2 or ASS style fields (<code>fontname</code>, <code>fontsize</code>, <code>primarycolor</code> or <code>PrimaryColour</code>, ...) for a 1080-line picture. Makes ASS the output format when <code>sub_format</code> is unset. See <a href="../../../guide/subtitles/#custom-font-and-style">Custom font and style</a>.</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td><code>dedupe_codecs</code></td>
|
||||
<td>list</td>
|
||||
<td><em>(unset)</em></td>
|
||||
|
||||
@@ -2164,7 +2164,9 @@ empty on titles that have none. You add it to the name yourself, and it never re
|
||||
or <code>{episode}</code>. Any series with a TVDB absolute order can use it, anime most often.
|
||||
Services can supply it, and
|
||||
<a href="../../../guide/downloading/#metadata-and-tagging"><code>--enrich</code></a> fills it in from TVDB.
|
||||
Use <code>{absolute?}</code> so the name stays clean when it is unknown.</p>
|
||||
Use <code>{absolute?}</code> so the name stays clean when it is unknown. To keep the season and
|
||||
continue the episode number instead (<code>S02E05</code>), use
|
||||
<a href="../../../guide/downloading/#continuous-episode-numbers"><code>--continuous-episodes</code></a>.</p>
|
||||
</div>
|
||||
<div class="admonition tip">
|
||||
<p class="admonition-title"><code>sports</code> names an event by year or date</p>
|
||||
|
||||
File diff suppressed because one or more lines are too long
Reference in New Issue
Block a user