Deployed 6758d9e4 with MkDocs version: 1.6.1

This commit is contained in:
2026-11-29 17:53:08 +00:00
parent 510e27b0fc
commit d500948285
8 changed files with 207 additions and 172 deletions
+5
View File
@@ -2504,6 +2504,11 @@ Click <code>cli</code> entry point plus three abstract methods.</p>
<td>Set <code>True</code> when the catalogue is anime, so metadata lookups prefer AniList. A title's own <code>anime</code> flag overrides it.</td> <td>Set <code>True</code> when the catalogue is anime, so metadata lookups prefer AniList. A title's own <code>anime</code> flag overrides it.</td>
</tr> </tr>
<tr> <tr>
<td><code>METADATA_PROVIDER</code></td>
<td><code>Optional[str]</code></td>
<td>Set it, such as to <code>"tmdb"</code>, when an index keeps your catalogue's titles only in a form your service does not use (romanized, for one), and another provider finds them by the name your service gives. Lookups try that provider first. It only reorders <code>metadata_providers</code> and never adds a provider the user left out. A title's own <code>metadata_provider</code> overrides it.</td>
</tr>
<tr>
<td><code>DAILY</code></td> <td><code>DAILY</code></td>
<td><code>bool</code></td> <td><code>bool</code></td>
<td>Set <code>True</code> when the catalogue is daily/date-based (talk shows, news, sports), so unshackle names episodes by air date. A title's own <code>daily</code> flag overrides it.</td> <td>Set <code>True</code> when the catalogue is daily/date-based (talk shows, news, sports), so unshackle names episodes by air date. A title's own <code>daily</code> flag overrides it.</td>
+6
View File
@@ -3625,6 +3625,12 @@ through the <code>wanted</code> parameter.</p>
<td>episode, movie</td> <td>episode, movie</td>
<td>The title is anime, so metadata lookups prefer AniList. Set from the title, or from the service's <code>ANIME</code> class attribute.</td> <td>The title is anime, so metadata lookups prefer AniList. Set from the title, or from the service's <code>ANIME</code> class attribute.</td>
</tr> </tr>
<tr>
<td><code>metadata_provider</code></td>
<td>string</td>
<td>episode, movie</td>
<td>The metadata provider that lookups for this title try first. Set from the title, or from the service's <code>METADATA_PROVIDER</code> class attribute. Sent only when set.</td>
</tr>
</tbody> </tbody>
</table> </table>
<div class="admonition info"> <div class="admonition info">
+5
View File
@@ -2738,6 +2738,11 @@ Two kinds of members matter: <strong>class variables</strong> that give the deta
<td>The catalogue is anime, so metadata lookups prefer AniList. A title's own <code>anime</code> flag overrides it.</td> <td>The catalogue is anime, so metadata lookups prefer AniList. A title's own <code>anime</code> flag overrides it.</td>
</tr> </tr>
<tr> <tr>
<td><code>METADATA_PROVIDER</code></td>
<td><code>Optional[str]</code></td>
<td>The metadata provider the catalogue resolves through, such as <code>"tmdb"</code>. Lookups try it first. It only reorders <code>metadata_providers</code> and never adds a provider the user left out. A title's own <code>metadata_provider</code> overrides it.</td>
</tr>
<tr>
<td><code>DAILY</code></td> <td><code>DAILY</code></td>
<td><code>bool</code></td> <td><code>bool</code></td>
<td>The catalogue is daily/date-based, so unshackle names episodes by air date. A title's own <code>daily</code> flag overrides it.</td> <td>The catalogue is daily/date-based, so unshackle names episodes by air date. A title's own <code>daily</code> flag overrides it.</td>
+1 -1
View File
@@ -3391,7 +3391,7 @@ configuration file.</p>
<p class="admonition-title">One ID at a time</p> <p class="admonition-title">One ID at a time</p>
<p>You cannot combine <code>--tmdb</code>, <code>--imdb</code> and <code>--tvdb</code>. Give one and unshackle finds the <p>You cannot combine <code>--tmdb</code>, <code>--imdb</code> and <code>--tvdb</code>. Give one and unshackle finds the
others from it, and writes all three to the tags. <code>--anilist</code> is outside that rule and pairs others from it, and writes all three to the tags. <code>--anilist</code> is outside that rule and pairs
with one of them, which is how you attach a western ID to an anime title. with one of them, which is how you set the western ID of an anime title yourself.
An ID with no metadata provider that can find it, such as <code>--tmdb</code> with no <code>tmdb_api_key</code>, An ID with no metadata provider that can find it, such as <code>--tmdb</code> with no <code>tmdb_api_key</code>,
fails before the download starts. <code>--anilist</code> needs no API key, so it never fails this check.</p> fails before the download starts. <code>--anilist</code> needs no API key, so it never fails this check.</p>
</div> </div>
+19 -4
View File
@@ -4540,7 +4540,7 @@ operates when you set its config key:</p>
<td><em>(no config key needed)</em></td> <td><em>(no config key needed)</em></td>
<td>yes</td> <td>yes</td>
<td>yes, worked out from the country of origin, such as <code>ja</code></td> <td>yes, worked out from the country of origin, such as <code>ja</code></td>
<td>AniList</td> <td>AniList, and TMDB, IMDb and TVDB from an ID map</td>
</tr> </tr>
</tbody> </tbody>
</table> </table>
@@ -4555,6 +4555,9 @@ download anime. <a href="../../reference/configuration/misc/#external-api-keys">
sets which of the three AniList title variants unshackle uses.</p> sets which of the three AniList title variants unshackle uses.</p>
<p>A service can also mark its titles as anime. For those titles unshackle tries AniList <p>A service can also mark its titles as anime. For those titles unshackle tries AniList
first. When AniList has no match, it falls through to the normal order.</p> first. When AniList has no match, it falls through to the normal order.</p>
<p>A service can also name the metadata provider its catalogue resolves through. unshackle
tries that provider first, also before AniList for an anime title, but never adds one that
<code>metadata_providers</code> leaves out.</p>
</div> </div>
<p>Each ID goes to the providers that read that kind of ID, in <p>Each ID goes to the providers that read that kind of ID, in
<a href="../../reference/configuration/misc/#external-api-keys"><code>metadata_providers</code></a> order:</p> <a href="../../reference/configuration/misc/#external-api-keys"><code>metadata_providers</code></a> order:</p>
@@ -4564,14 +4567,26 @@ first. When AniList has no match, it falls through to the normal order.</p>
out of the box, and an OMDb API key only matters when IMDb has no answer.</li> out of the box, and an OMDb API key only matters when IMDb has no answer.</li>
<li><code>--tvdb</code> reads TVDB. It needs <code>tvdb_api_key</code>.</li> <li><code>--tvdb</code> reads TVDB. It needs <code>tvdb_api_key</code>.</li>
<li><code>--anilist</code> reads AniList, which needs no API key. It supplies the title, the year and the <li><code>--anilist</code> reads AniList, which needs no API key. It supplies the title, the year and the
original language, and writes an AniList tag. It knows no TMDB, IMDB or TVDB ID, so pair it original language, and writes an AniList tag. AniList knows no TMDB, IMDB or TVDB ID, so
with <code>--tmdb</code>, <code>--imdb</code> or <code>--tvdb</code> when you want those tags as well.</li> unshackle takes them from the <a href="https://github.com/Fribb/anime-lists">anime-lists</a> ID map.
Pair it with <code>--tmdb</code>, <code>--imdb</code> or <code>--tvdb</code> when the map has no entry for the title, or
a wrong one. An ID that you give always wins over the map.</li>
</ul> </ul>
<p>Give <strong>one</strong> of <code>--tmdb</code>, <code>--imdb</code> and <code>--tvdb</code>. You cannot combine them, because one ID <p>Give <strong>one</strong> of <code>--tmdb</code>, <code>--imdb</code> and <code>--tvdb</code>. You cannot combine them, because one ID
does the job on its own: unshackle finds the other two from it and writes all three to the does the job on its own: unshackle finds the other two from it and writes all three to the
tags. tags.
Passing two is an error rather than a silent choice between them. <code>--anilist</code> is the exception Passing two is an error rather than a silent choice between them. <code>--anilist</code> is the exception
and still pairs with one of the three, which is how you tag an anime title with a western ID.</p> and still pairs with one of the three, which is how you set the western ID of an anime title
yourself.</p>
<div class="admonition note">
<p class="admonition-title">The AniList ID map</p>
<p>An AniList match, from a search or from <code>--anilist</code>, has no TMDB, IMDb or TVDB ID. unshackle
then looks the AniList ID up in the anime-lists ID map. It downloads the map (about 7 MB) the
first time that it needs it, and keeps it in the cache for a week. When the match already has a
western ID that differs from the map, unshackle does not use the map. A movie takes only a TMDB movie ID, and a series takes the
IDs of the whole series, also for a later season. When the map cannot download, the match
keeps only its AniList ID.</p>
</div>
<p>The ID you give must have a metadata provider that can find it, so unshackle makes sure of <p>The ID you give must have a metadata provider that can find it, so unshackle makes sure of
that before it downloads anything. <code>--tmdb</code> without <code>tmdb_api_key</code>, or an ID whose metadata that before it downloads anything. <code>--tmdb</code> without <code>tmdb_api_key</code>, or an ID whose metadata
providers your <code>metadata_providers</code> list leaves out, fails immediately with a message naming providers your <code>metadata_providers</code> list leaves out, fails immediately with a message naming
+166 -166
View File
@@ -4501,8 +4501,7 @@ option <code>chapter_fallback_name</code>. For example, <code>"Chapter {i:02}"</
<details class="mkdocstrings-source"> <details class="mkdocstrings-source">
<summary>Source code in <code>unshackle/core/title_source.py</code></summary> <summary>Source code in <code>unshackle/core/title_source.py</code></summary>
<div class="language-python highlight"><table class="highlighttable"><tr><td class="linenos"><div class="linenodiv"><pre><span></span><span class="normal"><a href="#unshackle.core.service.Service.cache_identity--source--__codelineno-0-129">129</a></span> <div class="language-python highlight"><table class="highlighttable"><tr><td class="linenos"><div class="linenodiv"><pre><span></span><span class="normal"><a href="#unshackle.core.service.Service.cache_identity--source--__codelineno-0-130">130</a></span>
<span class="normal"><a href="#unshackle.core.service.Service.cache_identity--source--__codelineno-0-130">130</a></span>
<span class="normal"><a href="#unshackle.core.service.Service.cache_identity--source--__codelineno-0-131">131</a></span> <span class="normal"><a href="#unshackle.core.service.Service.cache_identity--source--__codelineno-0-131">131</a></span>
<span class="normal"><a href="#unshackle.core.service.Service.cache_identity--source--__codelineno-0-132">132</a></span> <span class="normal"><a href="#unshackle.core.service.Service.cache_identity--source--__codelineno-0-132">132</a></span>
<span class="normal"><a href="#unshackle.core.service.Service.cache_identity--source--__codelineno-0-133">133</a></span> <span class="normal"><a href="#unshackle.core.service.Service.cache_identity--source--__codelineno-0-133">133</a></span>
@@ -4512,18 +4511,19 @@ option <code>chapter_fallback_name</code>. For example, <code>"Chapter {i:02}"</
<span class="normal"><a href="#unshackle.core.service.Service.cache_identity--source--__codelineno-0-137">137</a></span> <span class="normal"><a href="#unshackle.core.service.Service.cache_identity--source--__codelineno-0-137">137</a></span>
<span class="normal"><a href="#unshackle.core.service.Service.cache_identity--source--__codelineno-0-138">138</a></span> <span class="normal"><a href="#unshackle.core.service.Service.cache_identity--source--__codelineno-0-138">138</a></span>
<span class="normal"><a href="#unshackle.core.service.Service.cache_identity--source--__codelineno-0-139">139</a></span> <span class="normal"><a href="#unshackle.core.service.Service.cache_identity--source--__codelineno-0-139">139</a></span>
<span class="normal"><a href="#unshackle.core.service.Service.cache_identity--source--__codelineno-0-140">140</a></span></pre></div></td><td class="code"><div><pre><span></span><code><span id="unshackle.core.service.Service.cache_identity--source--__span-0-129"><a id="unshackle.core.service.Service.cache_identity--source--__codelineno-0-129" name="unshackle.core.service.Service.cache_identity--source--__codelineno-0-129"></a><span class="k">def</span><span class="w"> </span><span class="nf">cache_identity</span><span class="p">(</span><span class="bp">self</span><span class="p">)</span> <span class="o">-&gt;</span> <span class="n">CacheIdentity</span><span class="p">:</span> <span class="normal"><a href="#unshackle.core.service.Service.cache_identity--source--__codelineno-0-140">140</a></span>
</span><span id="unshackle.core.service.Service.cache_identity--source--__span-0-130"><a id="unshackle.core.service.Service.cache_identity--source--__codelineno-0-130" name="unshackle.core.service.Service.cache_identity--source--__codelineno-0-130"></a><span class="w"> </span><span class="sd">"""The cache, and the title ID, region and account that this source files its cached titles and metadata under.</span> <span class="normal"><a href="#unshackle.core.service.Service.cache_identity--source--__codelineno-0-141">141</a></span></pre></div></td><td class="code"><div><pre><span></span><code><span id="unshackle.core.service.Service.cache_identity--source--__span-0-130"><a id="unshackle.core.service.Service.cache_identity--source--__codelineno-0-130" name="unshackle.core.service.Service.cache_identity--source--__codelineno-0-130"></a><span class="k">def</span><span class="w"> </span><span class="nf">cache_identity</span><span class="p">(</span><span class="bp">self</span><span class="p">)</span> <span class="o">-&gt;</span> <span class="n">CacheIdentity</span><span class="p">:</span>
</span><span id="unshackle.core.service.Service.cache_identity--source--__span-0-131"><a id="unshackle.core.service.Service.cache_identity--source--__codelineno-0-131" name="unshackle.core.service.Service.cache_identity--source--__codelineno-0-131"></a> </span><span id="unshackle.core.service.Service.cache_identity--source--__span-0-131"><a id="unshackle.core.service.Service.cache_identity--source--__codelineno-0-131" name="unshackle.core.service.Service.cache_identity--source--__codelineno-0-131"></a><span class="w"> </span><span class="sd">"""The cache, and the title ID, region and account that this source files its cached titles and metadata under.</span>
</span><span id="unshackle.core.service.Service.cache_identity--source--__span-0-132"><a id="unshackle.core.service.Service.cache_identity--source--__codelineno-0-132" name="unshackle.core.service.Service.cache_identity--source--__codelineno-0-132"></a><span class="sd"> A service keeps its title ID in ``title`` or ``title_id``, whichever it sets.</span> </span><span id="unshackle.core.service.Service.cache_identity--source--__span-0-132"><a id="unshackle.core.service.Service.cache_identity--source--__codelineno-0-132" name="unshackle.core.service.Service.cache_identity--source--__codelineno-0-132"></a>
</span><span id="unshackle.core.service.Service.cache_identity--source--__span-0-133"><a id="unshackle.core.service.Service.cache_identity--source--__codelineno-0-133" name="unshackle.core.service.Service.cache_identity--source--__codelineno-0-133"></a><span class="sd"> """</span> </span><span id="unshackle.core.service.Service.cache_identity--source--__span-0-133"><a id="unshackle.core.service.Service.cache_identity--source--__codelineno-0-133" name="unshackle.core.service.Service.cache_identity--source--__codelineno-0-133"></a><span class="sd"> A service keeps its title ID in ``title`` or ``title_id``, whichever it sets.</span>
</span><span id="unshackle.core.service.Service.cache_identity--source--__span-0-134"><a id="unshackle.core.service.Service.cache_identity--source--__codelineno-0-134" name="unshackle.core.service.Service.cache_identity--source--__codelineno-0-134"></a> <span class="k">if</span> <span class="nb">hasattr</span><span class="p">(</span><span class="bp">self</span><span class="p">,</span> <span class="s2">"title"</span><span class="p">):</span> </span><span id="unshackle.core.service.Service.cache_identity--source--__span-0-134"><a id="unshackle.core.service.Service.cache_identity--source--__codelineno-0-134" name="unshackle.core.service.Service.cache_identity--source--__codelineno-0-134"></a><span class="sd"> """</span>
</span><span id="unshackle.core.service.Service.cache_identity--source--__span-0-135"><a id="unshackle.core.service.Service.cache_identity--source--__codelineno-0-135" name="unshackle.core.service.Service.cache_identity--source--__codelineno-0-135"></a> <span class="n">title_id</span> <span class="o">=</span> <span class="bp">self</span><span class="o">.</span><span class="n">title</span> </span><span id="unshackle.core.service.Service.cache_identity--source--__span-0-135"><a id="unshackle.core.service.Service.cache_identity--source--__codelineno-0-135" name="unshackle.core.service.Service.cache_identity--source--__codelineno-0-135"></a> <span class="k">if</span> <span class="nb">hasattr</span><span class="p">(</span><span class="bp">self</span><span class="p">,</span> <span class="s2">"title"</span><span class="p">):</span>
</span><span id="unshackle.core.service.Service.cache_identity--source--__span-0-136"><a id="unshackle.core.service.Service.cache_identity--source--__codelineno-0-136" name="unshackle.core.service.Service.cache_identity--source--__codelineno-0-136"></a> <span class="k">elif</span> <span class="nb">hasattr</span><span class="p">(</span><span class="bp">self</span><span class="p">,</span> <span class="s2">"title_id"</span><span class="p">):</span> </span><span id="unshackle.core.service.Service.cache_identity--source--__span-0-136"><a id="unshackle.core.service.Service.cache_identity--source--__codelineno-0-136" name="unshackle.core.service.Service.cache_identity--source--__codelineno-0-136"></a> <span class="n">title_id</span> <span class="o">=</span> <span class="bp">self</span><span class="o">.</span><span class="n">title</span>
</span><span id="unshackle.core.service.Service.cache_identity--source--__span-0-137"><a id="unshackle.core.service.Service.cache_identity--source--__codelineno-0-137" name="unshackle.core.service.Service.cache_identity--source--__codelineno-0-137"></a> <span class="n">title_id</span> <span class="o">=</span> <span class="bp">self</span><span class="o">.</span><span class="n">title_id</span> </span><span id="unshackle.core.service.Service.cache_identity--source--__span-0-137"><a id="unshackle.core.service.Service.cache_identity--source--__codelineno-0-137" name="unshackle.core.service.Service.cache_identity--source--__codelineno-0-137"></a> <span class="k">elif</span> <span class="nb">hasattr</span><span class="p">(</span><span class="bp">self</span><span class="p">,</span> <span class="s2">"title_id"</span><span class="p">):</span>
</span><span id="unshackle.core.service.Service.cache_identity--source--__span-0-138"><a id="unshackle.core.service.Service.cache_identity--source--__codelineno-0-138" name="unshackle.core.service.Service.cache_identity--source--__codelineno-0-138"></a> <span class="k">else</span><span class="p">:</span> </span><span id="unshackle.core.service.Service.cache_identity--source--__span-0-138"><a id="unshackle.core.service.Service.cache_identity--source--__codelineno-0-138" name="unshackle.core.service.Service.cache_identity--source--__codelineno-0-138"></a> <span class="n">title_id</span> <span class="o">=</span> <span class="bp">self</span><span class="o">.</span><span class="n">title_id</span>
</span><span id="unshackle.core.service.Service.cache_identity--source--__span-0-139"><a id="unshackle.core.service.Service.cache_identity--source--__codelineno-0-139" name="unshackle.core.service.Service.cache_identity--source--__codelineno-0-139"></a> <span class="n">title_id</span> <span class="o">=</span> <span class="kc">None</span> </span><span id="unshackle.core.service.Service.cache_identity--source--__span-0-139"><a id="unshackle.core.service.Service.cache_identity--source--__codelineno-0-139" name="unshackle.core.service.Service.cache_identity--source--__codelineno-0-139"></a> <span class="k">else</span><span class="p">:</span>
</span><span id="unshackle.core.service.Service.cache_identity--source--__span-0-140"><a id="unshackle.core.service.Service.cache_identity--source--__codelineno-0-140" name="unshackle.core.service.Service.cache_identity--source--__codelineno-0-140"></a> <span class="k">return</span> <span class="n">CacheIdentity</span><span class="p">(</span><span class="bp">self</span><span class="o">.</span><span class="n">title_cache</span><span class="p">,</span> <span class="n">title_id</span><span class="p">,</span> <span class="bp">self</span><span class="o">.</span><span class="n">current_region</span><span class="p">,</span> <span class="n">get_account_hash</span><span class="p">(</span><span class="bp">self</span><span class="o">.</span><span class="n">credential</span><span class="p">))</span> </span><span id="unshackle.core.service.Service.cache_identity--source--__span-0-140"><a id="unshackle.core.service.Service.cache_identity--source--__codelineno-0-140" name="unshackle.core.service.Service.cache_identity--source--__codelineno-0-140"></a> <span class="n">title_id</span> <span class="o">=</span> <span class="kc">None</span>
</span><span id="unshackle.core.service.Service.cache_identity--source--__span-0-141"><a id="unshackle.core.service.Service.cache_identity--source--__codelineno-0-141" name="unshackle.core.service.Service.cache_identity--source--__codelineno-0-141"></a> <span class="k">return</span> <span class="n">CacheIdentity</span><span class="p">(</span><span class="bp">self</span><span class="o">.</span><span class="n">title_cache</span><span class="p">,</span> <span class="n">title_id</span><span class="p">,</span> <span class="bp">self</span><span class="o">.</span><span class="n">current_region</span><span class="p">,</span> <span class="n">get_account_hash</span><span class="p">(</span><span class="bp">self</span><span class="o">.</span><span class="n">credential</span><span class="p">))</span>
</span></code></pre></div></td></tr></table></div> </span></code></pre></div></td></tr></table></div>
</details> </details>
</div> </div>
@@ -4557,8 +4557,7 @@ option <code>chapter_fallback_name</code>. For example, <code>"Chapter {i:02}"</
<details class="mkdocstrings-source"> <details class="mkdocstrings-source">
<summary>Source code in <code>unshackle/core/title_source.py</code></summary> <summary>Source code in <code>unshackle/core/title_source.py</code></summary>
<div class="language-python highlight"><table class="highlighttable"><tr><td class="linenos"><div class="linenodiv"><pre><span></span><span class="normal"><a href="#unshackle.core.service.Service.get_widevine_service_certificate--source--__codelineno-0-146">146</a></span> <div class="language-python highlight"><table class="highlighttable"><tr><td class="linenos"><div class="linenodiv"><pre><span></span><span class="normal"><a href="#unshackle.core.service.Service.get_widevine_service_certificate--source--__codelineno-0-147">147</a></span>
<span class="normal"><a href="#unshackle.core.service.Service.get_widevine_service_certificate--source--__codelineno-0-147">147</a></span>
<span class="normal"><a href="#unshackle.core.service.Service.get_widevine_service_certificate--source--__codelineno-0-148">148</a></span> <span class="normal"><a href="#unshackle.core.service.Service.get_widevine_service_certificate--source--__codelineno-0-148">148</a></span>
<span class="normal"><a href="#unshackle.core.service.Service.get_widevine_service_certificate--source--__codelineno-0-149">149</a></span> <span class="normal"><a href="#unshackle.core.service.Service.get_widevine_service_certificate--source--__codelineno-0-149">149</a></span>
<span class="normal"><a href="#unshackle.core.service.Service.get_widevine_service_certificate--source--__codelineno-0-150">150</a></span> <span class="normal"><a href="#unshackle.core.service.Service.get_widevine_service_certificate--source--__codelineno-0-150">150</a></span>
@@ -4570,20 +4569,21 @@ option <code>chapter_fallback_name</code>. For example, <code>"Chapter {i:02}"</
<span class="normal"><a href="#unshackle.core.service.Service.get_widevine_service_certificate--source--__codelineno-0-156">156</a></span> <span class="normal"><a href="#unshackle.core.service.Service.get_widevine_service_certificate--source--__codelineno-0-156">156</a></span>
<span class="normal"><a href="#unshackle.core.service.Service.get_widevine_service_certificate--source--__codelineno-0-157">157</a></span> <span class="normal"><a href="#unshackle.core.service.Service.get_widevine_service_certificate--source--__codelineno-0-157">157</a></span>
<span class="normal"><a href="#unshackle.core.service.Service.get_widevine_service_certificate--source--__codelineno-0-158">158</a></span> <span class="normal"><a href="#unshackle.core.service.Service.get_widevine_service_certificate--source--__codelineno-0-158">158</a></span>
<span class="normal"><a href="#unshackle.core.service.Service.get_widevine_service_certificate--source--__codelineno-0-159">159</a></span></pre></div></td><td class="code"><div><pre><span></span><code><span id="unshackle.core.service.Service.get_widevine_service_certificate--source--__span-0-146"><a id="unshackle.core.service.Service.get_widevine_service_certificate--source--__codelineno-0-146" name="unshackle.core.service.Service.get_widevine_service_certificate--source--__codelineno-0-146"></a><span class="k">def</span><span class="w"> </span><span class="nf">get_widevine_service_certificate</span><span class="p">(</span> <span class="normal"><a href="#unshackle.core.service.Service.get_widevine_service_certificate--source--__codelineno-0-159">159</a></span>
</span><span id="unshackle.core.service.Service.get_widevine_service_certificate--source--__span-0-147"><a id="unshackle.core.service.Service.get_widevine_service_certificate--source--__codelineno-0-147" name="unshackle.core.service.Service.get_widevine_service_certificate--source--__codelineno-0-147"></a> <span class="bp">self</span><span class="p">,</span> <span class="o">*</span><span class="p">,</span> <span class="n">challenge</span><span class="p">:</span> <span class="nb">bytes</span><span class="p">,</span> <span class="n">title</span><span class="p">:</span> <span class="n">Title_T</span><span class="p">,</span> <span class="n">track</span><span class="p">:</span> <span class="n">AnyTrack</span> <span class="normal"><a href="#unshackle.core.service.Service.get_widevine_service_certificate--source--__codelineno-0-160">160</a></span></pre></div></td><td class="code"><div><pre><span></span><code><span id="unshackle.core.service.Service.get_widevine_service_certificate--source--__span-0-147"><a id="unshackle.core.service.Service.get_widevine_service_certificate--source--__codelineno-0-147" name="unshackle.core.service.Service.get_widevine_service_certificate--source--__codelineno-0-147"></a><span class="k">def</span><span class="w"> </span><span class="nf">get_widevine_service_certificate</span><span class="p">(</span>
</span><span id="unshackle.core.service.Service.get_widevine_service_certificate--source--__span-0-148"><a id="unshackle.core.service.Service.get_widevine_service_certificate--source--__codelineno-0-148" name="unshackle.core.service.Service.get_widevine_service_certificate--source--__codelineno-0-148"></a><span class="p">)</span> <span class="o">-&gt;</span> <span class="nb">bytes</span> <span class="o">|</span> <span class="nb">str</span> <span class="o">|</span> <span class="kc">None</span><span class="p">:</span> </span><span id="unshackle.core.service.Service.get_widevine_service_certificate--source--__span-0-148"><a id="unshackle.core.service.Service.get_widevine_service_certificate--source--__codelineno-0-148" name="unshackle.core.service.Service.get_widevine_service_certificate--source--__codelineno-0-148"></a> <span class="bp">self</span><span class="p">,</span> <span class="o">*</span><span class="p">,</span> <span class="n">challenge</span><span class="p">:</span> <span class="nb">bytes</span><span class="p">,</span> <span class="n">title</span><span class="p">:</span> <span class="n">Title_T</span><span class="p">,</span> <span class="n">track</span><span class="p">:</span> <span class="n">AnyTrack</span>
</span><span id="unshackle.core.service.Service.get_widevine_service_certificate--source--__span-0-149"><a id="unshackle.core.service.Service.get_widevine_service_certificate--source--__codelineno-0-149" name="unshackle.core.service.Service.get_widevine_service_certificate--source--__codelineno-0-149"></a><span class="w"> </span><span class="sd">"""</span> </span><span id="unshackle.core.service.Service.get_widevine_service_certificate--source--__span-0-149"><a id="unshackle.core.service.Service.get_widevine_service_certificate--source--__codelineno-0-149" name="unshackle.core.service.Service.get_widevine_service_certificate--source--__codelineno-0-149"></a><span class="p">)</span> <span class="o">-&gt;</span> <span class="nb">bytes</span> <span class="o">|</span> <span class="nb">str</span> <span class="o">|</span> <span class="kc">None</span><span class="p">:</span>
</span><span id="unshackle.core.service.Service.get_widevine_service_certificate--source--__span-0-150"><a id="unshackle.core.service.Service.get_widevine_service_certificate--source--__codelineno-0-150" name="unshackle.core.service.Service.get_widevine_service_certificate--source--__codelineno-0-150"></a><span class="sd"> Get the Widevine Service Certificate used for Privacy Mode.</span> </span><span id="unshackle.core.service.Service.get_widevine_service_certificate--source--__span-0-150"><a id="unshackle.core.service.Service.get_widevine_service_certificate--source--__codelineno-0-150" name="unshackle.core.service.Service.get_widevine_service_certificate--source--__codelineno-0-150"></a><span class="w"> </span><span class="sd">"""</span>
</span><span id="unshackle.core.service.Service.get_widevine_service_certificate--source--__span-0-151"><a id="unshackle.core.service.Service.get_widevine_service_certificate--source--__codelineno-0-151" name="unshackle.core.service.Service.get_widevine_service_certificate--source--__codelineno-0-151"></a> </span><span id="unshackle.core.service.Service.get_widevine_service_certificate--source--__span-0-151"><a id="unshackle.core.service.Service.get_widevine_service_certificate--source--__codelineno-0-151" name="unshackle.core.service.Service.get_widevine_service_certificate--source--__codelineno-0-151"></a><span class="sd"> Get the Widevine Service Certificate used for Privacy Mode.</span>
</span><span id="unshackle.core.service.Service.get_widevine_service_certificate--source--__span-0-152"><a id="unshackle.core.service.Service.get_widevine_service_certificate--source--__codelineno-0-152" name="unshackle.core.service.Service.get_widevine_service_certificate--source--__codelineno-0-152"></a><span class="sd"> :param challenge: The service challenge, providing this to a License endpoint should return the</span> </span><span id="unshackle.core.service.Service.get_widevine_service_certificate--source--__span-0-152"><a id="unshackle.core.service.Service.get_widevine_service_certificate--source--__codelineno-0-152" name="unshackle.core.service.Service.get_widevine_service_certificate--source--__codelineno-0-152"></a>
</span><span id="unshackle.core.service.Service.get_widevine_service_certificate--source--__span-0-153"><a id="unshackle.core.service.Service.get_widevine_service_certificate--source--__codelineno-0-153" name="unshackle.core.service.Service.get_widevine_service_certificate--source--__codelineno-0-153"></a><span class="sd"> privacy certificate that the service uses.</span> </span><span id="unshackle.core.service.Service.get_widevine_service_certificate--source--__span-0-153"><a id="unshackle.core.service.Service.get_widevine_service_certificate--source--__codelineno-0-153" name="unshackle.core.service.Service.get_widevine_service_certificate--source--__codelineno-0-153"></a><span class="sd"> :param challenge: The service challenge, providing this to a License endpoint should return the</span>
</span><span id="unshackle.core.service.Service.get_widevine_service_certificate--source--__span-0-154"><a id="unshackle.core.service.Service.get_widevine_service_certificate--source--__codelineno-0-154" name="unshackle.core.service.Service.get_widevine_service_certificate--source--__codelineno-0-154"></a><span class="sd"> :param title: The current `Title` from get_titles that unshackle processes now. unshackle</span> </span><span id="unshackle.core.service.Service.get_widevine_service_certificate--source--__span-0-154"><a id="unshackle.core.service.Service.get_widevine_service_certificate--source--__codelineno-0-154" name="unshackle.core.service.Service.get_widevine_service_certificate--source--__codelineno-0-154"></a><span class="sd"> privacy certificate that the service uses.</span>
</span><span id="unshackle.core.service.Service.get_widevine_service_certificate--source--__span-0-155"><a id="unshackle.core.service.Service.get_widevine_service_certificate--source--__codelineno-0-155" name="unshackle.core.service.Service.get_widevine_service_certificate--source--__codelineno-0-155"></a><span class="sd"> gives this in case it holds data you need, for example for an HTTP request.</span> </span><span id="unshackle.core.service.Service.get_widevine_service_certificate--source--__span-0-155"><a id="unshackle.core.service.Service.get_widevine_service_certificate--source--__codelineno-0-155" name="unshackle.core.service.Service.get_widevine_service_certificate--source--__codelineno-0-155"></a><span class="sd"> :param title: The current `Title` from get_titles that unshackle processes now. unshackle</span>
</span><span id="unshackle.core.service.Service.get_widevine_service_certificate--source--__span-0-156"><a id="unshackle.core.service.Service.get_widevine_service_certificate--source--__codelineno-0-156" name="unshackle.core.service.Service.get_widevine_service_certificate--source--__codelineno-0-156"></a><span class="sd"> :param track: The current `Track` needing decryption. Provided for same reason as `title`.</span> </span><span id="unshackle.core.service.Service.get_widevine_service_certificate--source--__span-0-156"><a id="unshackle.core.service.Service.get_widevine_service_certificate--source--__codelineno-0-156" name="unshackle.core.service.Service.get_widevine_service_certificate--source--__codelineno-0-156"></a><span class="sd"> gives this in case it holds data you need, for example for an HTTP request.</span>
</span><span id="unshackle.core.service.Service.get_widevine_service_certificate--source--__span-0-157"><a id="unshackle.core.service.Service.get_widevine_service_certificate--source--__codelineno-0-157" name="unshackle.core.service.Service.get_widevine_service_certificate--source--__codelineno-0-157"></a><span class="sd"> :return: The Service Privacy Certificate as Bytes or a Base64 string. Do not Base64 Encode or</span> </span><span id="unshackle.core.service.Service.get_widevine_service_certificate--source--__span-0-157"><a id="unshackle.core.service.Service.get_widevine_service_certificate--source--__codelineno-0-157" name="unshackle.core.service.Service.get_widevine_service_certificate--source--__codelineno-0-157"></a><span class="sd"> :param track: The current `Track` needing decryption. Provided for same reason as `title`.</span>
</span><span id="unshackle.core.service.Service.get_widevine_service_certificate--source--__span-0-158"><a id="unshackle.core.service.Service.get_widevine_service_certificate--source--__codelineno-0-158" name="unshackle.core.service.Service.get_widevine_service_certificate--source--__codelineno-0-158"></a><span class="sd"> Decode the data, return as is to reduce unnecessary computations.</span> </span><span id="unshackle.core.service.Service.get_widevine_service_certificate--source--__span-0-158"><a id="unshackle.core.service.Service.get_widevine_service_certificate--source--__codelineno-0-158" name="unshackle.core.service.Service.get_widevine_service_certificate--source--__codelineno-0-158"></a><span class="sd"> :return: The Service Privacy Certificate as Bytes or a Base64 string. Do not Base64 Encode or</span>
</span><span id="unshackle.core.service.Service.get_widevine_service_certificate--source--__span-0-159"><a id="unshackle.core.service.Service.get_widevine_service_certificate--source--__codelineno-0-159" name="unshackle.core.service.Service.get_widevine_service_certificate--source--__codelineno-0-159"></a><span class="sd"> """</span> </span><span id="unshackle.core.service.Service.get_widevine_service_certificate--source--__span-0-159"><a id="unshackle.core.service.Service.get_widevine_service_certificate--source--__codelineno-0-159" name="unshackle.core.service.Service.get_widevine_service_certificate--source--__codelineno-0-159"></a><span class="sd"> Decode the data, return as is to reduce unnecessary computations.</span>
</span><span id="unshackle.core.service.Service.get_widevine_service_certificate--source--__span-0-160"><a id="unshackle.core.service.Service.get_widevine_service_certificate--source--__codelineno-0-160" name="unshackle.core.service.Service.get_widevine_service_certificate--source--__codelineno-0-160"></a><span class="sd"> """</span>
</span></code></pre></div></td></tr></table></div> </span></code></pre></div></td></tr></table></div>
</details> </details>
</div> </div>
@@ -4619,8 +4619,7 @@ The service can then ban, revoke, disable, or downgrade that device.</p>
<details class="mkdocstrings-source"> <details class="mkdocstrings-source">
<summary>Source code in <code>unshackle/core/title_source.py</code></summary> <summary>Source code in <code>unshackle/core/title_source.py</code></summary>
<div class="language-python highlight"><table class="highlighttable"><tr><td class="linenos"><div class="linenodiv"><pre><span></span><span class="normal"><a href="#unshackle.core.service.Service.get_widevine_license--source--__codelineno-0-161">161</a></span> <div class="language-python highlight"><table class="highlighttable"><tr><td class="linenos"><div class="linenodiv"><pre><span></span><span class="normal"><a href="#unshackle.core.service.Service.get_widevine_license--source--__codelineno-0-162">162</a></span>
<span class="normal"><a href="#unshackle.core.service.Service.get_widevine_license--source--__codelineno-0-162">162</a></span>
<span class="normal"><a href="#unshackle.core.service.Service.get_widevine_license--source--__codelineno-0-163">163</a></span> <span class="normal"><a href="#unshackle.core.service.Service.get_widevine_license--source--__codelineno-0-163">163</a></span>
<span class="normal"><a href="#unshackle.core.service.Service.get_widevine_license--source--__codelineno-0-164">164</a></span> <span class="normal"><a href="#unshackle.core.service.Service.get_widevine_license--source--__codelineno-0-164">164</a></span>
<span class="normal"><a href="#unshackle.core.service.Service.get_widevine_license--source--__codelineno-0-165">165</a></span> <span class="normal"><a href="#unshackle.core.service.Service.get_widevine_license--source--__codelineno-0-165">165</a></span>
@@ -4636,24 +4635,25 @@ The service can then ban, revoke, disable, or downgrade that device.</p>
<span class="normal"><a href="#unshackle.core.service.Service.get_widevine_license--source--__codelineno-0-175">175</a></span> <span class="normal"><a href="#unshackle.core.service.Service.get_widevine_license--source--__codelineno-0-175">175</a></span>
<span class="normal"><a href="#unshackle.core.service.Service.get_widevine_license--source--__codelineno-0-176">176</a></span> <span class="normal"><a href="#unshackle.core.service.Service.get_widevine_license--source--__codelineno-0-176">176</a></span>
<span class="normal"><a href="#unshackle.core.service.Service.get_widevine_license--source--__codelineno-0-177">177</a></span> <span class="normal"><a href="#unshackle.core.service.Service.get_widevine_license--source--__codelineno-0-177">177</a></span>
<span class="normal"><a href="#unshackle.core.service.Service.get_widevine_license--source--__codelineno-0-178">178</a></span></pre></div></td><td class="code"><div><pre><span></span><code><span id="unshackle.core.service.Service.get_widevine_license--source--__span-0-161"><a id="unshackle.core.service.Service.get_widevine_license--source--__codelineno-0-161" name="unshackle.core.service.Service.get_widevine_license--source--__codelineno-0-161"></a><span class="k">def</span><span class="w"> </span><span class="nf">get_widevine_license</span><span class="p">(</span><span class="bp">self</span><span class="p">,</span> <span class="o">*</span><span class="p">,</span> <span class="n">challenge</span><span class="p">:</span> <span class="nb">bytes</span><span class="p">,</span> <span class="n">title</span><span class="p">:</span> <span class="n">Title_T</span><span class="p">,</span> <span class="n">track</span><span class="p">:</span> <span class="n">AnyTrack</span><span class="p">)</span> <span class="o">-&gt;</span> <span class="nb">bytes</span> <span class="o">|</span> <span class="nb">str</span> <span class="o">|</span> <span class="kc">None</span><span class="p">:</span> <span class="normal"><a href="#unshackle.core.service.Service.get_widevine_license--source--__codelineno-0-178">178</a></span>
</span><span id="unshackle.core.service.Service.get_widevine_license--source--__span-0-162"><a id="unshackle.core.service.Service.get_widevine_license--source--__codelineno-0-162" name="unshackle.core.service.Service.get_widevine_license--source--__codelineno-0-162"></a><span class="w"> </span><span class="sd">"""</span> <span class="normal"><a href="#unshackle.core.service.Service.get_widevine_license--source--__codelineno-0-179">179</a></span></pre></div></td><td class="code"><div><pre><span></span><code><span id="unshackle.core.service.Service.get_widevine_license--source--__span-0-162"><a id="unshackle.core.service.Service.get_widevine_license--source--__codelineno-0-162" name="unshackle.core.service.Service.get_widevine_license--source--__codelineno-0-162"></a><span class="k">def</span><span class="w"> </span><span class="nf">get_widevine_license</span><span class="p">(</span><span class="bp">self</span><span class="p">,</span> <span class="o">*</span><span class="p">,</span> <span class="n">challenge</span><span class="p">:</span> <span class="nb">bytes</span><span class="p">,</span> <span class="n">title</span><span class="p">:</span> <span class="n">Title_T</span><span class="p">,</span> <span class="n">track</span><span class="p">:</span> <span class="n">AnyTrack</span><span class="p">)</span> <span class="o">-&gt;</span> <span class="nb">bytes</span> <span class="o">|</span> <span class="nb">str</span> <span class="o">|</span> <span class="kc">None</span><span class="p">:</span>
</span><span id="unshackle.core.service.Service.get_widevine_license--source--__span-0-163"><a id="unshackle.core.service.Service.get_widevine_license--source--__codelineno-0-163" name="unshackle.core.service.Service.get_widevine_license--source--__codelineno-0-163"></a><span class="sd"> Get a Widevine License message by sending a License Request (challenge).</span> </span><span id="unshackle.core.service.Service.get_widevine_license--source--__span-0-163"><a id="unshackle.core.service.Service.get_widevine_license--source--__codelineno-0-163" name="unshackle.core.service.Service.get_widevine_license--source--__codelineno-0-163"></a><span class="w"> </span><span class="sd">"""</span>
</span><span id="unshackle.core.service.Service.get_widevine_license--source--__span-0-164"><a id="unshackle.core.service.Service.get_widevine_license--source--__codelineno-0-164" name="unshackle.core.service.Service.get_widevine_license--source--__codelineno-0-164"></a> </span><span id="unshackle.core.service.Service.get_widevine_license--source--__span-0-164"><a id="unshackle.core.service.Service.get_widevine_license--source--__codelineno-0-164" name="unshackle.core.service.Service.get_widevine_license--source--__codelineno-0-164"></a><span class="sd"> Get a Widevine License message by sending a License Request (challenge).</span>
</span><span id="unshackle.core.service.Service.get_widevine_license--source--__span-0-165"><a id="unshackle.core.service.Service.get_widevine_license--source--__codelineno-0-165" name="unshackle.core.service.Service.get_widevine_license--source--__codelineno-0-165"></a><span class="sd"> This License message contains the encrypted content keys and will be</span> </span><span id="unshackle.core.service.Service.get_widevine_license--source--__span-0-165"><a id="unshackle.core.service.Service.get_widevine_license--source--__codelineno-0-165" name="unshackle.core.service.Service.get_widevine_license--source--__codelineno-0-165"></a>
</span><span id="unshackle.core.service.Service.get_widevine_license--source--__span-0-166"><a id="unshackle.core.service.Service.get_widevine_license--source--__codelineno-0-166" name="unshackle.core.service.Service.get_widevine_license--source--__codelineno-0-166"></a><span class="sd"> read by the Cdm and decrypted.</span> </span><span id="unshackle.core.service.Service.get_widevine_license--source--__span-0-166"><a id="unshackle.core.service.Service.get_widevine_license--source--__codelineno-0-166" name="unshackle.core.service.Service.get_widevine_license--source--__codelineno-0-166"></a><span class="sd"> This License message contains the encrypted content keys and will be</span>
</span><span id="unshackle.core.service.Service.get_widevine_license--source--__span-0-167"><a id="unshackle.core.service.Service.get_widevine_license--source--__codelineno-0-167" name="unshackle.core.service.Service.get_widevine_license--source--__codelineno-0-167"></a> </span><span id="unshackle.core.service.Service.get_widevine_license--source--__span-0-167"><a id="unshackle.core.service.Service.get_widevine_license--source--__codelineno-0-167" name="unshackle.core.service.Service.get_widevine_license--source--__codelineno-0-167"></a><span class="sd"> read by the Cdm and decrypted.</span>
</span><span id="unshackle.core.service.Service.get_widevine_license--source--__span-0-168"><a id="unshackle.core.service.Service.get_widevine_license--source--__codelineno-0-168" name="unshackle.core.service.Service.get_widevine_license--source--__codelineno-0-168"></a><span class="sd"> This is a very important request to get correct. A bad, unexpected, or missing</span> </span><span id="unshackle.core.service.Service.get_widevine_license--source--__span-0-168"><a id="unshackle.core.service.Service.get_widevine_license--source--__codelineno-0-168" name="unshackle.core.service.Service.get_widevine_license--source--__codelineno-0-168"></a>
</span><span id="unshackle.core.service.Service.get_widevine_license--source--__span-0-169"><a id="unshackle.core.service.Service.get_widevine_license--source--__codelineno-0-169" name="unshackle.core.service.Service.get_widevine_license--source--__codelineno-0-169"></a><span class="sd"> value in the request can cause the service to detect your CDM device.</span> </span><span id="unshackle.core.service.Service.get_widevine_license--source--__span-0-169"><a id="unshackle.core.service.Service.get_widevine_license--source--__codelineno-0-169" name="unshackle.core.service.Service.get_widevine_license--source--__codelineno-0-169"></a><span class="sd"> This is a very important request to get correct. A bad, unexpected, or missing</span>
</span><span id="unshackle.core.service.Service.get_widevine_license--source--__span-0-170"><a id="unshackle.core.service.Service.get_widevine_license--source--__codelineno-0-170" name="unshackle.core.service.Service.get_widevine_license--source--__codelineno-0-170"></a><span class="sd"> The service can then ban, revoke, disable, or downgrade that device.</span> </span><span id="unshackle.core.service.Service.get_widevine_license--source--__span-0-170"><a id="unshackle.core.service.Service.get_widevine_license--source--__codelineno-0-170" name="unshackle.core.service.Service.get_widevine_license--source--__codelineno-0-170"></a><span class="sd"> value in the request can cause the service to detect your CDM device.</span>
</span><span id="unshackle.core.service.Service.get_widevine_license--source--__span-0-171"><a id="unshackle.core.service.Service.get_widevine_license--source--__codelineno-0-171" name="unshackle.core.service.Service.get_widevine_license--source--__codelineno-0-171"></a> </span><span id="unshackle.core.service.Service.get_widevine_license--source--__span-0-171"><a id="unshackle.core.service.Service.get_widevine_license--source--__codelineno-0-171" name="unshackle.core.service.Service.get_widevine_license--source--__codelineno-0-171"></a><span class="sd"> The service can then ban, revoke, disable, or downgrade that device.</span>
</span><span id="unshackle.core.service.Service.get_widevine_license--source--__span-0-172"><a id="unshackle.core.service.Service.get_widevine_license--source--__codelineno-0-172" name="unshackle.core.service.Service.get_widevine_license--source--__codelineno-0-172"></a><span class="sd"> :param challenge: The license challenge from the Widevine CDM.</span> </span><span id="unshackle.core.service.Service.get_widevine_license--source--__span-0-172"><a id="unshackle.core.service.Service.get_widevine_license--source--__codelineno-0-172" name="unshackle.core.service.Service.get_widevine_license--source--__codelineno-0-172"></a>
</span><span id="unshackle.core.service.Service.get_widevine_license--source--__span-0-173"><a id="unshackle.core.service.Service.get_widevine_license--source--__codelineno-0-173" name="unshackle.core.service.Service.get_widevine_license--source--__codelineno-0-173"></a><span class="sd"> :param title: The current `Title` from get_titles that unshackle processes now. unshackle</span> </span><span id="unshackle.core.service.Service.get_widevine_license--source--__span-0-173"><a id="unshackle.core.service.Service.get_widevine_license--source--__codelineno-0-173" name="unshackle.core.service.Service.get_widevine_license--source--__codelineno-0-173"></a><span class="sd"> :param challenge: The license challenge from the Widevine CDM.</span>
</span><span id="unshackle.core.service.Service.get_widevine_license--source--__span-0-174"><a id="unshackle.core.service.Service.get_widevine_license--source--__codelineno-0-174" name="unshackle.core.service.Service.get_widevine_license--source--__codelineno-0-174"></a><span class="sd"> gives this in case it holds data you need, for example for an HTTP request.</span> </span><span id="unshackle.core.service.Service.get_widevine_license--source--__span-0-174"><a id="unshackle.core.service.Service.get_widevine_license--source--__codelineno-0-174" name="unshackle.core.service.Service.get_widevine_license--source--__codelineno-0-174"></a><span class="sd"> :param title: The current `Title` from get_titles that unshackle processes now. unshackle</span>
</span><span id="unshackle.core.service.Service.get_widevine_license--source--__span-0-175"><a id="unshackle.core.service.Service.get_widevine_license--source--__codelineno-0-175" name="unshackle.core.service.Service.get_widevine_license--source--__codelineno-0-175"></a><span class="sd"> :param track: The current `Track` needing decryption. Provided for same reason as `title`.</span> </span><span id="unshackle.core.service.Service.get_widevine_license--source--__span-0-175"><a id="unshackle.core.service.Service.get_widevine_license--source--__codelineno-0-175" name="unshackle.core.service.Service.get_widevine_license--source--__codelineno-0-175"></a><span class="sd"> gives this in case it holds data you need, for example for an HTTP request.</span>
</span><span id="unshackle.core.service.Service.get_widevine_license--source--__span-0-176"><a id="unshackle.core.service.Service.get_widevine_license--source--__codelineno-0-176" name="unshackle.core.service.Service.get_widevine_license--source--__codelineno-0-176"></a><span class="sd"> :return: The License response as Bytes or a Base64 string. Do not Base64 Encode or</span> </span><span id="unshackle.core.service.Service.get_widevine_license--source--__span-0-176"><a id="unshackle.core.service.Service.get_widevine_license--source--__codelineno-0-176" name="unshackle.core.service.Service.get_widevine_license--source--__codelineno-0-176"></a><span class="sd"> :param track: The current `Track` needing decryption. Provided for same reason as `title`.</span>
</span><span id="unshackle.core.service.Service.get_widevine_license--source--__span-0-177"><a id="unshackle.core.service.Service.get_widevine_license--source--__codelineno-0-177" name="unshackle.core.service.Service.get_widevine_license--source--__codelineno-0-177"></a><span class="sd"> Decode the data, return as is to reduce unnecessary computations.</span> </span><span id="unshackle.core.service.Service.get_widevine_license--source--__span-0-177"><a id="unshackle.core.service.Service.get_widevine_license--source--__codelineno-0-177" name="unshackle.core.service.Service.get_widevine_license--source--__codelineno-0-177"></a><span class="sd"> :return: The License response as Bytes or a Base64 string. Do not Base64 Encode or</span>
</span><span id="unshackle.core.service.Service.get_widevine_license--source--__span-0-178"><a id="unshackle.core.service.Service.get_widevine_license--source--__codelineno-0-178" name="unshackle.core.service.Service.get_widevine_license--source--__codelineno-0-178"></a><span class="sd"> """</span> </span><span id="unshackle.core.service.Service.get_widevine_license--source--__span-0-178"><a id="unshackle.core.service.Service.get_widevine_license--source--__codelineno-0-178" name="unshackle.core.service.Service.get_widevine_license--source--__codelineno-0-178"></a><span class="sd"> Decode the data, return as is to reduce unnecessary computations.</span>
</span><span id="unshackle.core.service.Service.get_widevine_license--source--__span-0-179"><a id="unshackle.core.service.Service.get_widevine_license--source--__codelineno-0-179" name="unshackle.core.service.Service.get_widevine_license--source--__codelineno-0-179"></a><span class="sd"> """</span>
</span></code></pre></div></td></tr></table></div> </span></code></pre></div></td></tr></table></div>
</details> </details>
</div> </div>
@@ -4689,8 +4689,7 @@ The service can then ban, revoke, disable, or downgrade that device.</p>
<details class="mkdocstrings-source"> <details class="mkdocstrings-source">
<summary>Source code in <code>unshackle/core/title_source.py</code></summary> <summary>Source code in <code>unshackle/core/title_source.py</code></summary>
<div class="language-python highlight"><table class="highlighttable"><tr><td class="linenos"><div class="linenodiv"><pre><span></span><span class="normal"><a href="#unshackle.core.service.Service.get_playready_license--source--__codelineno-0-180">180</a></span> <div class="language-python highlight"><table class="highlighttable"><tr><td class="linenos"><div class="linenodiv"><pre><span></span><span class="normal"><a href="#unshackle.core.service.Service.get_playready_license--source--__codelineno-0-181">181</a></span>
<span class="normal"><a href="#unshackle.core.service.Service.get_playready_license--source--__codelineno-0-181">181</a></span>
<span class="normal"><a href="#unshackle.core.service.Service.get_playready_license--source--__codelineno-0-182">182</a></span> <span class="normal"><a href="#unshackle.core.service.Service.get_playready_license--source--__codelineno-0-182">182</a></span>
<span class="normal"><a href="#unshackle.core.service.Service.get_playready_license--source--__codelineno-0-183">183</a></span> <span class="normal"><a href="#unshackle.core.service.Service.get_playready_license--source--__codelineno-0-183">183</a></span>
<span class="normal"><a href="#unshackle.core.service.Service.get_playready_license--source--__codelineno-0-184">184</a></span> <span class="normal"><a href="#unshackle.core.service.Service.get_playready_license--source--__codelineno-0-184">184</a></span>
@@ -4711,29 +4710,30 @@ The service can then ban, revoke, disable, or downgrade that device.</p>
<span class="normal"><a href="#unshackle.core.service.Service.get_playready_license--source--__codelineno-0-199">199</a></span> <span class="normal"><a href="#unshackle.core.service.Service.get_playready_license--source--__codelineno-0-199">199</a></span>
<span class="normal"><a href="#unshackle.core.service.Service.get_playready_license--source--__codelineno-0-200">200</a></span> <span class="normal"><a href="#unshackle.core.service.Service.get_playready_license--source--__codelineno-0-200">200</a></span>
<span class="normal"><a href="#unshackle.core.service.Service.get_playready_license--source--__codelineno-0-201">201</a></span> <span class="normal"><a href="#unshackle.core.service.Service.get_playready_license--source--__codelineno-0-201">201</a></span>
<span class="normal"><a href="#unshackle.core.service.Service.get_playready_license--source--__codelineno-0-202">202</a></span></pre></div></td><td class="code"><div><pre><span></span><code><span id="unshackle.core.service.Service.get_playready_license--source--__span-0-180"><a id="unshackle.core.service.Service.get_playready_license--source--__codelineno-0-180" name="unshackle.core.service.Service.get_playready_license--source--__codelineno-0-180"></a><span class="k">def</span><span class="w"> </span><span class="nf">get_playready_license</span><span class="p">(</span><span class="bp">self</span><span class="p">,</span> <span class="o">*</span><span class="p">,</span> <span class="n">challenge</span><span class="p">:</span> <span class="nb">bytes</span><span class="p">,</span> <span class="n">title</span><span class="p">:</span> <span class="n">Title_T</span><span class="p">,</span> <span class="n">track</span><span class="p">:</span> <span class="n">AnyTrack</span><span class="p">)</span> <span class="o">-&gt;</span> <span class="nb">bytes</span> <span class="o">|</span> <span class="nb">str</span> <span class="o">|</span> <span class="kc">None</span><span class="p">:</span> <span class="normal"><a href="#unshackle.core.service.Service.get_playready_license--source--__codelineno-0-202">202</a></span>
</span><span id="unshackle.core.service.Service.get_playready_license--source--__span-0-181"><a id="unshackle.core.service.Service.get_playready_license--source--__codelineno-0-181" name="unshackle.core.service.Service.get_playready_license--source--__codelineno-0-181"></a><span class="w"> </span><span class="sd">"""</span> <span class="normal"><a href="#unshackle.core.service.Service.get_playready_license--source--__codelineno-0-203">203</a></span></pre></div></td><td class="code"><div><pre><span></span><code><span id="unshackle.core.service.Service.get_playready_license--source--__span-0-181"><a id="unshackle.core.service.Service.get_playready_license--source--__codelineno-0-181" name="unshackle.core.service.Service.get_playready_license--source--__codelineno-0-181"></a><span class="k">def</span><span class="w"> </span><span class="nf">get_playready_license</span><span class="p">(</span><span class="bp">self</span><span class="p">,</span> <span class="o">*</span><span class="p">,</span> <span class="n">challenge</span><span class="p">:</span> <span class="nb">bytes</span><span class="p">,</span> <span class="n">title</span><span class="p">:</span> <span class="n">Title_T</span><span class="p">,</span> <span class="n">track</span><span class="p">:</span> <span class="n">AnyTrack</span><span class="p">)</span> <span class="o">-&gt;</span> <span class="nb">bytes</span> <span class="o">|</span> <span class="nb">str</span> <span class="o">|</span> <span class="kc">None</span><span class="p">:</span>
</span><span id="unshackle.core.service.Service.get_playready_license--source--__span-0-182"><a id="unshackle.core.service.Service.get_playready_license--source--__codelineno-0-182" name="unshackle.core.service.Service.get_playready_license--source--__codelineno-0-182"></a><span class="sd"> Get a PlayReady License message by sending a License Request (challenge).</span> </span><span id="unshackle.core.service.Service.get_playready_license--source--__span-0-182"><a id="unshackle.core.service.Service.get_playready_license--source--__codelineno-0-182" name="unshackle.core.service.Service.get_playready_license--source--__codelineno-0-182"></a><span class="w"> </span><span class="sd">"""</span>
</span><span id="unshackle.core.service.Service.get_playready_license--source--__span-0-183"><a id="unshackle.core.service.Service.get_playready_license--source--__codelineno-0-183" name="unshackle.core.service.Service.get_playready_license--source--__codelineno-0-183"></a> </span><span id="unshackle.core.service.Service.get_playready_license--source--__span-0-183"><a id="unshackle.core.service.Service.get_playready_license--source--__codelineno-0-183" name="unshackle.core.service.Service.get_playready_license--source--__codelineno-0-183"></a><span class="sd"> Get a PlayReady License message by sending a License Request (challenge).</span>
</span><span id="unshackle.core.service.Service.get_playready_license--source--__span-0-184"><a id="unshackle.core.service.Service.get_playready_license--source--__codelineno-0-184" name="unshackle.core.service.Service.get_playready_license--source--__codelineno-0-184"></a><span class="sd"> This License message contains the encrypted content keys and will be</span> </span><span id="unshackle.core.service.Service.get_playready_license--source--__span-0-184"><a id="unshackle.core.service.Service.get_playready_license--source--__codelineno-0-184" name="unshackle.core.service.Service.get_playready_license--source--__codelineno-0-184"></a>
</span><span id="unshackle.core.service.Service.get_playready_license--source--__span-0-185"><a id="unshackle.core.service.Service.get_playready_license--source--__codelineno-0-185" name="unshackle.core.service.Service.get_playready_license--source--__codelineno-0-185"></a><span class="sd"> read by the CDM and decrypted.</span> </span><span id="unshackle.core.service.Service.get_playready_license--source--__span-0-185"><a id="unshackle.core.service.Service.get_playready_license--source--__codelineno-0-185" name="unshackle.core.service.Service.get_playready_license--source--__codelineno-0-185"></a><span class="sd"> This License message contains the encrypted content keys and will be</span>
</span><span id="unshackle.core.service.Service.get_playready_license--source--__span-0-186"><a id="unshackle.core.service.Service.get_playready_license--source--__codelineno-0-186" name="unshackle.core.service.Service.get_playready_license--source--__codelineno-0-186"></a> </span><span id="unshackle.core.service.Service.get_playready_license--source--__span-0-186"><a id="unshackle.core.service.Service.get_playready_license--source--__codelineno-0-186" name="unshackle.core.service.Service.get_playready_license--source--__codelineno-0-186"></a><span class="sd"> read by the CDM and decrypted.</span>
</span><span id="unshackle.core.service.Service.get_playready_license--source--__span-0-187"><a id="unshackle.core.service.Service.get_playready_license--source--__codelineno-0-187" name="unshackle.core.service.Service.get_playready_license--source--__codelineno-0-187"></a><span class="sd"> This is a very important request to get correct. A bad, unexpected, or missing</span> </span><span id="unshackle.core.service.Service.get_playready_license--source--__span-0-187"><a id="unshackle.core.service.Service.get_playready_license--source--__codelineno-0-187" name="unshackle.core.service.Service.get_playready_license--source--__codelineno-0-187"></a>
</span><span id="unshackle.core.service.Service.get_playready_license--source--__span-0-188"><a id="unshackle.core.service.Service.get_playready_license--source--__codelineno-0-188" name="unshackle.core.service.Service.get_playready_license--source--__codelineno-0-188"></a><span class="sd"> value in the request can cause the service to detect your CDM device.</span> </span><span id="unshackle.core.service.Service.get_playready_license--source--__span-0-188"><a id="unshackle.core.service.Service.get_playready_license--source--__codelineno-0-188" name="unshackle.core.service.Service.get_playready_license--source--__codelineno-0-188"></a><span class="sd"> This is a very important request to get correct. A bad, unexpected, or missing</span>
</span><span id="unshackle.core.service.Service.get_playready_license--source--__span-0-189"><a id="unshackle.core.service.Service.get_playready_license--source--__codelineno-0-189" name="unshackle.core.service.Service.get_playready_license--source--__codelineno-0-189"></a><span class="sd"> The service can then ban, revoke, disable, or downgrade that device.</span> </span><span id="unshackle.core.service.Service.get_playready_license--source--__span-0-189"><a id="unshackle.core.service.Service.get_playready_license--source--__codelineno-0-189" name="unshackle.core.service.Service.get_playready_license--source--__codelineno-0-189"></a><span class="sd"> value in the request can cause the service to detect your CDM device.</span>
</span><span id="unshackle.core.service.Service.get_playready_license--source--__span-0-190"><a id="unshackle.core.service.Service.get_playready_license--source--__codelineno-0-190" name="unshackle.core.service.Service.get_playready_license--source--__codelineno-0-190"></a> </span><span id="unshackle.core.service.Service.get_playready_license--source--__span-0-190"><a id="unshackle.core.service.Service.get_playready_license--source--__codelineno-0-190" name="unshackle.core.service.Service.get_playready_license--source--__codelineno-0-190"></a><span class="sd"> The service can then ban, revoke, disable, or downgrade that device.</span>
</span><span id="unshackle.core.service.Service.get_playready_license--source--__span-0-191"><a id="unshackle.core.service.Service.get_playready_license--source--__codelineno-0-191" name="unshackle.core.service.Service.get_playready_license--source--__codelineno-0-191"></a><span class="sd"> :param challenge: The license challenge from the PlayReady CDM.</span> </span><span id="unshackle.core.service.Service.get_playready_license--source--__span-0-191"><a id="unshackle.core.service.Service.get_playready_license--source--__codelineno-0-191" name="unshackle.core.service.Service.get_playready_license--source--__codelineno-0-191"></a>
</span><span id="unshackle.core.service.Service.get_playready_license--source--__span-0-192"><a id="unshackle.core.service.Service.get_playready_license--source--__codelineno-0-192" name="unshackle.core.service.Service.get_playready_license--source--__codelineno-0-192"></a><span class="sd"> :param title: The current `Title` from get_titles that unshackle processes now. unshackle</span> </span><span id="unshackle.core.service.Service.get_playready_license--source--__span-0-192"><a id="unshackle.core.service.Service.get_playready_license--source--__codelineno-0-192" name="unshackle.core.service.Service.get_playready_license--source--__codelineno-0-192"></a><span class="sd"> :param challenge: The license challenge from the PlayReady CDM.</span>
</span><span id="unshackle.core.service.Service.get_playready_license--source--__span-0-193"><a id="unshackle.core.service.Service.get_playready_license--source--__codelineno-0-193" name="unshackle.core.service.Service.get_playready_license--source--__codelineno-0-193"></a><span class="sd"> gives this in case it holds data you need, for example for an HTTP request.</span> </span><span id="unshackle.core.service.Service.get_playready_license--source--__span-0-193"><a id="unshackle.core.service.Service.get_playready_license--source--__codelineno-0-193" name="unshackle.core.service.Service.get_playready_license--source--__codelineno-0-193"></a><span class="sd"> :param title: The current `Title` from get_titles that unshackle processes now. unshackle</span>
</span><span id="unshackle.core.service.Service.get_playready_license--source--__span-0-194"><a id="unshackle.core.service.Service.get_playready_license--source--__codelineno-0-194" name="unshackle.core.service.Service.get_playready_license--source--__codelineno-0-194"></a><span class="sd"> :param track: The current `Track` needing decryption. Provided for same reason as `title`.</span> </span><span id="unshackle.core.service.Service.get_playready_license--source--__span-0-194"><a id="unshackle.core.service.Service.get_playready_license--source--__codelineno-0-194" name="unshackle.core.service.Service.get_playready_license--source--__codelineno-0-194"></a><span class="sd"> gives this in case it holds data you need, for example for an HTTP request.</span>
</span><span id="unshackle.core.service.Service.get_playready_license--source--__span-0-195"><a id="unshackle.core.service.Service.get_playready_license--source--__codelineno-0-195" name="unshackle.core.service.Service.get_playready_license--source--__codelineno-0-195"></a><span class="sd"> :return: The License response as Bytes or a Base64 string. Do not Base64 Encode or</span> </span><span id="unshackle.core.service.Service.get_playready_license--source--__span-0-195"><a id="unshackle.core.service.Service.get_playready_license--source--__codelineno-0-195" name="unshackle.core.service.Service.get_playready_license--source--__codelineno-0-195"></a><span class="sd"> :param track: The current `Track` needing decryption. Provided for same reason as `title`.</span>
</span><span id="unshackle.core.service.Service.get_playready_license--source--__span-0-196"><a id="unshackle.core.service.Service.get_playready_license--source--__codelineno-0-196" name="unshackle.core.service.Service.get_playready_license--source--__codelineno-0-196"></a><span class="sd"> Decode the data, return as is to reduce unnecessary computations.</span> </span><span id="unshackle.core.service.Service.get_playready_license--source--__span-0-196"><a id="unshackle.core.service.Service.get_playready_license--source--__codelineno-0-196" name="unshackle.core.service.Service.get_playready_license--source--__codelineno-0-196"></a><span class="sd"> :return: The License response as Bytes or a Base64 string. Do not Base64 Encode or</span>
</span><span id="unshackle.core.service.Service.get_playready_license--source--__span-0-197"><a id="unshackle.core.service.Service.get_playready_license--source--__codelineno-0-197" name="unshackle.core.service.Service.get_playready_license--source--__codelineno-0-197"></a><span class="sd"> """</span> </span><span id="unshackle.core.service.Service.get_playready_license--source--__span-0-197"><a id="unshackle.core.service.Service.get_playready_license--source--__codelineno-0-197" name="unshackle.core.service.Service.get_playready_license--source--__codelineno-0-197"></a><span class="sd"> Decode the data, return as is to reduce unnecessary computations.</span>
</span><span id="unshackle.core.service.Service.get_playready_license--source--__span-0-198"><a id="unshackle.core.service.Service.get_playready_license--source--__codelineno-0-198" name="unshackle.core.service.Service.get_playready_license--source--__codelineno-0-198"></a> <span class="c1"># A service that implements Widevine licensing only still gets PlayReady, with the</span> </span><span id="unshackle.core.service.Service.get_playready_license--source--__span-0-198"><a id="unshackle.core.service.Service.get_playready_license--source--__codelineno-0-198" name="unshackle.core.service.Service.get_playready_license--source--__codelineno-0-198"></a><span class="sd"> """</span>
</span><span id="unshackle.core.service.Service.get_playready_license--source--__span-0-199"><a id="unshackle.core.service.Service.get_playready_license--source--__codelineno-0-199" name="unshackle.core.service.Service.get_playready_license--source--__codelineno-0-199"></a> <span class="c1"># arguments its own signature declares.</span> </span><span id="unshackle.core.service.Service.get_playready_license--source--__span-0-199"><a id="unshackle.core.service.Service.get_playready_license--source--__codelineno-0-199" name="unshackle.core.service.Service.get_playready_license--source--__codelineno-0-199"></a> <span class="c1"># A service that implements Widevine licensing only still gets PlayReady, with the</span>
</span><span id="unshackle.core.service.Service.get_playready_license--source--__span-0-200"><a id="unshackle.core.service.Service.get_playready_license--source--__codelineno-0-200" name="unshackle.core.service.Service.get_playready_license--source--__codelineno-0-200"></a> <span class="k">return</span> <span class="bp">self</span><span class="o">.</span><span class="n">get_widevine_license</span><span class="p">(</span> </span><span id="unshackle.core.service.Service.get_playready_license--source--__span-0-200"><a id="unshackle.core.service.Service.get_playready_license--source--__codelineno-0-200" name="unshackle.core.service.Service.get_playready_license--source--__codelineno-0-200"></a> <span class="c1"># arguments its own signature declares.</span>
</span><span id="unshackle.core.service.Service.get_playready_license--source--__span-0-201"><a id="unshackle.core.service.Service.get_playready_license--source--__codelineno-0-201" name="unshackle.core.service.Service.get_playready_license--source--__codelineno-0-201"></a> <span class="o">**</span><span class="n">declared_kwargs</span><span class="p">(</span><span class="bp">self</span><span class="o">.</span><span class="n">get_widevine_license</span><span class="p">,</span> <span class="p">{</span><span class="s2">"challenge"</span><span class="p">:</span> <span class="n">challenge</span><span class="p">,</span> <span class="s2">"title"</span><span class="p">:</span> <span class="n">title</span><span class="p">,</span> <span class="s2">"track"</span><span class="p">:</span> <span class="n">track</span><span class="p">})</span> </span><span id="unshackle.core.service.Service.get_playready_license--source--__span-0-201"><a id="unshackle.core.service.Service.get_playready_license--source--__codelineno-0-201" name="unshackle.core.service.Service.get_playready_license--source--__codelineno-0-201"></a> <span class="k">return</span> <span class="bp">self</span><span class="o">.</span><span class="n">get_widevine_license</span><span class="p">(</span>
</span><span id="unshackle.core.service.Service.get_playready_license--source--__span-0-202"><a id="unshackle.core.service.Service.get_playready_license--source--__codelineno-0-202" name="unshackle.core.service.Service.get_playready_license--source--__codelineno-0-202"></a> <span class="p">)</span> </span><span id="unshackle.core.service.Service.get_playready_license--source--__span-0-202"><a id="unshackle.core.service.Service.get_playready_license--source--__codelineno-0-202" name="unshackle.core.service.Service.get_playready_license--source--__codelineno-0-202"></a> <span class="o">**</span><span class="n">declared_kwargs</span><span class="p">(</span><span class="bp">self</span><span class="o">.</span><span class="n">get_widevine_license</span><span class="p">,</span> <span class="p">{</span><span class="s2">"challenge"</span><span class="p">:</span> <span class="n">challenge</span><span class="p">,</span> <span class="s2">"title"</span><span class="p">:</span> <span class="n">title</span><span class="p">,</span> <span class="s2">"track"</span><span class="p">:</span> <span class="n">track</span><span class="p">})</span>
</span><span id="unshackle.core.service.Service.get_playready_license--source--__span-0-203"><a id="unshackle.core.service.Service.get_playready_license--source--__codelineno-0-203" name="unshackle.core.service.Service.get_playready_license--source--__codelineno-0-203"></a> <span class="p">)</span>
</span></code></pre></div></td></tr></table></div> </span></code></pre></div></td></tr></table></div>
</details> </details>
</div> </div>
@@ -4769,8 +4769,7 @@ and the license is a JWK Set, e.g. <code>{"keys": [{"kty": "oct", "k": "...", "k
<details class="mkdocstrings-source"> <details class="mkdocstrings-source">
<summary>Source code in <code>unshackle/core/title_source.py</code></summary> <summary>Source code in <code>unshackle/core/title_source.py</code></summary>
<div class="language-python highlight"><table class="highlighttable"><tr><td class="linenos"><div class="linenodiv"><pre><span></span><span class="normal"><a href="#unshackle.core.service.Service.get_clearkey_license--source--__codelineno-0-204">204</a></span> <div class="language-python highlight"><table class="highlighttable"><tr><td class="linenos"><div class="linenodiv"><pre><span></span><span class="normal"><a href="#unshackle.core.service.Service.get_clearkey_license--source--__codelineno-0-205">205</a></span>
<span class="normal"><a href="#unshackle.core.service.Service.get_clearkey_license--source--__codelineno-0-205">205</a></span>
<span class="normal"><a href="#unshackle.core.service.Service.get_clearkey_license--source--__codelineno-0-206">206</a></span> <span class="normal"><a href="#unshackle.core.service.Service.get_clearkey_license--source--__codelineno-0-206">206</a></span>
<span class="normal"><a href="#unshackle.core.service.Service.get_clearkey_license--source--__codelineno-0-207">207</a></span> <span class="normal"><a href="#unshackle.core.service.Service.get_clearkey_license--source--__codelineno-0-207">207</a></span>
<span class="normal"><a href="#unshackle.core.service.Service.get_clearkey_license--source--__codelineno-0-208">208</a></span> <span class="normal"><a href="#unshackle.core.service.Service.get_clearkey_license--source--__codelineno-0-208">208</a></span>
@@ -4786,24 +4785,25 @@ and the license is a JWK Set, e.g. <code>{"keys": [{"kty": "oct", "k": "...", "k
<span class="normal"><a href="#unshackle.core.service.Service.get_clearkey_license--source--__codelineno-0-218">218</a></span> <span class="normal"><a href="#unshackle.core.service.Service.get_clearkey_license--source--__codelineno-0-218">218</a></span>
<span class="normal"><a href="#unshackle.core.service.Service.get_clearkey_license--source--__codelineno-0-219">219</a></span> <span class="normal"><a href="#unshackle.core.service.Service.get_clearkey_license--source--__codelineno-0-219">219</a></span>
<span class="normal"><a href="#unshackle.core.service.Service.get_clearkey_license--source--__codelineno-0-220">220</a></span> <span class="normal"><a href="#unshackle.core.service.Service.get_clearkey_license--source--__codelineno-0-220">220</a></span>
<span class="normal"><a href="#unshackle.core.service.Service.get_clearkey_license--source--__codelineno-0-221">221</a></span></pre></div></td><td class="code"><div><pre><span></span><code><span id="unshackle.core.service.Service.get_clearkey_license--source--__span-0-204"><a id="unshackle.core.service.Service.get_clearkey_license--source--__codelineno-0-204" name="unshackle.core.service.Service.get_clearkey_license--source--__codelineno-0-204"></a><span class="k">def</span><span class="w"> </span><span class="nf">get_clearkey_license</span><span class="p">(</span><span class="bp">self</span><span class="p">,</span> <span class="o">*</span><span class="p">,</span> <span class="n">challenge</span><span class="p">:</span> <span class="nb">bytes</span><span class="p">,</span> <span class="n">title</span><span class="p">:</span> <span class="n">Title_T</span><span class="p">,</span> <span class="n">track</span><span class="p">:</span> <span class="n">AnyTrack</span><span class="p">)</span> <span class="o">-&gt;</span> <span class="nb">bytes</span> <span class="o">|</span> <span class="nb">str</span> <span class="o">|</span> <span class="nb">dict</span> <span class="o">|</span> <span class="kc">None</span><span class="p">:</span> <span class="normal"><a href="#unshackle.core.service.Service.get_clearkey_license--source--__codelineno-0-221">221</a></span>
</span><span id="unshackle.core.service.Service.get_clearkey_license--source--__span-0-205"><a id="unshackle.core.service.Service.get_clearkey_license--source--__codelineno-0-205" name="unshackle.core.service.Service.get_clearkey_license--source--__codelineno-0-205"></a><span class="w"> </span><span class="sd">"""</span> <span class="normal"><a href="#unshackle.core.service.Service.get_clearkey_license--source--__codelineno-0-222">222</a></span></pre></div></td><td class="code"><div><pre><span></span><code><span id="unshackle.core.service.Service.get_clearkey_license--source--__span-0-205"><a id="unshackle.core.service.Service.get_clearkey_license--source--__codelineno-0-205" name="unshackle.core.service.Service.get_clearkey_license--source--__codelineno-0-205"></a><span class="k">def</span><span class="w"> </span><span class="nf">get_clearkey_license</span><span class="p">(</span><span class="bp">self</span><span class="p">,</span> <span class="o">*</span><span class="p">,</span> <span class="n">challenge</span><span class="p">:</span> <span class="nb">bytes</span><span class="p">,</span> <span class="n">title</span><span class="p">:</span> <span class="n">Title_T</span><span class="p">,</span> <span class="n">track</span><span class="p">:</span> <span class="n">AnyTrack</span><span class="p">)</span> <span class="o">-&gt;</span> <span class="nb">bytes</span> <span class="o">|</span> <span class="nb">str</span> <span class="o">|</span> <span class="nb">dict</span> <span class="o">|</span> <span class="kc">None</span><span class="p">:</span>
</span><span id="unshackle.core.service.Service.get_clearkey_license--source--__span-0-206"><a id="unshackle.core.service.Service.get_clearkey_license--source--__codelineno-0-206" name="unshackle.core.service.Service.get_clearkey_license--source--__codelineno-0-206"></a><span class="sd"> Get a W3C ClearKey License (JWK Set) by sending a License Request (challenge).</span> </span><span id="unshackle.core.service.Service.get_clearkey_license--source--__span-0-206"><a id="unshackle.core.service.Service.get_clearkey_license--source--__codelineno-0-206" name="unshackle.core.service.Service.get_clearkey_license--source--__codelineno-0-206"></a><span class="w"> </span><span class="sd">"""</span>
</span><span id="unshackle.core.service.Service.get_clearkey_license--source--__span-0-207"><a id="unshackle.core.service.Service.get_clearkey_license--source--__codelineno-0-207" name="unshackle.core.service.Service.get_clearkey_license--source--__codelineno-0-207"></a> </span><span id="unshackle.core.service.Service.get_clearkey_license--source--__span-0-207"><a id="unshackle.core.service.Service.get_clearkey_license--source--__codelineno-0-207" name="unshackle.core.service.Service.get_clearkey_license--source--__codelineno-0-207"></a><span class="sd"> Get a W3C ClearKey License (JWK Set) by sending a License Request (challenge).</span>
</span><span id="unshackle.core.service.Service.get_clearkey_license--source--__span-0-208"><a id="unshackle.core.service.Service.get_clearkey_license--source--__codelineno-0-208" name="unshackle.core.service.Service.get_clearkey_license--source--__codelineno-0-208"></a><span class="sd"> Used for DASH `org.w3.clearkey` tracks. unshackle uses no CDM here: the challenge is</span> </span><span id="unshackle.core.service.Service.get_clearkey_license--source--__span-0-208"><a id="unshackle.core.service.Service.get_clearkey_license--source--__codelineno-0-208" name="unshackle.core.service.Service.get_clearkey_license--source--__codelineno-0-208"></a>
</span><span id="unshackle.core.service.Service.get_clearkey_license--source--__span-0-209"><a id="unshackle.core.service.Service.get_clearkey_license--source--__codelineno-0-209" name="unshackle.core.service.Service.get_clearkey_license--source--__codelineno-0-209"></a><span class="sd"> the W3C EME JSON license request, e.g. ``{"kids": ["&lt;base64url&gt;"], "type": "temporary"}``,</span> </span><span id="unshackle.core.service.Service.get_clearkey_license--source--__span-0-209"><a id="unshackle.core.service.Service.get_clearkey_license--source--__codelineno-0-209" name="unshackle.core.service.Service.get_clearkey_license--source--__codelineno-0-209"></a><span class="sd"> Used for DASH `org.w3.clearkey` tracks. unshackle uses no CDM here: the challenge is</span>
</span><span id="unshackle.core.service.Service.get_clearkey_license--source--__span-0-210"><a id="unshackle.core.service.Service.get_clearkey_license--source--__codelineno-0-210" name="unshackle.core.service.Service.get_clearkey_license--source--__codelineno-0-210"></a><span class="sd"> and the license is a JWK Set, e.g. ``{"keys": [{"kty": "oct", "k": "...", "kid": "..."}]}``.</span> </span><span id="unshackle.core.service.Service.get_clearkey_license--source--__span-0-210"><a id="unshackle.core.service.Service.get_clearkey_license--source--__codelineno-0-210" name="unshackle.core.service.Service.get_clearkey_license--source--__codelineno-0-210"></a><span class="sd"> the W3C EME JSON license request, e.g. ``{"kids": ["&lt;base64url&gt;"], "type": "temporary"}``,</span>
</span><span id="unshackle.core.service.Service.get_clearkey_license--source--__span-0-211"><a id="unshackle.core.service.Service.get_clearkey_license--source--__codelineno-0-211" name="unshackle.core.service.Service.get_clearkey_license--source--__codelineno-0-211"></a> </span><span id="unshackle.core.service.Service.get_clearkey_license--source--__span-0-211"><a id="unshackle.core.service.Service.get_clearkey_license--source--__codelineno-0-211" name="unshackle.core.service.Service.get_clearkey_license--source--__codelineno-0-211"></a><span class="sd"> and the license is a JWK Set, e.g. ``{"keys": [{"kty": "oct", "k": "...", "kid": "..."}]}``.</span>
</span><span id="unshackle.core.service.Service.get_clearkey_license--source--__span-0-212"><a id="unshackle.core.service.Service.get_clearkey_license--source--__codelineno-0-212" name="unshackle.core.service.Service.get_clearkey_license--source--__codelineno-0-212"></a><span class="sd"> :param challenge: The JSON license request bytes to POST to the license server.</span> </span><span id="unshackle.core.service.Service.get_clearkey_license--source--__span-0-212"><a id="unshackle.core.service.Service.get_clearkey_license--source--__codelineno-0-212" name="unshackle.core.service.Service.get_clearkey_license--source--__codelineno-0-212"></a>
</span><span id="unshackle.core.service.Service.get_clearkey_license--source--__span-0-213"><a id="unshackle.core.service.Service.get_clearkey_license--source--__codelineno-0-213" name="unshackle.core.service.Service.get_clearkey_license--source--__codelineno-0-213"></a><span class="sd"> :param title: The current `Title` from get_titles that unshackle processes now. unshackle</span> </span><span id="unshackle.core.service.Service.get_clearkey_license--source--__span-0-213"><a id="unshackle.core.service.Service.get_clearkey_license--source--__codelineno-0-213" name="unshackle.core.service.Service.get_clearkey_license--source--__codelineno-0-213"></a><span class="sd"> :param challenge: The JSON license request bytes to POST to the license server.</span>
</span><span id="unshackle.core.service.Service.get_clearkey_license--source--__span-0-214"><a id="unshackle.core.service.Service.get_clearkey_license--source--__codelineno-0-214" name="unshackle.core.service.Service.get_clearkey_license--source--__codelineno-0-214"></a><span class="sd"> gives this in case it holds data you need, for example for an HTTP request.</span> </span><span id="unshackle.core.service.Service.get_clearkey_license--source--__span-0-214"><a id="unshackle.core.service.Service.get_clearkey_license--source--__codelineno-0-214" name="unshackle.core.service.Service.get_clearkey_license--source--__codelineno-0-214"></a><span class="sd"> :param title: The current `Title` from get_titles that unshackle processes now. unshackle</span>
</span><span id="unshackle.core.service.Service.get_clearkey_license--source--__span-0-215"><a id="unshackle.core.service.Service.get_clearkey_license--source--__codelineno-0-215" name="unshackle.core.service.Service.get_clearkey_license--source--__codelineno-0-215"></a><span class="sd"> :param track: The current `Track` needing decryption. Provided for same reason as `title`.</span> </span><span id="unshackle.core.service.Service.get_clearkey_license--source--__span-0-215"><a id="unshackle.core.service.Service.get_clearkey_license--source--__codelineno-0-215" name="unshackle.core.service.Service.get_clearkey_license--source--__codelineno-0-215"></a><span class="sd"> gives this in case it holds data you need, for example for an HTTP request.</span>
</span><span id="unshackle.core.service.Service.get_clearkey_license--source--__span-0-216"><a id="unshackle.core.service.Service.get_clearkey_license--source--__codelineno-0-216" name="unshackle.core.service.Service.get_clearkey_license--source--__codelineno-0-216"></a><span class="sd"> :return: The JWK Set license as a dict, JSON str, or raw bytes. Return None (the default)</span> </span><span id="unshackle.core.service.Service.get_clearkey_license--source--__span-0-216"><a id="unshackle.core.service.Service.get_clearkey_license--source--__codelineno-0-216" name="unshackle.core.service.Service.get_clearkey_license--source--__codelineno-0-216"></a><span class="sd"> :param track: The current `Track` needing decryption. Provided for same reason as `title`.</span>
</span><span id="unshackle.core.service.Service.get_clearkey_license--source--__span-0-217"><a id="unshackle.core.service.Service.get_clearkey_license--source--__codelineno-0-217" name="unshackle.core.service.Service.get_clearkey_license--source--__codelineno-0-217"></a><span class="sd"> to let the framework POST the challenge to the manifest-provided Laurl, if any.</span> </span><span id="unshackle.core.service.Service.get_clearkey_license--source--__span-0-217"><a id="unshackle.core.service.Service.get_clearkey_license--source--__codelineno-0-217" name="unshackle.core.service.Service.get_clearkey_license--source--__codelineno-0-217"></a><span class="sd"> :return: The JWK Set license as a dict, JSON str, or raw bytes. Return None (the default)</span>
</span><span id="unshackle.core.service.Service.get_clearkey_license--source--__span-0-218"><a id="unshackle.core.service.Service.get_clearkey_license--source--__codelineno-0-218" name="unshackle.core.service.Service.get_clearkey_license--source--__codelineno-0-218"></a><span class="sd"> Services with no license server can instead pre-populate the DRM object's</span> </span><span id="unshackle.core.service.Service.get_clearkey_license--source--__span-0-218"><a id="unshackle.core.service.Service.get_clearkey_license--source--__codelineno-0-218" name="unshackle.core.service.Service.get_clearkey_license--source--__codelineno-0-218"></a><span class="sd"> to let the framework POST the challenge to the manifest-provided Laurl, if any.</span>
</span><span id="unshackle.core.service.Service.get_clearkey_license--source--__span-0-219"><a id="unshackle.core.service.Service.get_clearkey_license--source--__codelineno-0-219" name="unshackle.core.service.Service.get_clearkey_license--source--__codelineno-0-219"></a><span class="sd"> `signatures` in get_tracks.</span> </span><span id="unshackle.core.service.Service.get_clearkey_license--source--__span-0-219"><a id="unshackle.core.service.Service.get_clearkey_license--source--__codelineno-0-219" name="unshackle.core.service.Service.get_clearkey_license--source--__codelineno-0-219"></a><span class="sd"> Services with no license server can instead pre-populate the DRM object's</span>
</span><span id="unshackle.core.service.Service.get_clearkey_license--source--__span-0-220"><a id="unshackle.core.service.Service.get_clearkey_license--source--__codelineno-0-220" name="unshackle.core.service.Service.get_clearkey_license--source--__codelineno-0-220"></a><span class="sd"> """</span> </span><span id="unshackle.core.service.Service.get_clearkey_license--source--__span-0-220"><a id="unshackle.core.service.Service.get_clearkey_license--source--__codelineno-0-220" name="unshackle.core.service.Service.get_clearkey_license--source--__codelineno-0-220"></a><span class="sd"> `signatures` in get_tracks.</span>
</span><span id="unshackle.core.service.Service.get_clearkey_license--source--__span-0-221"><a id="unshackle.core.service.Service.get_clearkey_license--source--__codelineno-0-221" name="unshackle.core.service.Service.get_clearkey_license--source--__codelineno-0-221"></a> <span class="k">return</span> <span class="kc">None</span> </span><span id="unshackle.core.service.Service.get_clearkey_license--source--__span-0-221"><a id="unshackle.core.service.Service.get_clearkey_license--source--__codelineno-0-221" name="unshackle.core.service.Service.get_clearkey_license--source--__codelineno-0-221"></a><span class="sd"> """</span>
</span><span id="unshackle.core.service.Service.get_clearkey_license--source--__span-0-222"><a id="unshackle.core.service.Service.get_clearkey_license--source--__codelineno-0-222" name="unshackle.core.service.Service.get_clearkey_license--source--__codelineno-0-222"></a> <span class="k">return</span> <span class="kc">None</span>
</span></code></pre></div></td></tr></table></div> </span></code></pre></div></td></tr></table></div>
</details> </details>
</div> </div>
@@ -4828,9 +4828,9 @@ and the license is a JWK Set, e.g. <code>{"keys": [{"kty": "oct", "k": "...", "k
<details class="mkdocstrings-source"> <details class="mkdocstrings-source">
<summary>Source code in <code>unshackle/core/title_source.py</code></summary> <summary>Source code in <code>unshackle/core/title_source.py</code></summary>
<div class="language-python highlight"><table class="highlighttable"><tr><td class="linenos"><div class="linenodiv"><pre><span></span><span class="normal"><a href="#unshackle.core.service.Service.close--source--__codelineno-0-239">239</a></span> <div class="language-python highlight"><table class="highlighttable"><tr><td class="linenos"><div class="linenodiv"><pre><span></span><span class="normal"><a href="#unshackle.core.service.Service.close--source--__codelineno-0-240">240</a></span>
<span class="normal"><a href="#unshackle.core.service.Service.close--source--__codelineno-0-240">240</a></span></pre></div></td><td class="code"><div><pre><span></span><code><span id="unshackle.core.service.Service.close--source--__span-0-239"><a id="unshackle.core.service.Service.close--source--__codelineno-0-239" name="unshackle.core.service.Service.close--source--__codelineno-0-239"></a><span class="k">def</span><span class="w"> </span><span class="nf">close</span><span class="p">(</span><span class="bp">self</span><span class="p">)</span> <span class="o">-&gt;</span> <span class="kc">None</span><span class="p">:</span> <span class="normal"><a href="#unshackle.core.service.Service.close--source--__codelineno-0-241">241</a></span></pre></div></td><td class="code"><div><pre><span></span><code><span id="unshackle.core.service.Service.close--source--__span-0-240"><a id="unshackle.core.service.Service.close--source--__codelineno-0-240" name="unshackle.core.service.Service.close--source--__codelineno-0-240"></a><span class="k">def</span><span class="w"> </span><span class="nf">close</span><span class="p">(</span><span class="bp">self</span><span class="p">)</span> <span class="o">-&gt;</span> <span class="kc">None</span><span class="p">:</span>
</span><span id="unshackle.core.service.Service.close--source--__span-0-240"><a id="unshackle.core.service.Service.close--source--__codelineno-0-240" name="unshackle.core.service.Service.close--source--__codelineno-0-240"></a><span class="w"> </span><span class="sd">"""Release what the source holds open once dl has finished every title."""</span> </span><span id="unshackle.core.service.Service.close--source--__span-0-241"><a id="unshackle.core.service.Service.close--source--__codelineno-0-241" name="unshackle.core.service.Service.close--source--__codelineno-0-241"></a><span class="w"> </span><span class="sd">"""Release what the source holds open once dl has finished every title."""</span>
</span></code></pre></div></td></tr></table></div> </span></code></pre></div></td></tr></table></div>
</details> </details>
</div> </div>
@@ -4855,11 +4855,11 @@ and the license is a JWK Set, e.g. <code>{"keys": [{"kty": "oct", "k": "...", "k
<details class="mkdocstrings-source"> <details class="mkdocstrings-source">
<summary>Source code in <code>unshackle/core/title_source.py</code></summary> <summary>Source code in <code>unshackle/core/title_source.py</code></summary>
<div class="language-python highlight"><table class="highlighttable"><tr><td class="linenos"><div class="linenodiv"><pre><span></span><span class="normal"><a href="#unshackle.core.service.Service.decrypts_samples--source--__codelineno-0-244">244</a></span> <div class="language-python highlight"><table class="highlighttable"><tr><td class="linenos"><div class="linenodiv"><pre><span></span><span class="normal"><a href="#unshackle.core.service.Service.decrypts_samples--source--__codelineno-0-245">245</a></span>
<span class="normal"><a href="#unshackle.core.service.Service.decrypts_samples--source--__codelineno-0-245">245</a></span> <span class="normal"><a href="#unshackle.core.service.Service.decrypts_samples--source--__codelineno-0-246">246</a></span>
<span class="normal"><a href="#unshackle.core.service.Service.decrypts_samples--source--__codelineno-0-246">246</a></span></pre></div></td><td class="code"><div><pre><span></span><code><span id="unshackle.core.service.Service.decrypts_samples--source--__span-0-244"><a id="unshackle.core.service.Service.decrypts_samples--source--__codelineno-0-244" name="unshackle.core.service.Service.decrypts_samples--source--__codelineno-0-244"></a><span class="k">def</span><span class="w"> </span><span class="nf">decrypts_samples</span><span class="p">(</span><span class="bp">self</span><span class="p">,</span> <span class="n">track</span><span class="p">:</span> <span class="n">AnyTrack</span><span class="p">)</span> <span class="o">-&gt;</span> <span class="nb">bool</span><span class="p">:</span> <span class="normal"><a href="#unshackle.core.service.Service.decrypts_samples--source--__codelineno-0-247">247</a></span></pre></div></td><td class="code"><div><pre><span></span><code><span id="unshackle.core.service.Service.decrypts_samples--source--__span-0-245"><a id="unshackle.core.service.Service.decrypts_samples--source--__codelineno-0-245" name="unshackle.core.service.Service.decrypts_samples--source--__codelineno-0-245"></a><span class="k">def</span><span class="w"> </span><span class="nf">decrypts_samples</span><span class="p">(</span><span class="bp">self</span><span class="p">,</span> <span class="n">track</span><span class="p">:</span> <span class="n">AnyTrack</span><span class="p">)</span> <span class="o">-&gt;</span> <span class="nb">bool</span><span class="p">:</span>
</span><span id="unshackle.core.service.Service.decrypts_samples--source--__span-0-245"><a id="unshackle.core.service.Service.decrypts_samples--source--__codelineno-0-245" name="unshackle.core.service.Service.decrypts_samples--source--__codelineno-0-245"></a><span class="w"> </span><span class="sd">"""Whether this service decrypts the cbcs file of `track` after the download, through `get_sample_decrypter`."""</span> </span><span id="unshackle.core.service.Service.decrypts_samples--source--__span-0-246"><a id="unshackle.core.service.Service.decrypts_samples--source--__codelineno-0-246" name="unshackle.core.service.Service.decrypts_samples--source--__codelineno-0-246"></a><span class="w"> </span><span class="sd">"""Whether this service decrypts the cbcs file of `track` after the download, through `get_sample_decrypter`."""</span>
</span><span id="unshackle.core.service.Service.decrypts_samples--source--__span-0-246"><a id="unshackle.core.service.Service.decrypts_samples--source--__codelineno-0-246" name="unshackle.core.service.Service.decrypts_samples--source--__codelineno-0-246"></a> <span class="k">return</span> <span class="kc">False</span> </span><span id="unshackle.core.service.Service.decrypts_samples--source--__span-0-247"><a id="unshackle.core.service.Service.decrypts_samples--source--__codelineno-0-247" name="unshackle.core.service.Service.decrypts_samples--source--__codelineno-0-247"></a> <span class="k">return</span> <span class="kc">False</span>
</span></code></pre></div></td></tr></table></div> </span></code></pre></div></td></tr></table></div>
</details> </details>
</div> </div>
@@ -4886,19 +4886,19 @@ server, so a decrypter that needs a local process works for remote clients too.<
<details class="mkdocstrings-source"> <details class="mkdocstrings-source">
<summary>Source code in <code>unshackle/core/title_source.py</code></summary> <summary>Source code in <code>unshackle/core/title_source.py</code></summary>
<div class="language-python highlight"><table class="highlighttable"><tr><td class="linenos"><div class="linenodiv"><pre><span></span><span class="normal"><a href="#unshackle.core.service.Service.get_sample_decrypter--source--__codelineno-0-248">248</a></span> <div class="language-python highlight"><table class="highlighttable"><tr><td class="linenos"><div class="linenodiv"><pre><span></span><span class="normal"><a href="#unshackle.core.service.Service.get_sample_decrypter--source--__codelineno-0-249">249</a></span>
<span class="normal"><a href="#unshackle.core.service.Service.get_sample_decrypter--source--__codelineno-0-249">249</a></span>
<span class="normal"><a href="#unshackle.core.service.Service.get_sample_decrypter--source--__codelineno-0-250">250</a></span> <span class="normal"><a href="#unshackle.core.service.Service.get_sample_decrypter--source--__codelineno-0-250">250</a></span>
<span class="normal"><a href="#unshackle.core.service.Service.get_sample_decrypter--source--__codelineno-0-251">251</a></span> <span class="normal"><a href="#unshackle.core.service.Service.get_sample_decrypter--source--__codelineno-0-251">251</a></span>
<span class="normal"><a href="#unshackle.core.service.Service.get_sample_decrypter--source--__codelineno-0-252">252</a></span> <span class="normal"><a href="#unshackle.core.service.Service.get_sample_decrypter--source--__codelineno-0-252">252</a></span>
<span class="normal"><a href="#unshackle.core.service.Service.get_sample_decrypter--source--__codelineno-0-253">253</a></span> <span class="normal"><a href="#unshackle.core.service.Service.get_sample_decrypter--source--__codelineno-0-253">253</a></span>
<span class="normal"><a href="#unshackle.core.service.Service.get_sample_decrypter--source--__codelineno-0-254">254</a></span></pre></div></td><td class="code"><div><pre><span></span><code><span id="unshackle.core.service.Service.get_sample_decrypter--source--__span-0-248"><a id="unshackle.core.service.Service.get_sample_decrypter--source--__codelineno-0-248" name="unshackle.core.service.Service.get_sample_decrypter--source--__codelineno-0-248"></a><span class="k">def</span><span class="w"> </span><span class="nf">get_sample_decrypter</span><span class="p">(</span><span class="bp">self</span><span class="p">,</span> <span class="n">track</span><span class="p">:</span> <span class="n">AnyTrack</span><span class="p">,</span> <span class="n">entry</span><span class="p">:</span> <span class="nb">int</span><span class="p">)</span> <span class="o">-&gt;</span> <span class="nb">bytes</span> <span class="o">|</span> <span class="n">SampleDecrypter</span><span class="p">:</span> <span class="normal"><a href="#unshackle.core.service.Service.get_sample_decrypter--source--__codelineno-0-254">254</a></span>
</span><span id="unshackle.core.service.Service.get_sample_decrypter--source--__span-0-249"><a id="unshackle.core.service.Service.get_sample_decrypter--source--__codelineno-0-249" name="unshackle.core.service.Service.get_sample_decrypter--source--__codelineno-0-249"></a><span class="w"> </span><span class="sd">"""The content key, or a `cbcs.SampleDecrypter`, for `stsd` entry `entry` (1-based) of `track`.</span> <span class="normal"><a href="#unshackle.core.service.Service.get_sample_decrypter--source--__codelineno-0-255">255</a></span></pre></div></td><td class="code"><div><pre><span></span><code><span id="unshackle.core.service.Service.get_sample_decrypter--source--__span-0-249"><a id="unshackle.core.service.Service.get_sample_decrypter--source--__codelineno-0-249" name="unshackle.core.service.Service.get_sample_decrypter--source--__codelineno-0-249"></a><span class="k">def</span><span class="w"> </span><span class="nf">get_sample_decrypter</span><span class="p">(</span><span class="bp">self</span><span class="p">,</span> <span class="n">track</span><span class="p">:</span> <span class="n">AnyTrack</span><span class="p">,</span> <span class="n">entry</span><span class="p">:</span> <span class="nb">int</span><span class="p">)</span> <span class="o">-&gt;</span> <span class="nb">bytes</span> <span class="o">|</span> <span class="n">SampleDecrypter</span><span class="p">:</span>
</span><span id="unshackle.core.service.Service.get_sample_decrypter--source--__span-0-250"><a id="unshackle.core.service.Service.get_sample_decrypter--source--__codelineno-0-250" name="unshackle.core.service.Service.get_sample_decrypter--source--__codelineno-0-250"></a> </span><span id="unshackle.core.service.Service.get_sample_decrypter--source--__span-0-250"><a id="unshackle.core.service.Service.get_sample_decrypter--source--__codelineno-0-250" name="unshackle.core.service.Service.get_sample_decrypter--source--__codelineno-0-250"></a><span class="w"> </span><span class="sd">"""The content key, or a `cbcs.SampleDecrypter`, for `stsd` entry `entry` (1-based) of `track`.</span>
</span><span id="unshackle.core.service.Service.get_sample_decrypter--source--__span-0-251"><a id="unshackle.core.service.Service.get_sample_decrypter--source--__codelineno-0-251" name="unshackle.core.service.Service.get_sample_decrypter--source--__codelineno-0-251"></a><span class="sd"> unshackle calls this only for a track `decrypts_samples` names. A remote session runs it on the</span> </span><span id="unshackle.core.service.Service.get_sample_decrypter--source--__span-0-251"><a id="unshackle.core.service.Service.get_sample_decrypter--source--__codelineno-0-251" name="unshackle.core.service.Service.get_sample_decrypter--source--__codelineno-0-251"></a>
</span><span id="unshackle.core.service.Service.get_sample_decrypter--source--__span-0-252"><a id="unshackle.core.service.Service.get_sample_decrypter--source--__codelineno-0-252" name="unshackle.core.service.Service.get_sample_decrypter--source--__codelineno-0-252"></a><span class="sd"> server, so a decrypter that needs a local process works for remote clients too.</span> </span><span id="unshackle.core.service.Service.get_sample_decrypter--source--__span-0-252"><a id="unshackle.core.service.Service.get_sample_decrypter--source--__codelineno-0-252" name="unshackle.core.service.Service.get_sample_decrypter--source--__codelineno-0-252"></a><span class="sd"> unshackle calls this only for a track `decrypts_samples` names. A remote session runs it on the</span>
</span><span id="unshackle.core.service.Service.get_sample_decrypter--source--__span-0-253"><a id="unshackle.core.service.Service.get_sample_decrypter--source--__codelineno-0-253" name="unshackle.core.service.Service.get_sample_decrypter--source--__codelineno-0-253"></a><span class="sd"> """</span> </span><span id="unshackle.core.service.Service.get_sample_decrypter--source--__span-0-253"><a id="unshackle.core.service.Service.get_sample_decrypter--source--__codelineno-0-253" name="unshackle.core.service.Service.get_sample_decrypter--source--__codelineno-0-253"></a><span class="sd"> server, so a decrypter that needs a local process works for remote clients too.</span>
</span><span id="unshackle.core.service.Service.get_sample_decrypter--source--__span-0-254"><a id="unshackle.core.service.Service.get_sample_decrypter--source--__codelineno-0-254" name="unshackle.core.service.Service.get_sample_decrypter--source--__codelineno-0-254"></a> <span class="k">raise</span> <span class="ne">NotImplementedError</span><span class="p">(</span><span class="sa">f</span><span class="s2">"</span><span class="si">{</span><span class="bp">self</span><span class="o">.</span><span class="vm">__class__</span><span class="o">.</span><span class="vm">__name__</span><span class="si">}</span><span class="s2"> does not decrypt samples"</span><span class="p">)</span> </span><span id="unshackle.core.service.Service.get_sample_decrypter--source--__span-0-254"><a id="unshackle.core.service.Service.get_sample_decrypter--source--__codelineno-0-254" name="unshackle.core.service.Service.get_sample_decrypter--source--__codelineno-0-254"></a><span class="sd"> """</span>
</span><span id="unshackle.core.service.Service.get_sample_decrypter--source--__span-0-255"><a id="unshackle.core.service.Service.get_sample_decrypter--source--__codelineno-0-255" name="unshackle.core.service.Service.get_sample_decrypter--source--__codelineno-0-255"></a> <span class="k">raise</span> <span class="ne">NotImplementedError</span><span class="p">(</span><span class="sa">f</span><span class="s2">"</span><span class="si">{</span><span class="bp">self</span><span class="o">.</span><span class="vm">__class__</span><span class="o">.</span><span class="vm">__name__</span><span class="si">}</span><span class="s2"> does not decrypt samples"</span><span class="p">)</span>
</span></code></pre></div></td></tr></table></div> </span></code></pre></div></td></tr></table></div>
</details> </details>
</div> </div>
@@ -4970,21 +4970,21 @@ server, so a decrypter that needs a local process works for remote clients too.<
<details class="mkdocstrings-source"> <details class="mkdocstrings-source">
<summary>Source code in <code>unshackle/core/title_source.py</code></summary> <summary>Source code in <code>unshackle/core/title_source.py</code></summary>
<div class="language-python highlight"><table class="highlighttable"><tr><td class="linenos"><div class="linenodiv"><pre><span></span><span class="normal"><a href="#unshackle.core.service.Service.on_segment_downloaded--source--__codelineno-0-258">258</a></span> <div class="language-python highlight"><table class="highlighttable"><tr><td class="linenos"><div class="linenodiv"><pre><span></span><span class="normal"><a href="#unshackle.core.service.Service.on_segment_downloaded--source--__codelineno-0-259">259</a></span>
<span class="normal"><a href="#unshackle.core.service.Service.on_segment_downloaded--source--__codelineno-0-259">259</a></span>
<span class="normal"><a href="#unshackle.core.service.Service.on_segment_downloaded--source--__codelineno-0-260">260</a></span> <span class="normal"><a href="#unshackle.core.service.Service.on_segment_downloaded--source--__codelineno-0-260">260</a></span>
<span class="normal"><a href="#unshackle.core.service.Service.on_segment_downloaded--source--__codelineno-0-261">261</a></span> <span class="normal"><a href="#unshackle.core.service.Service.on_segment_downloaded--source--__codelineno-0-261">261</a></span>
<span class="normal"><a href="#unshackle.core.service.Service.on_segment_downloaded--source--__codelineno-0-262">262</a></span> <span class="normal"><a href="#unshackle.core.service.Service.on_segment_downloaded--source--__codelineno-0-262">262</a></span>
<span class="normal"><a href="#unshackle.core.service.Service.on_segment_downloaded--source--__codelineno-0-263">263</a></span> <span class="normal"><a href="#unshackle.core.service.Service.on_segment_downloaded--source--__codelineno-0-263">263</a></span>
<span class="normal"><a href="#unshackle.core.service.Service.on_segment_downloaded--source--__codelineno-0-264">264</a></span> <span class="normal"><a href="#unshackle.core.service.Service.on_segment_downloaded--source--__codelineno-0-264">264</a></span>
<span class="normal"><a href="#unshackle.core.service.Service.on_segment_downloaded--source--__codelineno-0-265">265</a></span></pre></div></td><td class="code"><div><pre><span></span><code><span id="unshackle.core.service.Service.on_segment_downloaded--source--__span-0-258"><a id="unshackle.core.service.Service.on_segment_downloaded--source--__codelineno-0-258" name="unshackle.core.service.Service.on_segment_downloaded--source--__codelineno-0-258"></a><span class="k">def</span><span class="w"> </span><span class="nf">on_segment_downloaded</span><span class="p">(</span><span class="bp">self</span><span class="p">,</span> <span class="n">track</span><span class="p">:</span> <span class="n">AnyTrack</span><span class="p">,</span> <span class="n">segment</span><span class="p">:</span> <span class="n">Path</span><span class="p">)</span> <span class="o">-&gt;</span> <span class="kc">None</span><span class="p">:</span> <span class="normal"><a href="#unshackle.core.service.Service.on_segment_downloaded--source--__codelineno-0-265">265</a></span>
</span><span id="unshackle.core.service.Service.on_segment_downloaded--source--__span-0-259"><a id="unshackle.core.service.Service.on_segment_downloaded--source--__codelineno-0-259" name="unshackle.core.service.Service.on_segment_downloaded--source--__codelineno-0-259"></a><span class="w"> </span><span class="sd">"""</span> <span class="normal"><a href="#unshackle.core.service.Service.on_segment_downloaded--source--__codelineno-0-266">266</a></span></pre></div></td><td class="code"><div><pre><span></span><code><span id="unshackle.core.service.Service.on_segment_downloaded--source--__span-0-259"><a id="unshackle.core.service.Service.on_segment_downloaded--source--__codelineno-0-259" name="unshackle.core.service.Service.on_segment_downloaded--source--__codelineno-0-259"></a><span class="k">def</span><span class="w"> </span><span class="nf">on_segment_downloaded</span><span class="p">(</span><span class="bp">self</span><span class="p">,</span> <span class="n">track</span><span class="p">:</span> <span class="n">AnyTrack</span><span class="p">,</span> <span class="n">segment</span><span class="p">:</span> <span class="n">Path</span><span class="p">)</span> <span class="o">-&gt;</span> <span class="kc">None</span><span class="p">:</span>
</span><span id="unshackle.core.service.Service.on_segment_downloaded--source--__span-0-260"><a id="unshackle.core.service.Service.on_segment_downloaded--source--__codelineno-0-260" name="unshackle.core.service.Service.on_segment_downloaded--source--__codelineno-0-260"></a><span class="sd"> Called when one of a Track's Segments has finished downloading.</span> </span><span id="unshackle.core.service.Service.on_segment_downloaded--source--__span-0-260"><a id="unshackle.core.service.Service.on_segment_downloaded--source--__codelineno-0-260" name="unshackle.core.service.Service.on_segment_downloaded--source--__codelineno-0-260"></a><span class="w"> </span><span class="sd">"""</span>
</span><span id="unshackle.core.service.Service.on_segment_downloaded--source--__span-0-261"><a id="unshackle.core.service.Service.on_segment_downloaded--source--__codelineno-0-261" name="unshackle.core.service.Service.on_segment_downloaded--source--__codelineno-0-261"></a> </span><span id="unshackle.core.service.Service.on_segment_downloaded--source--__span-0-261"><a id="unshackle.core.service.Service.on_segment_downloaded--source--__codelineno-0-261" name="unshackle.core.service.Service.on_segment_downloaded--source--__codelineno-0-261"></a><span class="sd"> Called when one of a Track's Segments has finished downloading.</span>
</span><span id="unshackle.core.service.Service.on_segment_downloaded--source--__span-0-262"><a id="unshackle.core.service.Service.on_segment_downloaded--source--__codelineno-0-262" name="unshackle.core.service.Service.on_segment_downloaded--source--__codelineno-0-262"></a><span class="sd"> Parameters:</span> </span><span id="unshackle.core.service.Service.on_segment_downloaded--source--__span-0-262"><a id="unshackle.core.service.Service.on_segment_downloaded--source--__codelineno-0-262" name="unshackle.core.service.Service.on_segment_downloaded--source--__codelineno-0-262"></a>
</span><span id="unshackle.core.service.Service.on_segment_downloaded--source--__span-0-263"><a id="unshackle.core.service.Service.on_segment_downloaded--source--__codelineno-0-263" name="unshackle.core.service.Service.on_segment_downloaded--source--__codelineno-0-263"></a><span class="sd"> track: The Track object that had a Segment downloaded.</span> </span><span id="unshackle.core.service.Service.on_segment_downloaded--source--__span-0-263"><a id="unshackle.core.service.Service.on_segment_downloaded--source--__codelineno-0-263" name="unshackle.core.service.Service.on_segment_downloaded--source--__codelineno-0-263"></a><span class="sd"> Parameters:</span>
</span><span id="unshackle.core.service.Service.on_segment_downloaded--source--__span-0-264"><a id="unshackle.core.service.Service.on_segment_downloaded--source--__codelineno-0-264" name="unshackle.core.service.Service.on_segment_downloaded--source--__codelineno-0-264"></a><span class="sd"> segment: The Path to the downloaded Segment.</span> </span><span id="unshackle.core.service.Service.on_segment_downloaded--source--__span-0-264"><a id="unshackle.core.service.Service.on_segment_downloaded--source--__codelineno-0-264" name="unshackle.core.service.Service.on_segment_downloaded--source--__codelineno-0-264"></a><span class="sd"> track: The Track object that had a Segment downloaded.</span>
</span><span id="unshackle.core.service.Service.on_segment_downloaded--source--__span-0-265"><a id="unshackle.core.service.Service.on_segment_downloaded--source--__codelineno-0-265" name="unshackle.core.service.Service.on_segment_downloaded--source--__codelineno-0-265"></a><span class="sd"> """</span> </span><span id="unshackle.core.service.Service.on_segment_downloaded--source--__span-0-265"><a id="unshackle.core.service.Service.on_segment_downloaded--source--__codelineno-0-265" name="unshackle.core.service.Service.on_segment_downloaded--source--__codelineno-0-265"></a><span class="sd"> segment: The Path to the downloaded Segment.</span>
</span><span id="unshackle.core.service.Service.on_segment_downloaded--source--__span-0-266"><a id="unshackle.core.service.Service.on_segment_downloaded--source--__codelineno-0-266" name="unshackle.core.service.Service.on_segment_downloaded--source--__codelineno-0-266"></a><span class="sd"> """</span>
</span></code></pre></div></td></tr></table></div> </span></code></pre></div></td></tr></table></div>
</details> </details>
</div> </div>
@@ -5041,21 +5041,21 @@ In a licence-only run the track has no file.</p>
<details class="mkdocstrings-source"> <details class="mkdocstrings-source">
<summary>Source code in <code>unshackle/core/title_source.py</code></summary> <summary>Source code in <code>unshackle/core/title_source.py</code></summary>
<div class="language-python highlight"><table class="highlighttable"><tr><td class="linenos"><div class="linenodiv"><pre><span></span><span class="normal"><a href="#unshackle.core.service.Service.on_track_downloaded--source--__codelineno-0-267">267</a></span> <div class="language-python highlight"><table class="highlighttable"><tr><td class="linenos"><div class="linenodiv"><pre><span></span><span class="normal"><a href="#unshackle.core.service.Service.on_track_downloaded--source--__codelineno-0-268">268</a></span>
<span class="normal"><a href="#unshackle.core.service.Service.on_track_downloaded--source--__codelineno-0-268">268</a></span>
<span class="normal"><a href="#unshackle.core.service.Service.on_track_downloaded--source--__codelineno-0-269">269</a></span> <span class="normal"><a href="#unshackle.core.service.Service.on_track_downloaded--source--__codelineno-0-269">269</a></span>
<span class="normal"><a href="#unshackle.core.service.Service.on_track_downloaded--source--__codelineno-0-270">270</a></span> <span class="normal"><a href="#unshackle.core.service.Service.on_track_downloaded--source--__codelineno-0-270">270</a></span>
<span class="normal"><a href="#unshackle.core.service.Service.on_track_downloaded--source--__codelineno-0-271">271</a></span> <span class="normal"><a href="#unshackle.core.service.Service.on_track_downloaded--source--__codelineno-0-271">271</a></span>
<span class="normal"><a href="#unshackle.core.service.Service.on_track_downloaded--source--__codelineno-0-272">272</a></span> <span class="normal"><a href="#unshackle.core.service.Service.on_track_downloaded--source--__codelineno-0-272">272</a></span>
<span class="normal"><a href="#unshackle.core.service.Service.on_track_downloaded--source--__codelineno-0-273">273</a></span> <span class="normal"><a href="#unshackle.core.service.Service.on_track_downloaded--source--__codelineno-0-273">273</a></span>
<span class="normal"><a href="#unshackle.core.service.Service.on_track_downloaded--source--__codelineno-0-274">274</a></span></pre></div></td><td class="code"><div><pre><span></span><code><span id="unshackle.core.service.Service.on_track_downloaded--source--__span-0-267"><a id="unshackle.core.service.Service.on_track_downloaded--source--__codelineno-0-267" name="unshackle.core.service.Service.on_track_downloaded--source--__codelineno-0-267"></a><span class="k">def</span><span class="w"> </span><span class="nf">on_track_downloaded</span><span class="p">(</span><span class="bp">self</span><span class="p">,</span> <span class="n">track</span><span class="p">:</span> <span class="n">AnyTrack</span><span class="p">)</span> <span class="o">-&gt;</span> <span class="kc">None</span><span class="p">:</span> <span class="normal"><a href="#unshackle.core.service.Service.on_track_downloaded--source--__codelineno-0-274">274</a></span>
</span><span id="unshackle.core.service.Service.on_track_downloaded--source--__span-0-268"><a id="unshackle.core.service.Service.on_track_downloaded--source--__codelineno-0-268" name="unshackle.core.service.Service.on_track_downloaded--source--__codelineno-0-268"></a><span class="w"> </span><span class="sd">"""</span> <span class="normal"><a href="#unshackle.core.service.Service.on_track_downloaded--source--__codelineno-0-275">275</a></span></pre></div></td><td class="code"><div><pre><span></span><code><span id="unshackle.core.service.Service.on_track_downloaded--source--__span-0-268"><a id="unshackle.core.service.Service.on_track_downloaded--source--__codelineno-0-268" name="unshackle.core.service.Service.on_track_downloaded--source--__codelineno-0-268"></a><span class="k">def</span><span class="w"> </span><span class="nf">on_track_downloaded</span><span class="p">(</span><span class="bp">self</span><span class="p">,</span> <span class="n">track</span><span class="p">:</span> <span class="n">AnyTrack</span><span class="p">)</span> <span class="o">-&gt;</span> <span class="kc">None</span><span class="p">:</span>
</span><span id="unshackle.core.service.Service.on_track_downloaded--source--__span-0-269"><a id="unshackle.core.service.Service.on_track_downloaded--source--__codelineno-0-269" name="unshackle.core.service.Service.on_track_downloaded--source--__codelineno-0-269"></a><span class="sd"> Called once when a Track has finished downloading, after unshackle decrypted its `drm`.</span> </span><span id="unshackle.core.service.Service.on_track_downloaded--source--__span-0-269"><a id="unshackle.core.service.Service.on_track_downloaded--source--__codelineno-0-269" name="unshackle.core.service.Service.on_track_downloaded--source--__codelineno-0-269"></a><span class="w"> </span><span class="sd">"""</span>
</span><span id="unshackle.core.service.Service.on_track_downloaded--source--__span-0-270"><a id="unshackle.core.service.Service.on_track_downloaded--source--__codelineno-0-270" name="unshackle.core.service.Service.on_track_downloaded--source--__codelineno-0-270"></a><span class="sd"> In a licence-only run the track has no file.</span> </span><span id="unshackle.core.service.Service.on_track_downloaded--source--__span-0-270"><a id="unshackle.core.service.Service.on_track_downloaded--source--__codelineno-0-270" name="unshackle.core.service.Service.on_track_downloaded--source--__codelineno-0-270"></a><span class="sd"> Called once when a Track has finished downloading, after unshackle decrypted its `drm`.</span>
</span><span id="unshackle.core.service.Service.on_track_downloaded--source--__span-0-271"><a id="unshackle.core.service.Service.on_track_downloaded--source--__codelineno-0-271" name="unshackle.core.service.Service.on_track_downloaded--source--__codelineno-0-271"></a> </span><span id="unshackle.core.service.Service.on_track_downloaded--source--__span-0-271"><a id="unshackle.core.service.Service.on_track_downloaded--source--__codelineno-0-271" name="unshackle.core.service.Service.on_track_downloaded--source--__codelineno-0-271"></a><span class="sd"> In a licence-only run the track has no file.</span>
</span><span id="unshackle.core.service.Service.on_track_downloaded--source--__span-0-272"><a id="unshackle.core.service.Service.on_track_downloaded--source--__codelineno-0-272" name="unshackle.core.service.Service.on_track_downloaded--source--__codelineno-0-272"></a><span class="sd"> Parameters:</span> </span><span id="unshackle.core.service.Service.on_track_downloaded--source--__span-0-272"><a id="unshackle.core.service.Service.on_track_downloaded--source--__codelineno-0-272" name="unshackle.core.service.Service.on_track_downloaded--source--__codelineno-0-272"></a>
</span><span id="unshackle.core.service.Service.on_track_downloaded--source--__span-0-273"><a id="unshackle.core.service.Service.on_track_downloaded--source--__codelineno-0-273" name="unshackle.core.service.Service.on_track_downloaded--source--__codelineno-0-273"></a><span class="sd"> track: The downloaded Track object.</span> </span><span id="unshackle.core.service.Service.on_track_downloaded--source--__span-0-273"><a id="unshackle.core.service.Service.on_track_downloaded--source--__codelineno-0-273" name="unshackle.core.service.Service.on_track_downloaded--source--__codelineno-0-273"></a><span class="sd"> Parameters:</span>
</span><span id="unshackle.core.service.Service.on_track_downloaded--source--__span-0-274"><a id="unshackle.core.service.Service.on_track_downloaded--source--__codelineno-0-274" name="unshackle.core.service.Service.on_track_downloaded--source--__codelineno-0-274"></a><span class="sd"> """</span> </span><span id="unshackle.core.service.Service.on_track_downloaded--source--__span-0-274"><a id="unshackle.core.service.Service.on_track_downloaded--source--__codelineno-0-274" name="unshackle.core.service.Service.on_track_downloaded--source--__codelineno-0-274"></a><span class="sd"> track: The downloaded Track object.</span>
</span><span id="unshackle.core.service.Service.on_track_downloaded--source--__span-0-275"><a id="unshackle.core.service.Service.on_track_downloaded--source--__codelineno-0-275" name="unshackle.core.service.Service.on_track_downloaded--source--__codelineno-0-275"></a><span class="sd"> """</span>
</span></code></pre></div></td></tr></table></div> </span></code></pre></div></td></tr></table></div>
</details> </details>
</div> </div>
@@ -5144,8 +5144,7 @@ for an HLS track that merged during the download (merge_segments).</p>
<details class="mkdocstrings-source"> <details class="mkdocstrings-source">
<summary>Source code in <code>unshackle/core/title_source.py</code></summary> <summary>Source code in <code>unshackle/core/title_source.py</code></summary>
<div class="language-python highlight"><table class="highlighttable"><tr><td class="linenos"><div class="linenodiv"><pre><span></span><span class="normal"><a href="#unshackle.core.service.Service.on_track_decrypted--source--__codelineno-0-276">276</a></span> <div class="language-python highlight"><table class="highlighttable"><tr><td class="linenos"><div class="linenodiv"><pre><span></span><span class="normal"><a href="#unshackle.core.service.Service.on_track_decrypted--source--__codelineno-0-277">277</a></span>
<span class="normal"><a href="#unshackle.core.service.Service.on_track_decrypted--source--__codelineno-0-277">277</a></span>
<span class="normal"><a href="#unshackle.core.service.Service.on_track_decrypted--source--__codelineno-0-278">278</a></span> <span class="normal"><a href="#unshackle.core.service.Service.on_track_decrypted--source--__codelineno-0-278">278</a></span>
<span class="normal"><a href="#unshackle.core.service.Service.on_track_decrypted--source--__codelineno-0-279">279</a></span> <span class="normal"><a href="#unshackle.core.service.Service.on_track_decrypted--source--__codelineno-0-279">279</a></span>
<span class="normal"><a href="#unshackle.core.service.Service.on_track_decrypted--source--__codelineno-0-280">280</a></span> <span class="normal"><a href="#unshackle.core.service.Service.on_track_decrypted--source--__codelineno-0-280">280</a></span>
@@ -5153,16 +5152,17 @@ for an HLS track that merged during the download (merge_segments).</p>
<span class="normal"><a href="#unshackle.core.service.Service.on_track_decrypted--source--__codelineno-0-282">282</a></span> <span class="normal"><a href="#unshackle.core.service.Service.on_track_decrypted--source--__codelineno-0-282">282</a></span>
<span class="normal"><a href="#unshackle.core.service.Service.on_track_decrypted--source--__codelineno-0-283">283</a></span> <span class="normal"><a href="#unshackle.core.service.Service.on_track_decrypted--source--__codelineno-0-283">283</a></span>
<span class="normal"><a href="#unshackle.core.service.Service.on_track_decrypted--source--__codelineno-0-284">284</a></span> <span class="normal"><a href="#unshackle.core.service.Service.on_track_decrypted--source--__codelineno-0-284">284</a></span>
<span class="normal"><a href="#unshackle.core.service.Service.on_track_decrypted--source--__codelineno-0-285">285</a></span></pre></div></td><td class="code"><div><pre><span></span><code><span id="unshackle.core.service.Service.on_track_decrypted--source--__span-0-276"><a id="unshackle.core.service.Service.on_track_decrypted--source--__codelineno-0-276" name="unshackle.core.service.Service.on_track_decrypted--source--__codelineno-0-276"></a><span class="k">def</span><span class="w"> </span><span class="nf">on_track_decrypted</span><span class="p">(</span><span class="bp">self</span><span class="p">,</span> <span class="n">track</span><span class="p">:</span> <span class="n">AnyTrack</span><span class="p">,</span> <span class="n">drm</span><span class="p">:</span> <span class="n">DRM_T</span><span class="p">,</span> <span class="n">segment</span><span class="p">:</span> <span class="n">m3u8</span><span class="o">.</span><span class="n">Segment</span> <span class="o">|</span> <span class="kc">None</span> <span class="o">=</span> <span class="kc">None</span><span class="p">)</span> <span class="o">-&gt;</span> <span class="kc">None</span><span class="p">:</span> <span class="normal"><a href="#unshackle.core.service.Service.on_track_decrypted--source--__codelineno-0-285">285</a></span>
</span><span id="unshackle.core.service.Service.on_track_decrypted--source--__span-0-277"><a id="unshackle.core.service.Service.on_track_decrypted--source--__codelineno-0-277" name="unshackle.core.service.Service.on_track_decrypted--source--__codelineno-0-277"></a><span class="w"> </span><span class="sd">"""</span> <span class="normal"><a href="#unshackle.core.service.Service.on_track_decrypted--source--__codelineno-0-286">286</a></span></pre></div></td><td class="code"><div><pre><span></span><code><span id="unshackle.core.service.Service.on_track_decrypted--source--__span-0-277"><a id="unshackle.core.service.Service.on_track_decrypted--source--__codelineno-0-277" name="unshackle.core.service.Service.on_track_decrypted--source--__codelineno-0-277"></a><span class="k">def</span><span class="w"> </span><span class="nf">on_track_decrypted</span><span class="p">(</span><span class="bp">self</span><span class="p">,</span> <span class="n">track</span><span class="p">:</span> <span class="n">AnyTrack</span><span class="p">,</span> <span class="n">drm</span><span class="p">:</span> <span class="n">DRM_T</span><span class="p">,</span> <span class="n">segment</span><span class="p">:</span> <span class="n">m3u8</span><span class="o">.</span><span class="n">Segment</span> <span class="o">|</span> <span class="kc">None</span> <span class="o">=</span> <span class="kc">None</span><span class="p">)</span> <span class="o">-&gt;</span> <span class="kc">None</span><span class="p">:</span>
</span><span id="unshackle.core.service.Service.on_track_decrypted--source--__span-0-278"><a id="unshackle.core.service.Service.on_track_decrypted--source--__codelineno-0-278" name="unshackle.core.service.Service.on_track_decrypted--source--__codelineno-0-278"></a><span class="sd"> Called when a Track has finished decrypting.</span> </span><span id="unshackle.core.service.Service.on_track_decrypted--source--__span-0-278"><a id="unshackle.core.service.Service.on_track_decrypted--source--__codelineno-0-278" name="unshackle.core.service.Service.on_track_decrypted--source--__codelineno-0-278"></a><span class="w"> </span><span class="sd">"""</span>
</span><span id="unshackle.core.service.Service.on_track_decrypted--source--__span-0-279"><a id="unshackle.core.service.Service.on_track_decrypted--source--__codelineno-0-279" name="unshackle.core.service.Service.on_track_decrypted--source--__codelineno-0-279"></a> </span><span id="unshackle.core.service.Service.on_track_decrypted--source--__span-0-279"><a id="unshackle.core.service.Service.on_track_decrypted--source--__codelineno-0-279" name="unshackle.core.service.Service.on_track_decrypted--source--__codelineno-0-279"></a><span class="sd"> Called when a Track has finished decrypting.</span>
</span><span id="unshackle.core.service.Service.on_track_decrypted--source--__span-0-280"><a id="unshackle.core.service.Service.on_track_decrypted--source--__codelineno-0-280" name="unshackle.core.service.Service.on_track_decrypted--source--__codelineno-0-280"></a><span class="sd"> Parameters:</span> </span><span id="unshackle.core.service.Service.on_track_decrypted--source--__span-0-280"><a id="unshackle.core.service.Service.on_track_decrypted--source--__codelineno-0-280" name="unshackle.core.service.Service.on_track_decrypted--source--__codelineno-0-280"></a>
</span><span id="unshackle.core.service.Service.on_track_decrypted--source--__span-0-281"><a id="unshackle.core.service.Service.on_track_decrypted--source--__codelineno-0-281" name="unshackle.core.service.Service.on_track_decrypted--source--__codelineno-0-281"></a><span class="sd"> track: The decrypted Track object.</span> </span><span id="unshackle.core.service.Service.on_track_decrypted--source--__span-0-281"><a id="unshackle.core.service.Service.on_track_decrypted--source--__codelineno-0-281" name="unshackle.core.service.Service.on_track_decrypted--source--__codelineno-0-281"></a><span class="sd"> Parameters:</span>
</span><span id="unshackle.core.service.Service.on_track_decrypted--source--__span-0-282"><a id="unshackle.core.service.Service.on_track_decrypted--source--__codelineno-0-282" name="unshackle.core.service.Service.on_track_decrypted--source--__codelineno-0-282"></a><span class="sd"> drm: The DRM object it decrypted with.</span> </span><span id="unshackle.core.service.Service.on_track_decrypted--source--__span-0-282"><a id="unshackle.core.service.Service.on_track_decrypted--source--__codelineno-0-282" name="unshackle.core.service.Service.on_track_decrypted--source--__codelineno-0-282"></a><span class="sd"> track: The decrypted Track object.</span>
</span><span id="unshackle.core.service.Service.on_track_decrypted--source--__span-0-283"><a id="unshackle.core.service.Service.on_track_decrypted--source--__codelineno-0-283" name="unshackle.core.service.Service.on_track_decrypted--source--__codelineno-0-283"></a><span class="sd"> segment: The decrypted HLS segment information. None for DASH and ISM tracks and</span> </span><span id="unshackle.core.service.Service.on_track_decrypted--source--__span-0-283"><a id="unshackle.core.service.Service.on_track_decrypted--source--__codelineno-0-283" name="unshackle.core.service.Service.on_track_decrypted--source--__codelineno-0-283"></a><span class="sd"> drm: The DRM object it decrypted with.</span>
</span><span id="unshackle.core.service.Service.on_track_decrypted--source--__span-0-284"><a id="unshackle.core.service.Service.on_track_decrypted--source--__codelineno-0-284" name="unshackle.core.service.Service.on_track_decrypted--source--__codelineno-0-284"></a><span class="sd"> for an HLS track that merged during the download (merge_segments).</span> </span><span id="unshackle.core.service.Service.on_track_decrypted--source--__span-0-284"><a id="unshackle.core.service.Service.on_track_decrypted--source--__codelineno-0-284" name="unshackle.core.service.Service.on_track_decrypted--source--__codelineno-0-284"></a><span class="sd"> segment: The decrypted HLS segment information. None for DASH and ISM tracks and</span>
</span><span id="unshackle.core.service.Service.on_track_decrypted--source--__span-0-285"><a id="unshackle.core.service.Service.on_track_decrypted--source--__codelineno-0-285" name="unshackle.core.service.Service.on_track_decrypted--source--__codelineno-0-285"></a><span class="sd"> """</span> </span><span id="unshackle.core.service.Service.on_track_decrypted--source--__span-0-285"><a id="unshackle.core.service.Service.on_track_decrypted--source--__codelineno-0-285" name="unshackle.core.service.Service.on_track_decrypted--source--__codelineno-0-285"></a><span class="sd"> for an HLS track that merged during the download (merge_segments).</span>
</span><span id="unshackle.core.service.Service.on_track_decrypted--source--__span-0-286"><a id="unshackle.core.service.Service.on_track_decrypted--source--__codelineno-0-286" name="unshackle.core.service.Service.on_track_decrypted--source--__codelineno-0-286"></a><span class="sd"> """</span>
</span></code></pre></div></td></tr></table></div> </span></code></pre></div></td></tr></table></div>
</details> </details>
</div> </div>
@@ -5218,19 +5218,19 @@ for an HLS track that merged during the download (merge_segments).</p>
<details class="mkdocstrings-source"> <details class="mkdocstrings-source">
<summary>Source code in <code>unshackle/core/title_source.py</code></summary> <summary>Source code in <code>unshackle/core/title_source.py</code></summary>
<div class="language-python highlight"><table class="highlighttable"><tr><td class="linenos"><div class="linenodiv"><pre><span></span><span class="normal"><a href="#unshackle.core.service.Service.on_track_repacked--source--__codelineno-0-287">287</a></span> <div class="language-python highlight"><table class="highlighttable"><tr><td class="linenos"><div class="linenodiv"><pre><span></span><span class="normal"><a href="#unshackle.core.service.Service.on_track_repacked--source--__codelineno-0-288">288</a></span>
<span class="normal"><a href="#unshackle.core.service.Service.on_track_repacked--source--__codelineno-0-288">288</a></span>
<span class="normal"><a href="#unshackle.core.service.Service.on_track_repacked--source--__codelineno-0-289">289</a></span> <span class="normal"><a href="#unshackle.core.service.Service.on_track_repacked--source--__codelineno-0-289">289</a></span>
<span class="normal"><a href="#unshackle.core.service.Service.on_track_repacked--source--__codelineno-0-290">290</a></span> <span class="normal"><a href="#unshackle.core.service.Service.on_track_repacked--source--__codelineno-0-290">290</a></span>
<span class="normal"><a href="#unshackle.core.service.Service.on_track_repacked--source--__codelineno-0-291">291</a></span> <span class="normal"><a href="#unshackle.core.service.Service.on_track_repacked--source--__codelineno-0-291">291</a></span>
<span class="normal"><a href="#unshackle.core.service.Service.on_track_repacked--source--__codelineno-0-292">292</a></span> <span class="normal"><a href="#unshackle.core.service.Service.on_track_repacked--source--__codelineno-0-292">292</a></span>
<span class="normal"><a href="#unshackle.core.service.Service.on_track_repacked--source--__codelineno-0-293">293</a></span></pre></div></td><td class="code"><div><pre><span></span><code><span id="unshackle.core.service.Service.on_track_repacked--source--__span-0-287"><a id="unshackle.core.service.Service.on_track_repacked--source--__codelineno-0-287" name="unshackle.core.service.Service.on_track_repacked--source--__codelineno-0-287"></a><span class="k">def</span><span class="w"> </span><span class="nf">on_track_repacked</span><span class="p">(</span><span class="bp">self</span><span class="p">,</span> <span class="n">track</span><span class="p">:</span> <span class="n">AnyTrack</span><span class="p">)</span> <span class="o">-&gt;</span> <span class="kc">None</span><span class="p">:</span> <span class="normal"><a href="#unshackle.core.service.Service.on_track_repacked--source--__codelineno-0-293">293</a></span>
</span><span id="unshackle.core.service.Service.on_track_repacked--source--__span-0-288"><a id="unshackle.core.service.Service.on_track_repacked--source--__codelineno-0-288" name="unshackle.core.service.Service.on_track_repacked--source--__codelineno-0-288"></a><span class="w"> </span><span class="sd">"""</span> <span class="normal"><a href="#unshackle.core.service.Service.on_track_repacked--source--__codelineno-0-294">294</a></span></pre></div></td><td class="code"><div><pre><span></span><code><span id="unshackle.core.service.Service.on_track_repacked--source--__span-0-288"><a id="unshackle.core.service.Service.on_track_repacked--source--__codelineno-0-288" name="unshackle.core.service.Service.on_track_repacked--source--__codelineno-0-288"></a><span class="k">def</span><span class="w"> </span><span class="nf">on_track_repacked</span><span class="p">(</span><span class="bp">self</span><span class="p">,</span> <span class="n">track</span><span class="p">:</span> <span class="n">AnyTrack</span><span class="p">)</span> <span class="o">-&gt;</span> <span class="kc">None</span><span class="p">:</span>
</span><span id="unshackle.core.service.Service.on_track_repacked--source--__span-0-289"><a id="unshackle.core.service.Service.on_track_repacked--source--__codelineno-0-289" name="unshackle.core.service.Service.on_track_repacked--source--__codelineno-0-289"></a><span class="sd"> Called when a Track has finished repacking.</span> </span><span id="unshackle.core.service.Service.on_track_repacked--source--__span-0-289"><a id="unshackle.core.service.Service.on_track_repacked--source--__codelineno-0-289" name="unshackle.core.service.Service.on_track_repacked--source--__codelineno-0-289"></a><span class="w"> </span><span class="sd">"""</span>
</span><span id="unshackle.core.service.Service.on_track_repacked--source--__span-0-290"><a id="unshackle.core.service.Service.on_track_repacked--source--__codelineno-0-290" name="unshackle.core.service.Service.on_track_repacked--source--__codelineno-0-290"></a> </span><span id="unshackle.core.service.Service.on_track_repacked--source--__span-0-290"><a id="unshackle.core.service.Service.on_track_repacked--source--__codelineno-0-290" name="unshackle.core.service.Service.on_track_repacked--source--__codelineno-0-290"></a><span class="sd"> Called when a Track has finished repacking.</span>
</span><span id="unshackle.core.service.Service.on_track_repacked--source--__span-0-291"><a id="unshackle.core.service.Service.on_track_repacked--source--__codelineno-0-291" name="unshackle.core.service.Service.on_track_repacked--source--__codelineno-0-291"></a><span class="sd"> Parameters:</span> </span><span id="unshackle.core.service.Service.on_track_repacked--source--__span-0-291"><a id="unshackle.core.service.Service.on_track_repacked--source--__codelineno-0-291" name="unshackle.core.service.Service.on_track_repacked--source--__codelineno-0-291"></a>
</span><span id="unshackle.core.service.Service.on_track_repacked--source--__span-0-292"><a id="unshackle.core.service.Service.on_track_repacked--source--__codelineno-0-292" name="unshackle.core.service.Service.on_track_repacked--source--__codelineno-0-292"></a><span class="sd"> track: The repacked Track object.</span> </span><span id="unshackle.core.service.Service.on_track_repacked--source--__span-0-292"><a id="unshackle.core.service.Service.on_track_repacked--source--__codelineno-0-292" name="unshackle.core.service.Service.on_track_repacked--source--__codelineno-0-292"></a><span class="sd"> Parameters:</span>
</span><span id="unshackle.core.service.Service.on_track_repacked--source--__span-0-293"><a id="unshackle.core.service.Service.on_track_repacked--source--__codelineno-0-293" name="unshackle.core.service.Service.on_track_repacked--source--__codelineno-0-293"></a><span class="sd"> """</span> </span><span id="unshackle.core.service.Service.on_track_repacked--source--__span-0-293"><a id="unshackle.core.service.Service.on_track_repacked--source--__codelineno-0-293" name="unshackle.core.service.Service.on_track_repacked--source--__codelineno-0-293"></a><span class="sd"> track: The repacked Track object.</span>
</span><span id="unshackle.core.service.Service.on_track_repacked--source--__span-0-294"><a id="unshackle.core.service.Service.on_track_repacked--source--__codelineno-0-294" name="unshackle.core.service.Service.on_track_repacked--source--__codelineno-0-294"></a><span class="sd"> """</span>
</span></code></pre></div></td></tr></table></div> </span></code></pre></div></td></tr></table></div>
</details> </details>
</div> </div>
@@ -5289,8 +5289,7 @@ MP4 with FFmpeg/mp4box.</p>
<details class="mkdocstrings-source"> <details class="mkdocstrings-source">
<summary>Source code in <code>unshackle/core/title_source.py</code></summary> <summary>Source code in <code>unshackle/core/title_source.py</code></summary>
<div class="language-python highlight"><table class="highlighttable"><tr><td class="linenos"><div class="linenodiv"><pre><span></span><span class="normal"><a href="#unshackle.core.service.Service.on_track_multiplex--source--__codelineno-0-295">295</a></span> <div class="language-python highlight"><table class="highlighttable"><tr><td class="linenos"><div class="linenodiv"><pre><span></span><span class="normal"><a href="#unshackle.core.service.Service.on_track_multiplex--source--__codelineno-0-296">296</a></span>
<span class="normal"><a href="#unshackle.core.service.Service.on_track_multiplex--source--__codelineno-0-296">296</a></span>
<span class="normal"><a href="#unshackle.core.service.Service.on_track_multiplex--source--__codelineno-0-297">297</a></span> <span class="normal"><a href="#unshackle.core.service.Service.on_track_multiplex--source--__codelineno-0-297">297</a></span>
<span class="normal"><a href="#unshackle.core.service.Service.on_track_multiplex--source--__codelineno-0-298">298</a></span> <span class="normal"><a href="#unshackle.core.service.Service.on_track_multiplex--source--__codelineno-0-298">298</a></span>
<span class="normal"><a href="#unshackle.core.service.Service.on_track_multiplex--source--__codelineno-0-299">299</a></span> <span class="normal"><a href="#unshackle.core.service.Service.on_track_multiplex--source--__codelineno-0-299">299</a></span>
@@ -5299,17 +5298,18 @@ MP4 with FFmpeg/mp4box.</p>
<span class="normal"><a href="#unshackle.core.service.Service.on_track_multiplex--source--__codelineno-0-302">302</a></span> <span class="normal"><a href="#unshackle.core.service.Service.on_track_multiplex--source--__codelineno-0-302">302</a></span>
<span class="normal"><a href="#unshackle.core.service.Service.on_track_multiplex--source--__codelineno-0-303">303</a></span> <span class="normal"><a href="#unshackle.core.service.Service.on_track_multiplex--source--__codelineno-0-303">303</a></span>
<span class="normal"><a href="#unshackle.core.service.Service.on_track_multiplex--source--__codelineno-0-304">304</a></span> <span class="normal"><a href="#unshackle.core.service.Service.on_track_multiplex--source--__codelineno-0-304">304</a></span>
<span class="normal"><a href="#unshackle.core.service.Service.on_track_multiplex--source--__codelineno-0-305">305</a></span></pre></div></td><td class="code"><div><pre><span></span><code><span id="unshackle.core.service.Service.on_track_multiplex--source--__span-0-295"><a id="unshackle.core.service.Service.on_track_multiplex--source--__codelineno-0-295" name="unshackle.core.service.Service.on_track_multiplex--source--__codelineno-0-295"></a><span class="k">def</span><span class="w"> </span><span class="nf">on_track_multiplex</span><span class="p">(</span><span class="bp">self</span><span class="p">,</span> <span class="n">track</span><span class="p">:</span> <span class="n">AnyTrack</span><span class="p">)</span> <span class="o">-&gt;</span> <span class="kc">None</span><span class="p">:</span> <span class="normal"><a href="#unshackle.core.service.Service.on_track_multiplex--source--__codelineno-0-305">305</a></span>
</span><span id="unshackle.core.service.Service.on_track_multiplex--source--__span-0-296"><a id="unshackle.core.service.Service.on_track_multiplex--source--__codelineno-0-296" name="unshackle.core.service.Service.on_track_multiplex--source--__codelineno-0-296"></a><span class="w"> </span><span class="sd">"""</span> <span class="normal"><a href="#unshackle.core.service.Service.on_track_multiplex--source--__codelineno-0-306">306</a></span></pre></div></td><td class="code"><div><pre><span></span><code><span id="unshackle.core.service.Service.on_track_multiplex--source--__span-0-296"><a id="unshackle.core.service.Service.on_track_multiplex--source--__codelineno-0-296" name="unshackle.core.service.Service.on_track_multiplex--source--__codelineno-0-296"></a><span class="k">def</span><span class="w"> </span><span class="nf">on_track_multiplex</span><span class="p">(</span><span class="bp">self</span><span class="p">,</span> <span class="n">track</span><span class="p">:</span> <span class="n">AnyTrack</span><span class="p">)</span> <span class="o">-&gt;</span> <span class="kc">None</span><span class="p">:</span>
</span><span id="unshackle.core.service.Service.on_track_multiplex--source--__span-0-297"><a id="unshackle.core.service.Service.on_track_multiplex--source--__codelineno-0-297" name="unshackle.core.service.Service.on_track_multiplex--source--__codelineno-0-297"></a><span class="sd"> Called immediately before unshackle multiplexes a Track into a Container.</span> </span><span id="unshackle.core.service.Service.on_track_multiplex--source--__span-0-297"><a id="unshackle.core.service.Service.on_track_multiplex--source--__codelineno-0-297" name="unshackle.core.service.Service.on_track_multiplex--source--__codelineno-0-297"></a><span class="w"> </span><span class="sd">"""</span>
</span><span id="unshackle.core.service.Service.on_track_multiplex--source--__span-0-298"><a id="unshackle.core.service.Service.on_track_multiplex--source--__codelineno-0-298" name="unshackle.core.service.Service.on_track_multiplex--source--__codelineno-0-298"></a> </span><span id="unshackle.core.service.Service.on_track_multiplex--source--__span-0-298"><a id="unshackle.core.service.Service.on_track_multiplex--source--__codelineno-0-298" name="unshackle.core.service.Service.on_track_multiplex--source--__codelineno-0-298"></a><span class="sd"> Called immediately before unshackle multiplexes a Track into a Container.</span>
</span><span id="unshackle.core.service.Service.on_track_multiplex--source--__span-0-299"><a id="unshackle.core.service.Service.on_track_multiplex--source--__codelineno-0-299" name="unshackle.core.service.Service.on_track_multiplex--source--__codelineno-0-299"></a><span class="sd"> Note: Right now unshackle multiplexes only MKV containers. In the future</span> </span><span id="unshackle.core.service.Service.on_track_multiplex--source--__span-0-299"><a id="unshackle.core.service.Service.on_track_multiplex--source--__codelineno-0-299" name="unshackle.core.service.Service.on_track_multiplex--source--__codelineno-0-299"></a>
</span><span id="unshackle.core.service.Service.on_track_multiplex--source--__span-0-300"><a id="unshackle.core.service.Service.on_track_multiplex--source--__codelineno-0-300" name="unshackle.core.service.Service.on_track_multiplex--source--__codelineno-0-300"></a><span class="sd"> unshackle can also call this when it multiplexes to other containers like</span> </span><span id="unshackle.core.service.Service.on_track_multiplex--source--__span-0-300"><a id="unshackle.core.service.Service.on_track_multiplex--source--__codelineno-0-300" name="unshackle.core.service.Service.on_track_multiplex--source--__codelineno-0-300"></a><span class="sd"> Note: Right now unshackle multiplexes only MKV containers. In the future</span>
</span><span id="unshackle.core.service.Service.on_track_multiplex--source--__span-0-301"><a id="unshackle.core.service.Service.on_track_multiplex--source--__codelineno-0-301" name="unshackle.core.service.Service.on_track_multiplex--source--__codelineno-0-301"></a><span class="sd"> MP4 with FFmpeg/mp4box.</span> </span><span id="unshackle.core.service.Service.on_track_multiplex--source--__span-0-301"><a id="unshackle.core.service.Service.on_track_multiplex--source--__codelineno-0-301" name="unshackle.core.service.Service.on_track_multiplex--source--__codelineno-0-301"></a><span class="sd"> unshackle can also call this when it multiplexes to other containers like</span>
</span><span id="unshackle.core.service.Service.on_track_multiplex--source--__span-0-302"><a id="unshackle.core.service.Service.on_track_multiplex--source--__codelineno-0-302" name="unshackle.core.service.Service.on_track_multiplex--source--__codelineno-0-302"></a> </span><span id="unshackle.core.service.Service.on_track_multiplex--source--__span-0-302"><a id="unshackle.core.service.Service.on_track_multiplex--source--__codelineno-0-302" name="unshackle.core.service.Service.on_track_multiplex--source--__codelineno-0-302"></a><span class="sd"> MP4 with FFmpeg/mp4box.</span>
</span><span id="unshackle.core.service.Service.on_track_multiplex--source--__span-0-303"><a id="unshackle.core.service.Service.on_track_multiplex--source--__codelineno-0-303" name="unshackle.core.service.Service.on_track_multiplex--source--__codelineno-0-303"></a><span class="sd"> Parameters:</span> </span><span id="unshackle.core.service.Service.on_track_multiplex--source--__span-0-303"><a id="unshackle.core.service.Service.on_track_multiplex--source--__codelineno-0-303" name="unshackle.core.service.Service.on_track_multiplex--source--__codelineno-0-303"></a>
</span><span id="unshackle.core.service.Service.on_track_multiplex--source--__span-0-304"><a id="unshackle.core.service.Service.on_track_multiplex--source--__codelineno-0-304" name="unshackle.core.service.Service.on_track_multiplex--source--__codelineno-0-304"></a><span class="sd"> track: The repacked Track object.</span> </span><span id="unshackle.core.service.Service.on_track_multiplex--source--__span-0-304"><a id="unshackle.core.service.Service.on_track_multiplex--source--__codelineno-0-304" name="unshackle.core.service.Service.on_track_multiplex--source--__codelineno-0-304"></a><span class="sd"> Parameters:</span>
</span><span id="unshackle.core.service.Service.on_track_multiplex--source--__span-0-305"><a id="unshackle.core.service.Service.on_track_multiplex--source--__codelineno-0-305" name="unshackle.core.service.Service.on_track_multiplex--source--__codelineno-0-305"></a><span class="sd"> """</span> </span><span id="unshackle.core.service.Service.on_track_multiplex--source--__span-0-305"><a id="unshackle.core.service.Service.on_track_multiplex--source--__codelineno-0-305" name="unshackle.core.service.Service.on_track_multiplex--source--__codelineno-0-305"></a><span class="sd"> track: The repacked Track object.</span>
</span><span id="unshackle.core.service.Service.on_track_multiplex--source--__span-0-306"><a id="unshackle.core.service.Service.on_track_multiplex--source--__codelineno-0-306" name="unshackle.core.service.Service.on_track_multiplex--source--__codelineno-0-306"></a><span class="sd"> """</span>
</span></code></pre></div></td></tr></table></div> </span></code></pre></div></td></tr></table></div>
</details> </details>
</div> </div>
+4
View File
@@ -2250,6 +2250,10 @@ ignored with a warning. Leave it unset for the default order:</p>
<code>imdb</code>.</p> <code>imdb</code>.</p>
<p><code>anilist</code> is last in the default order. It only answers for anime and returns nothing for <p><code>anilist</code> is last in the default order. It only answers for anime and returns nothing for
anything else, so it is harmless there. Move it earlier if you mostly download anime.</p> anything else, so it is harmless there. Move it earlier if you mostly download anime.</p>
<p>A service can name the metadata provider its catalogue resolves through. unshackle then tries
that provider first, also ahead of an order that you set. This only changes the order: a
metadata provider that <code>metadata_providers</code> leaves out stays out. For an anime title the
service's metadata provider comes first and <code>anilist</code> second.</p>
<p>The order applies to a title search and to a direct lookup of an ID you give with <p>The order applies to a title search and to a direct lookup of an ID you give with
<code>--tmdb</code>, <code>--imdb</code>, <code>--tvdb</code>, or <code>--anilist</code>. A supplied ID always goes to the providers <code>--tmdb</code>, <code>--imdb</code>, <code>--tvdb</code>, or <code>--anilist</code>. A supplied ID always goes to the providers
that read that kind of ID, and it never falls back to a title search.</p> that read that kind of ID, and it never falls back to a title search.</p>
File diff suppressed because one or more lines are too long