mirror of
https://github.com/unshackle-dl/unshackle.git
synced 2026-11-30 21:15:18 +00:00
Deployed 70ace412 with MkDocs version: 1.6.1
This commit is contained in:
@@ -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>
|
||||
|
||||
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user