Deployed 70ace412 with MkDocs version: 1.6.1

This commit is contained in:
2026-11-30 19:49:29 +00:00
parent ee8a1c7e77
commit d68bac8c8a
7 changed files with 69 additions and 18 deletions
+7 -10
View File
@@ -3563,14 +3563,11 @@ server, uses the server's own cache and returns no <code>cache</code> field.</p>
</div>
</div>
</div>
<p>Each serialized title carries <code>type</code> (<code>"episode"</code>, <code>"movie"</code>, or <code>"other"</code>), <code>name</code>, <code>id</code>, <code>language</code>, <code>description</code>, <code>date</code>, and <code>cover_url</code>. Episodes and movies add <code>year</code>. Episodes also add <code>series_title</code>, <code>season</code>, and <code>number</code>.</p>
<div class="admonition warning">
<p class="admonition-title">A song serializes as <code>"other"</code></p>
<p>A song has no <code>type</code> of its own. The server sends it as <code>"other"</code>, and the response
carries none of its music fields: no artist, no album, no track or disc number, and no
<code>year</code>. <code>name</code> holds the song name. To read the disc and track numbers of a release,
operate the CLI with <code>--list-titles</code>. You can still select songs over the API,
through the <code>wanted</code> parameter.</p>
<p>Each serialized title carries <code>type</code> (<code>"episode"</code>, <code>"movie"</code>, <code>"song"</code>, or <code>"other"</code>), <code>name</code>, <code>id</code>, <code>language</code>, <code>description</code>, <code>date</code>, and <code>cover_url</code>. Episodes and movies add <code>year</code>. Episodes also add <code>series_title</code>, <code>season</code>, and <code>number</code>.</p>
<div class="admonition info">
<p class="admonition-title">The number that <code>wanted</code> takes for a song</p>
<p>A song adds <code>year</code> and its music fields, such as <code>artist</code>, <code>album</code>, <code>disc</code>, <code>track</code> and
<code>position</code>. <code>wanted</code> takes <code>position</code> when it is not <code>null</code>, else <code>disc</code> and <code>track</code> as in <code>"2x3"</code>.</p>
</div>
<p>These keys are sent only when the title carries them, so a title without them serializes exactly as before:</p>
<table>
@@ -3719,7 +3716,7 @@ ignore it safely. See <a href="../../creating-a-service/#split-episodes">Split e
<td><code>wanted</code></td>
<td>string / string[]</td>
<td>no</td>
<td>Episode/season range (e.g. <code>"S01E01-S01E03"</code>), or a song selector (e.g. <code>"1-5"</code>, <code>"1,3,7"</code>, or <code>"2x3"</code> for disc 2 track 3). A list of selectors is accepted too.</td>
<td>Episode/season range (e.g. <code>"S01E01-S01E03"</code>), or a song by its number in the track list (e.g. <code>"1-5"</code>, <code>"1,3,7"</code>, or <code>"2x3"</code> for disc 2 track 3). A list of selectors is accepted too.</td>
</tr>
<tr>
<td><code>season</code></td>
@@ -3956,7 +3953,7 @@ ignore it safely. See <a href="../../creating-a-service/#split-episodes">Split e
<td><code>wanted</code></td>
<td>string / string[]</td>
<td><code>[]</code></td>
<td>Episode/season selectors, as a list or as one comma-separated string. Accepts the part form, <code>"S01E01.2"</code>, and the air-date form, <code>"2026-08-11"</code> or <code>"2026-08-01:2026-08-31"</code>. For a music release, a selector is a track number, <code>"1-5"</code> or <code>"1,3,7"</code>, or <code>"{disc}x{track}"</code> such as <code>"2x3"</code>.</td>
<td>Episode/season selectors, as a list or as one comma-separated string. Accepts the part form, <code>"S01E01.2"</code>, and the air-date form, <code>"2026-08-11"</code> or <code>"2026-08-01:2026-08-31"</code>. For a music release, a selector is a number of the track list, <code>"1-5"</code> or <code>"1,3,7"</code>, or <code>"{disc}x{track}"</code> such as <code>"2x3"</code>.</td>
</tr>
<tr>
<td><code>latest_episode</code></td>
+5
View File
@@ -2939,6 +2939,11 @@ plain text: the tagger embeds it as is. With <code>synced_lyrics</code> (timed L
<code>lyrics_suffix</code> (<code>".lrc"</code>, <code>".ttml"</code>), unshackle also saves the timed lyrics beside the
final audio file under that suffix.
You can set these fields in <code>get_tracks()</code> too, and a remote client gets them back.</p>
<p>For a playlist whose songs keep the tags of their own album, give <code>position</code> (a positive integer,
from 1) to every song. The track list, the download order and <code>-w</code> then use that number. The
tags, the file name and the folder keep <code>track</code>, <code>disc</code> and <code>album</code>. Set it in <code>get_titles()</code>,
because a remote client does not read it again after the listing. Such a song also needs an <code>id</code> that
stays the same in each listing: <code>position</code> does not identify it.</p>
<p>The tagger also falls back to <code>Song.data</code> for fields the constructor did not get, such
as the composer or a full release date. It reads the top level of that dict and a
nested <code>metadata</code> sub-dict, with the nested keys winning, so either shape works. The keys
+1 -1
View File
@@ -3255,7 +3255,7 @@ configuration file.</p>
<tbody>
<tr>
<td><code>-w</code>, <code>--wanted</code></td>
<td>Wanted episodes, e.g. <code>S01-S05,S07</code>, <code>S01E01-S02E03</code>. Supports exclusions with a leading <code>-</code> (e.g. <code>-S03</code>). For a <a href="../downloading/#split-episodes">split episode</a>, <code>.N</code> picks one part (<code>S01E01.2</code>), a range must stay inside the episode (<code>S01E01.1-S01E01.3</code>), and <code>S01E01</code> on its own takes every part. For a <a href="../downloading/#daily-and-date-based-content">dated episode</a>, a token can also be an ISO air date (<code>2026-08-11</code>) or a date range with a colon (<code>2026-08-01:2026-08-31</code>). For a <a href="../downloading/#music-tracks">music release</a>, a token is a track number (<code>1-5</code>, <code>1,3,7</code>), or <code>{disc}x{track}</code> (<code>2x3</code>) when the release has more than one disc.</td>
<td>Wanted episodes, e.g. <code>S01-S05,S07</code>, <code>S01E01-S02E03</code>. Supports exclusions with a leading <code>-</code> (e.g. <code>-S03</code>). For a <a href="../downloading/#split-episodes">split episode</a>, <code>.N</code> picks one part (<code>S01E01.2</code>), a range must stay inside the episode (<code>S01E01.1-S01E01.3</code>), and <code>S01E01</code> on its own takes every part. For a <a href="../downloading/#daily-and-date-based-content">dated episode</a>, a token can also be an ISO air date (<code>2026-08-11</code>) or a date range with a colon (<code>2026-08-01:2026-08-31</code>). For a <a href="../downloading/#music-tracks">music release</a>, a token is a number of the track list (<code>1-5</code>, <code>1,3,7</code>), or <code>{disc}x{track}</code> (<code>2x3</code>) when the release has more than one disc.</td>
</tr>
<tr>
<td><code>--select-titles</code></td>
+5 -4
View File
@@ -3948,7 +3948,9 @@ with <code>-</code> to exclude it. For a music release, the same option takes tr
<h3 id="music-tracks">Music tracks<a class="headerlink" href="#music-tracks" title="Permanent link">&para;</a></h3>
<p><code>-w</code> selects the tracks of an album, EP, single, or playlist. Give a track by its number.
A release with more than one disc uses the <code>{disc}x{track}</code> form. A number on its own is a
track on disc 1, which is the number the track list shows for a single-disc release.</p>
track on disc 1, which is the number the track list shows for a single-disc release. The
songs of a playlist can have a position in the playlist. The track list then shows that position,
and <code>-w</code> takes it. The tags and the file name keep the album track number.</p>
<div class="tabbed-set tabbed-alternate" data-tabs="2:3"><input checked="checked" id="__tabbed_2_1" name="__tabbed_2" type="radio" /><input id="__tabbed_2_2" name="__tabbed_2" type="radio" /><input id="__tabbed_2_3" name="__tabbed_2" type="radio" /><div class="tabbed-labels"><label for="__tabbed_2_1">Tracks</label><label for="__tabbed_2_2">More than one disc</label><label for="__tabbed_2_3">Exclusions</label></div>
<div class="tabbed-content">
<div class="tabbed-block">
@@ -3982,8 +3984,7 @@ track on disc 1, which is the number the track list shows for a single-disc rele
</div>
<div class="admonition tip">
<p class="admonition-title">Read the track list first</p>
<p><code>--list-titles</code> prints the release with its disc and track numbers, so you can see
which numbers to give <code>-w</code>.</p>
<p><code>--list-titles</code> prints the release with the numbers that <code>-w</code> takes.</p>
</div>
<h3 id="daily-and-date-based-content">Daily and date-based content<a class="headerlink" href="#daily-and-date-based-content" title="Permanent link">&para;</a></h3>
<p>Talk shows, news and sports have no official episode numbering, so unshackle names them
@@ -4743,7 +4744,7 @@ authoritative list.</p>
<tr>
<td><code>--wanted</code></td>
<td><code>-w</code></td>
<td>Episode/season range, an air date, or a track number for a music release (<code>1-5</code>, <code>2x3</code>).</td>
<td>Episode/season range, an air date, or a number of the track list for a music release (<code>1-5</code>, <code>2x3</code>).</td>
</tr>
<tr>
<td><code>--daily</code></td>
BIN
View File
Binary file not shown.
+50 -2
View File
@@ -2061,6 +2061,17 @@
<nav class="md-nav" aria-label=" Song">
<ul class="md-nav__list">
<li class="md-nav__item">
<a href="#unshackle.core.titles.Song.listing_number" class="md-nav__link">
<span class="md-ellipsis">
<code class="doc-symbol doc-symbol-toc doc-symbol-attribute"></code>&nbsp;listing_number
</span>
</a>
</li>
<li class="md-nav__item">
<a href="#unshackle.core.titles.Song.matches_wanted" class="md-nav__link">
<span class="md-ellipsis">
@@ -2336,6 +2347,17 @@
<nav class="md-nav" aria-label=" Song">
<ul class="md-nav__list">
<li class="md-nav__item">
<a href="#unshackle.core.titles.Song.listing_number" class="md-nav__link">
<span class="md-ellipsis">
<code class="doc-symbol doc-symbol-toc doc-symbol-attribute"></code>&nbsp;listing_number
</span>
</a>
</li>
<li class="md-nav__item">
<a href="#unshackle.core.titles.Song.matches_wanted" class="md-nav__link">
<span class="md-ellipsis">
@@ -2864,7 +2886,8 @@ takes every part. A dated episode also answers to its ISO air date.
</span><span id="__span-0-23"><a id="__codelineno-0-23" name="__codelineno-0-23" href="#__codelineno-0-23"></a> <span class="n">artwork_url</span><span class="o">=</span><span class="kc">None</span><span class="p">,</span>
</span><span id="__span-0-24"><a id="__codelineno-0-24" name="__codelineno-0-24" href="#__codelineno-0-24"></a> <span class="n">synced_lyrics</span><span class="o">=</span><span class="kc">None</span><span class="p">,</span>
</span><span id="__span-0-25"><a id="__codelineno-0-25" name="__codelineno-0-25" href="#__codelineno-0-25"></a> <span class="n">lyrics_suffix</span><span class="o">=</span><span class="kc">None</span><span class="p">,</span>
</span><span id="__span-0-26"><a id="__codelineno-0-26" name="__codelineno-0-26" href="#__codelineno-0-26"></a><span class="p">)</span>
</span><span id="__span-0-26"><a id="__codelineno-0-26" name="__codelineno-0-26" href="#__codelineno-0-26"></a> <span class="n">position</span><span class="o">=</span><span class="kc">None</span><span class="p">,</span>
</span><span id="__span-0-27"><a id="__codelineno-0-27" name="__codelineno-0-27" href="#__codelineno-0-27"></a><span class="p">)</span>
</span></code></pre></div>
<div class="doc doc-contents ">
@@ -2874,6 +2897,7 @@ takes every part. A dated episode also answers to its ISO air date.
<p><code>lyrics</code> is the plain text the tagger embeds.</p>
<p><code>position</code> is the number in a playlist: it replaces <code>track</code> in the listing and in <code>-w</code>, not in tags or names.</p>
<p><code>synced_lyrics</code> (timed LRC or TTML) is saved beside the audio file with <code>lyrics_suffix</code> (".lrc", ".ttml").</p>
@@ -2894,6 +2918,30 @@ takes every part. A dated episode also answers to its ISO air date.
<div class="doc doc-object doc-attribute">
<h3 id="unshackle.core.titles.Song.listing_number" class="doc doc-heading">
<code class="doc-symbol doc-symbol-heading doc-symbol-attribute"></code> <span class="doc doc-object-name doc-attribute-name">listing_number</span>
<span class="doc doc-labels">
<small class="doc doc-label doc-label-property"><code>property</code></small>
</span>
<a href="#unshackle.core.titles.Song.listing_number" class="headerlink" title="Permanent link">&para;</a></h3>
<div class="language-python doc-signature highlight"><pre><span></span><code><span id="__span-0-1"><a id="__codelineno-0-1" name="__codelineno-0-1" href="#__codelineno-0-1"></a><span class="n">listing_number</span>
</span></code></pre></div>
<div class="doc doc-contents ">
<p>The disc and track that the listing shows and <code>-w</code> selects; a position is always on disc 1.</p>
</div>
</div>
@@ -2913,7 +2961,7 @@ takes every part. A dated episode also answers to its ISO air date.
<p>Whether a parsed <code>-w</code> key set selects this song.</p>
<p>A song shares the episode key space, its disc reading as the season and its track
as the episode, so <code>-w 1-5</code> takes tracks 1 to 5 and <code>-w 2x3</code> takes disc 2
track 3. A song has no parts and no air date, so it answers to its disc-and-track key only.</p>
track 3. A song with a position answers to that number instead of its disc and track.</p>
</div>
File diff suppressed because one or more lines are too long