mirror of
https://github.com/unshackle-dl/unshackle.git
synced 2026-11-24 09:55:12 +00:00
Deployed af17bad with MkDocs version: 1.6.1
This commit is contained in:
@@ -570,6 +570,45 @@
|
||||
</label>
|
||||
<ul class="md-nav__list" data-md-component="toc" data-md-scrollfix>
|
||||
|
||||
<li class="md-nav__item">
|
||||
<a href="#install-from-a-git-clone-recommended" class="md-nav__link">
|
||||
<span class="md-ellipsis">
|
||||
|
||||
Install from a git clone (recommended)
|
||||
|
||||
</span>
|
||||
</a>
|
||||
|
||||
</li>
|
||||
|
||||
<li class="md-nav__item">
|
||||
<a href="#what-unshackle-setup-does" class="md-nav__link">
|
||||
<span class="md-ellipsis">
|
||||
|
||||
What unshackle setup does
|
||||
|
||||
</span>
|
||||
</a>
|
||||
|
||||
<nav class="md-nav" aria-label="What unshackle setup does">
|
||||
<ul class="md-nav__list">
|
||||
|
||||
<li class="md-nav__item">
|
||||
<a href="#where-setup-puts-files" class="md-nav__link">
|
||||
<span class="md-ellipsis">
|
||||
|
||||
Where setup puts files
|
||||
|
||||
</span>
|
||||
</a>
|
||||
|
||||
</li>
|
||||
|
||||
</ul>
|
||||
</nav>
|
||||
|
||||
</li>
|
||||
|
||||
<li class="md-nav__item">
|
||||
<a href="#requirements-at-a-glance" class="md-nav__link">
|
||||
<span class="md-ellipsis">
|
||||
@@ -593,15 +632,15 @@
|
||||
</li>
|
||||
|
||||
<li class="md-nav__item">
|
||||
<a href="#installing-with-uv" class="md-nav__link">
|
||||
<a href="#installing-by-hand" class="md-nav__link">
|
||||
<span class="md-ellipsis">
|
||||
|
||||
Installing with uv
|
||||
Installing by hand
|
||||
|
||||
</span>
|
||||
</a>
|
||||
|
||||
<nav class="md-nav" aria-label="Installing with uv">
|
||||
<nav class="md-nav" aria-label="Installing by hand">
|
||||
<ul class="md-nav__list">
|
||||
|
||||
<li class="md-nav__item">
|
||||
@@ -613,6 +652,17 @@
|
||||
</span>
|
||||
</a>
|
||||
|
||||
</li>
|
||||
|
||||
<li class="md-nav__item">
|
||||
<a href="#advanced-install-as-a-uv-tool" class="md-nav__link">
|
||||
<span class="md-ellipsis">
|
||||
|
||||
Advanced: install as a uv tool
|
||||
|
||||
</span>
|
||||
</a>
|
||||
|
||||
</li>
|
||||
|
||||
</ul>
|
||||
@@ -671,17 +721,6 @@
|
||||
<nav class="md-nav" aria-label="Verifying your installation">
|
||||
<ul class="md-nav__list">
|
||||
|
||||
<li class="md-nav__item">
|
||||
<a href="#make-sure-the-command-is-available" class="md-nav__link">
|
||||
<span class="md-ellipsis">
|
||||
|
||||
Make sure the command is available
|
||||
|
||||
</span>
|
||||
</a>
|
||||
|
||||
</li>
|
||||
|
||||
<li class="md-nav__item">
|
||||
<a href="#examine-the-external-dependencies" class="md-nav__link">
|
||||
<span class="md-ellipsis">
|
||||
@@ -2112,6 +2151,45 @@
|
||||
</label>
|
||||
<ul class="md-nav__list" data-md-component="toc" data-md-scrollfix>
|
||||
|
||||
<li class="md-nav__item">
|
||||
<a href="#install-from-a-git-clone-recommended" class="md-nav__link">
|
||||
<span class="md-ellipsis">
|
||||
|
||||
Install from a git clone (recommended)
|
||||
|
||||
</span>
|
||||
</a>
|
||||
|
||||
</li>
|
||||
|
||||
<li class="md-nav__item">
|
||||
<a href="#what-unshackle-setup-does" class="md-nav__link">
|
||||
<span class="md-ellipsis">
|
||||
|
||||
What unshackle setup does
|
||||
|
||||
</span>
|
||||
</a>
|
||||
|
||||
<nav class="md-nav" aria-label="What unshackle setup does">
|
||||
<ul class="md-nav__list">
|
||||
|
||||
<li class="md-nav__item">
|
||||
<a href="#where-setup-puts-files" class="md-nav__link">
|
||||
<span class="md-ellipsis">
|
||||
|
||||
Where setup puts files
|
||||
|
||||
</span>
|
||||
</a>
|
||||
|
||||
</li>
|
||||
|
||||
</ul>
|
||||
</nav>
|
||||
|
||||
</li>
|
||||
|
||||
<li class="md-nav__item">
|
||||
<a href="#requirements-at-a-glance" class="md-nav__link">
|
||||
<span class="md-ellipsis">
|
||||
@@ -2135,15 +2213,15 @@
|
||||
</li>
|
||||
|
||||
<li class="md-nav__item">
|
||||
<a href="#installing-with-uv" class="md-nav__link">
|
||||
<a href="#installing-by-hand" class="md-nav__link">
|
||||
<span class="md-ellipsis">
|
||||
|
||||
Installing with uv
|
||||
Installing by hand
|
||||
|
||||
</span>
|
||||
</a>
|
||||
|
||||
<nav class="md-nav" aria-label="Installing with uv">
|
||||
<nav class="md-nav" aria-label="Installing by hand">
|
||||
<ul class="md-nav__list">
|
||||
|
||||
<li class="md-nav__item">
|
||||
@@ -2155,6 +2233,17 @@
|
||||
</span>
|
||||
</a>
|
||||
|
||||
</li>
|
||||
|
||||
<li class="md-nav__item">
|
||||
<a href="#advanced-install-as-a-uv-tool" class="md-nav__link">
|
||||
<span class="md-ellipsis">
|
||||
|
||||
Advanced: install as a uv tool
|
||||
|
||||
</span>
|
||||
</a>
|
||||
|
||||
</li>
|
||||
|
||||
</ul>
|
||||
@@ -2213,17 +2302,6 @@
|
||||
<nav class="md-nav" aria-label="Verifying your installation">
|
||||
<ul class="md-nav__list">
|
||||
|
||||
<li class="md-nav__item">
|
||||
<a href="#make-sure-the-command-is-available" class="md-nav__link">
|
||||
<span class="md-ellipsis">
|
||||
|
||||
Make sure the command is available
|
||||
|
||||
</span>
|
||||
</a>
|
||||
|
||||
</li>
|
||||
|
||||
<li class="md-nav__item">
|
||||
<a href="#examine-the-external-dependencies" class="md-nav__link">
|
||||
<span class="md-ellipsis">
|
||||
@@ -2285,15 +2363,151 @@
|
||||
<h1 id="installation">Installation<a class="headerlink" href="#installation" title="Permanent link">¶</a></h1>
|
||||
<p>unshackle is a modular archival tool for movies, TV, and music. It ships as a
|
||||
single Python package named <code>unshackle</code> that installs one console command, also
|
||||
called <code>unshackle</code>. This page covers installing that command, the Python
|
||||
version it needs, and the external command-line tools it expects to find on your
|
||||
<code>PATH</code>.</p>
|
||||
called <code>unshackle</code>. This page covers the install script, the <code>unshackle setup</code>
|
||||
command, the Python version unshackle needs, and the external command-line tools
|
||||
it expects to find.</p>
|
||||
<div class="admonition note">
|
||||
<p class="admonition-title">What you get</p>
|
||||
<p>Installing the package registers a single entry point, the <code>unshackle</code>
|
||||
command. It covers everything: downloading, key-vault management, device
|
||||
provisioning, the REST server, and the helper utilities.</p>
|
||||
</div>
|
||||
<h2 id="install-from-a-git-clone-recommended">Install from a git clone (recommended)<a class="headerlink" href="#install-from-a-git-clone-recommended" title="Permanent link">¶</a></h2>
|
||||
<p>A git clone with the install script is the recommended way to install unshackle.
|
||||
A clone keeps unshackle, its external tools, its config, its data folders, and
|
||||
your services together in one folder that you can see.</p>
|
||||
<p>The repository has an install script for Linux (<code>install.sh</code>) and for Windows
|
||||
(<code>install.bat</code>). The script installs <code>uv</code> if it is not found, installs unshackle,
|
||||
and then runs <a href="#what-unshackle-setup-does"><code>unshackle setup</code></a>.</p>
|
||||
<div class="tabbed-set tabbed-alternate" data-tabs="1:2"><input checked="checked" id="__tabbed_1_1" name="__tabbed_1" type="radio" /><input id="__tabbed_1_2" name="__tabbed_1" type="radio" /><div class="tabbed-labels"><label for="__tabbed_1_1">Linux</label><label for="__tabbed_1_2">Windows</label></div>
|
||||
<div class="tabbed-content">
|
||||
<div class="tabbed-block">
|
||||
<div class="language-shell highlight"><pre><span></span><code><span id="__span-0-1"><a id="__codelineno-0-1" name="__codelineno-0-1" href="#__codelineno-0-1"></a>git<span class="w"> </span>clone<span class="w"> </span>https://github.com/unshackle-dl/unshackle.git
|
||||
</span><span id="__span-0-2"><a id="__codelineno-0-2" name="__codelineno-0-2" href="#__codelineno-0-2"></a><span class="nb">cd</span><span class="w"> </span>unshackle
|
||||
</span><span id="__span-0-3"><a id="__codelineno-0-3" name="__codelineno-0-3" href="#__codelineno-0-3"></a>sh<span class="w"> </span>install.sh
|
||||
</span></code></pre></div>
|
||||
</div>
|
||||
<div class="tabbed-block">
|
||||
<div class="language-bat highlight"><pre><span></span><code><span id="__span-1-1"><a id="__codelineno-1-1" name="__codelineno-1-1" href="#__codelineno-1-1"></a>git clone https://github.com/unshackle-dl/unshackle.git
|
||||
</span><span id="__span-1-2"><a id="__codelineno-1-2" name="__codelineno-1-2" href="#__codelineno-1-2"></a><span class="k">cd</span> unshackle
|
||||
</span><span id="__span-1-3"><a id="__codelineno-1-3" name="__codelineno-1-3" href="#__codelineno-1-3"></a>.\install.bat
|
||||
</span></code></pre></div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<p>In a clone, the script runs <code>uv sync</code> and then <code>uv run unshackle setup</code>. The last
|
||||
lines of setup tell you to check your tools with <code>uv run unshackle env check</code>.
|
||||
Run unshackle from the clone with <code>uv run unshackle ...</code>.</p>
|
||||
<p>To install without a clone, see
|
||||
<a href="#advanced-install-as-a-uv-tool">Advanced: install as a uv tool</a>.</p>
|
||||
<h2 id="what-unshackle-setup-does">What <code>unshackle setup</code> does<a class="headerlink" href="#what-unshackle-setup-does" title="Permanent link">¶</a></h2>
|
||||
<p><code>unshackle setup</code> prepares a new installation. The install script runs it for
|
||||
you, and you can run it yourself at any time:</p>
|
||||
<div class="tabbed-set tabbed-alternate" data-tabs="2:2"><input checked="checked" id="__tabbed_2_1" name="__tabbed_2" type="radio" /><input id="__tabbed_2_2" name="__tabbed_2" type="radio" /><div class="tabbed-labels"><label for="__tabbed_2_1">From a clone</label><label for="__tabbed_2_2">Installed as a uv tool</label></div>
|
||||
<div class="tabbed-content">
|
||||
<div class="tabbed-block">
|
||||
<div class="language-shell highlight"><pre><span></span><code><span id="__span-2-1"><a id="__codelineno-2-1" name="__codelineno-2-1" href="#__codelineno-2-1"></a>uv<span class="w"> </span>run<span class="w"> </span>unshackle<span class="w"> </span>setup
|
||||
</span></code></pre></div>
|
||||
</div>
|
||||
<div class="tabbed-block">
|
||||
<div class="language-shell highlight"><pre><span></span><code><span id="__span-3-1"><a id="__codelineno-3-1" name="__codelineno-3-1" href="#__codelineno-3-1"></a>unshackle<span class="w"> </span>setup
|
||||
</span></code></pre></div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<p>The command does these steps:</p>
|
||||
<ol>
|
||||
<li>It shows which <a href="#external-tools-on-your-path">external tools</a> are missing,
|
||||
and where to get the ones that it cannot download.</li>
|
||||
<li>It asks once for each tool or group of tools to download. The required
|
||||
tools come first. shaka-packager and <code>mp4decrypt</code> share one DRM question, so
|
||||
<code>mp4decrypt</code> comes with the required tools, but <code>env check</code> still shows it
|
||||
as optional. The HDR and subtitle groups are optional. The prompts show the
|
||||
version that setup downloads. On Windows, the subtitle question also shows
|
||||
the download size of CCExtractor, which is much larger than the other tools.
|
||||
It puts the downloads in a <code>binaries</code> folder
|
||||
(see <a href="#where-setup-puts-files">Where setup puts files</a>).</li>
|
||||
<li>If no <code>unshackle.yaml</code> exists, it asks for a downloads folder and writes a
|
||||
minimal config file.</li>
|
||||
<li>It makes the data folders for cookies, WVDs, PRDs, and services.</li>
|
||||
<li>It asks for <code>.wvd</code> and <code>.prd</code> devices to import. You can give a file or a
|
||||
folder of devices, and it asks again until you give an empty answer. It
|
||||
validates each file, copies it into the WVDs or PRDs folder, and prints one
|
||||
line for each file. If setup wrote a new config in this run, it sets
|
||||
<code>cdm.default</code> to the imported device. If you imported more than one, it
|
||||
asks which one is the default.</li>
|
||||
<li>It prints a summary of the tools that it found. If it wrote a config, it
|
||||
gives the path of that config and a link to the
|
||||
<a href="../../reference/configuration/">configuration reference</a>. Then it
|
||||
tells you to run <code>env check</code> next.</li>
|
||||
</ol>
|
||||
<p>You can run the command again. It skips the tools that it finds and never
|
||||
overwrites an existing config.</p>
|
||||
<div class="admonition note">
|
||||
<p class="admonition-title">Not every tool has a download</p>
|
||||
<p>Setup downloads tools only on Linux and Windows, and only when the tool
|
||||
has a portable build for your system. For other tools, setup prints where
|
||||
to get them, for example a package manager. On macOS, setup downloads
|
||||
nothing and prints these links for each missing tool.</p>
|
||||
<p>On Linux, setup cannot download MKVToolNix, which is a required tool.
|
||||
Install the <code>mkvtoolnix</code> package with your package manager (for example
|
||||
<code>apt</code>, <code>dnf</code>, or <code>pacman</code>).</p>
|
||||
</div>
|
||||
<div class="admonition warning">
|
||||
<p class="admonition-title">CCExtractor on Linux needs FUSE</p>
|
||||
<p>On Linux, setup downloads CCExtractor as an AppImage, which needs FUSE to
|
||||
run. Setup runs the AppImage once after the download. If it does not run, setup removes it and prints the
|
||||
manual install link. Install FUSE with your package manager and run setup
|
||||
again, or install the <code>ccextractor</code> package instead.</p>
|
||||
</div>
|
||||
<h3 id="where-setup-puts-files">Where setup puts files<a class="headerlink" href="#where-setup-puts-files" title="Permanent link">¶</a></h3>
|
||||
<table>
|
||||
<thead>
|
||||
<tr>
|
||||
<th>Item</th>
|
||||
<th>From a git clone</th>
|
||||
<th>From a <code>uv</code> tool install</th>
|
||||
</tr>
|
||||
</thead>
|
||||
<tbody>
|
||||
<tr>
|
||||
<td>External tools</td>
|
||||
<td><code>unshackle/binaries</code> in the clone</td>
|
||||
<td><code>binaries</code> in the user data directory</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td>New config (<code>unshackle.yaml</code>)</td>
|
||||
<td><code>unshackle/unshackle.yaml</code> in the clone</td>
|
||||
<td>The user config directory</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td>Data folders (cookies, WVDs, PRDs, cache, logs, services, temp)</td>
|
||||
<td>The default folders in the clone</td>
|
||||
<td>The user data directory</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td>Downloads</td>
|
||||
<td>The folder that you give at the prompt</td>
|
||||
<td>The folder that you give at the prompt</td>
|
||||
</tr>
|
||||
</tbody>
|
||||
</table>
|
||||
<p>On Windows, CCExtractor and its libraries go into their own <code>ccextractor</code>
|
||||
subfolder of the tools folder.</p>
|
||||
<p>On Linux, the user data directory is usually <code>~/.local/share/unshackle</code> and the
|
||||
user config directory is usually <code>~/.config/unshackle</code>. On Windows, both are
|
||||
<code>%LOCALAPPDATA%\unshackle</code>. Run <code>uv run unshackle env info</code> to see the paths that
|
||||
unshackle uses. Its <code>User_Binaries</code> row shows the <code>binaries</code> folder in the user
|
||||
data directory.</p>
|
||||
<p>Setup writes a new config only when it finds no <code>unshackle.yaml</code> in any of the
|
||||
<a href="../configuration-file/">config locations</a>. It keeps an existing config where it
|
||||
is. In a clone, the new config sets only <code>directories.downloads</code>, so the data
|
||||
folders stay at their defaults in the clone.</p>
|
||||
<p>A <code>uv</code> tool upgrade replaces the package folder. For a <code>uv</code> tool install, setup
|
||||
puts the tools in the user data directory and writes a <code>directories</code> block that
|
||||
moves the data folders there, so an upgrade keeps them. If an existing config
|
||||
keeps data folders inside the package of a <code>uv</code> tool install, setup shows a
|
||||
warning and prints the <code>directories</code> lines to add.</p>
|
||||
<h2 id="requirements-at-a-glance">Requirements at a glance<a class="headerlink" href="#requirements-at-a-glance" title="Permanent link">¶</a></h2>
|
||||
<table>
|
||||
<thead>
|
||||
@@ -2355,34 +2569,50 @@ later is unsupported, and the installer refuses to assemble the environment.</p>
|
||||
<p>You do not usually need to install a matching Python interpreter by hand, since
|
||||
<code>uv</code> can download and manage one for you. If you work inside an existing
|
||||
virtual environment, make sure that it is on a supported version.</p>
|
||||
<h2 id="installing-with-uv">Installing with uv<a class="headerlink" href="#installing-with-uv" title="Permanent link">¶</a></h2>
|
||||
<p>The recommended way to install unshackle is as a <code>uv</code> tool. This creates an
|
||||
isolated environment for the package and puts the <code>unshackle</code> command on your
|
||||
<code>PATH</code> without touching your system Python.</p>
|
||||
<div class="language-shell highlight"><span class="filename">Install as a uv tool</span><pre><span></span><code><span id="__span-0-1"><a id="__codelineno-0-1" name="__codelineno-0-1" href="#__codelineno-0-1"></a>uv<span class="w"> </span>tool<span class="w"> </span>install<span class="w"> </span>git+https://github.com/unshackle-dl/unshackle.git
|
||||
<h2 id="installing-by-hand">Installing by hand<a class="headerlink" href="#installing-by-hand" title="Permanent link">¶</a></h2>
|
||||
<p>If you do not use the install script, install unshackle with <code>uv</code> and then run
|
||||
<code>unshackle setup</code>, or install the <a href="#external-tools-on-your-path">external tools</a>
|
||||
yourself.</p>
|
||||
<h3 id="running-from-a-clone">Running from a clone<a class="headerlink" href="#running-from-a-clone" title="Permanent link">¶</a></h3>
|
||||
<p>Use <code>uv run</code> inside the clone. It keeps the project's virtual environment active
|
||||
for the duration of the command, so you do not have to activate it yourself. It
|
||||
also installs the dependencies on the first run.</p>
|
||||
<div class="language-shell highlight"><span class="filename">Run from a git clone</span><pre><span></span><code><span id="__span-4-1"><a id="__codelineno-4-1" name="__codelineno-4-1" href="#__codelineno-4-1"></a>git<span class="w"> </span>clone<span class="w"> </span>https://github.com/unshackle-dl/unshackle.git
|
||||
</span><span id="__span-4-2"><a id="__codelineno-4-2" name="__codelineno-4-2" href="#__codelineno-4-2"></a><span class="nb">cd</span><span class="w"> </span>unshackle
|
||||
</span><span id="__span-4-3"><a id="__codelineno-4-3" name="__codelineno-4-3" href="#__codelineno-4-3"></a>uv<span class="w"> </span>run<span class="w"> </span>unshackle<span class="w"> </span>setup
|
||||
</span></code></pre></div>
|
||||
<p>Once it finishes, the <code>unshackle</code> command is available globally:</p>
|
||||
<div class="language-shell highlight"><pre><span></span><code><span id="__span-1-1"><a id="__codelineno-1-1" name="__codelineno-1-1" href="#__codelineno-1-1"></a>unshackle<span class="w"> </span>--help
|
||||
<p>Every command shown elsewhere in these docs works the same way from a clone.
|
||||
Prefix it with <code>uv run</code>:</p>
|
||||
<div class="language-shell highlight"><pre><span></span><code><span id="__span-5-1"><a id="__codelineno-5-1" name="__codelineno-5-1" href="#__codelineno-5-1"></a>uv<span class="w"> </span>run<span class="w"> </span>unshackle<span class="w"> </span>env<span class="w"> </span>check
|
||||
</span></code></pre></div>
|
||||
<h3 id="advanced-install-as-a-uv-tool">Advanced: install as a uv tool<a class="headerlink" href="#advanced-install-as-a-uv-tool" title="Permanent link">¶</a></h3>
|
||||
<p>This way is for users who know <code>uv</code> tools and want the <code>unshackle</code> command on
|
||||
their <code>PATH</code> without a clone.</p>
|
||||
<div class="admonition note">
|
||||
<p class="admonition-title">Where a uv tool install keeps files</p>
|
||||
<p><code>uv tool install</code> puts unshackle into the tool folder of <code>uv</code>, not into a
|
||||
folder that you choose. <code>unshackle setup</code> therefore puts the external
|
||||
tools, the config, and the data folders in your user data and config
|
||||
directories (see <a href="#where-setup-puts-files">Where setup puts files</a>). A git
|
||||
clone is the easier setup: its tools, config, data, and services stay in
|
||||
one folder that you can see. On the first run from a <code>uv</code> tool install,
|
||||
<code>unshackle setup</code> tells you this and asks if you want to continue.</p>
|
||||
</div>
|
||||
<p>Install the tool and run setup:</p>
|
||||
<div class="language-shell highlight"><span class="filename">Install as a uv tool</span><pre><span></span><code><span id="__span-6-1"><a id="__codelineno-6-1" name="__codelineno-6-1" href="#__codelineno-6-1"></a>uv<span class="w"> </span>tool<span class="w"> </span>install<span class="w"> </span>git+https://github.com/unshackle-dl/unshackle.git
|
||||
</span><span id="__span-6-2"><a id="__codelineno-6-2" name="__codelineno-6-2" href="#__codelineno-6-2"></a>unshackle<span class="w"> </span>setup
|
||||
</span></code></pre></div>
|
||||
<p>The install scripts also do this when you run one alone, without a clone: when
|
||||
the script does not find the unshackle <code>pyproject.toml</code> next to it, it runs
|
||||
<code>uv tool install</code> and then <code>unshackle setup</code>. When it finishes, it tells you to
|
||||
open a new terminal, because the <code>PATH</code> change only applies to new terminals.
|
||||
Run <code>unshackle env check</code> there.</p>
|
||||
<div class="admonition tip">
|
||||
<p class="admonition-title">Upgrading and removing</p>
|
||||
<p>Because you installed it from a git URL, re-run the same
|
||||
<code>uv tool install</code> command (uv will update in place) to get a newer version,
|
||||
and use <code>uv tool uninstall unshackle</code> to remove it.</p>
|
||||
</div>
|
||||
<h3 id="running-from-a-clone">Running from a clone<a class="headerlink" href="#running-from-a-clone" title="Permanent link">¶</a></h3>
|
||||
<p>If you would rather work from a checkout of the repository (for example to try
|
||||
an in-development branch or to keep your own local services alongside unshackle), use
|
||||
<code>uv run</code> inside the clone. This keeps the project's virtual environment active
|
||||
for the duration of the command, so you do not have to activate it yourself.</p>
|
||||
<div class="language-shell highlight"><span class="filename">Run from a git clone</span><pre><span></span><code><span id="__span-2-1"><a id="__codelineno-2-1" name="__codelineno-2-1" href="#__codelineno-2-1"></a>git<span class="w"> </span>clone<span class="w"> </span>https://github.com/unshackle-dl/unshackle.git
|
||||
</span><span id="__span-2-2"><a id="__codelineno-2-2" name="__codelineno-2-2" href="#__codelineno-2-2"></a><span class="nb">cd</span><span class="w"> </span>unshackle
|
||||
</span><span id="__span-2-3"><a id="__codelineno-2-3" name="__codelineno-2-3" href="#__codelineno-2-3"></a>uv<span class="w"> </span>run<span class="w"> </span>unshackle<span class="w"> </span>--help
|
||||
</span></code></pre></div>
|
||||
<p>Every command shown elsewhere in these docs works the same way from a clone.
|
||||
Prefix it with <code>uv run</code>:</p>
|
||||
<div class="language-shell highlight"><pre><span></span><code><span id="__span-3-1"><a id="__codelineno-3-1" name="__codelineno-3-1" href="#__codelineno-3-1"></a>uv<span class="w"> </span>run<span class="w"> </span>unshackle<span class="w"> </span>env<span class="w"> </span>check
|
||||
</span></code></pre></div>
|
||||
<div class="admonition note">
|
||||
<p class="admonition-title">Developer note</p>
|
||||
<p>Contributors will also want the development and test dependency groups. The
|
||||
@@ -2394,9 +2624,12 @@ these entirely.</p>
|
||||
<h2 id="external-tools-on-your-path">External tools on your PATH<a class="headerlink" href="#external-tools-on-your-path" title="Permanent link">¶</a></h2>
|
||||
<p>unshackle shells out to a number of external command-line programs for media
|
||||
processing and DRM work. It looks for each one first in the <code>binaries/</code> folder
|
||||
inside the installed package, and then falls back to your system <code>PATH</code>, so
|
||||
installing these tools system-wide (or dropping them into that folder) both
|
||||
work.</p>
|
||||
inside the installed package, then in the <code>binaries</code> folder of your user data
|
||||
directory, and then on your system <code>PATH</code>. <code>unshackle setup</code> installs tools into
|
||||
the first folder in a clone and into the second for a <code>uv</code> tool install. Installing a tool system-wide or putting it into one of those folders
|
||||
both work.</p>
|
||||
<p><code>unshackle setup</code> installs the required tools and some optional ones for you.
|
||||
Use the tables below when you install a tool by hand.</p>
|
||||
<h3 id="required-tools">Required tools<a class="headerlink" href="#required-tools" title="Permanent link">¶</a></h3>
|
||||
<p>These must be present for core downloading, decryption, and muxing to work:</p>
|
||||
<table>
|
||||
@@ -2487,7 +2720,7 @@ download. For example, <code>dovi_tool</code> only matters if you download Dolby
|
||||
</tr>
|
||||
<tr>
|
||||
<td>CCExtractor</td>
|
||||
<td><code>ccextractor</code></td>
|
||||
<td><code>ccextractor</code>, <code>ccextractorwin</code>, <code>ccextractorwinfull</code></td>
|
||||
<td>Extracting closed captions</td>
|
||||
</tr>
|
||||
<tr>
|
||||
@@ -2535,47 +2768,46 @@ SubtitleEdit 5.x, before falling back to a <code>SubtitleEdit</code> (4.x) binar
|
||||
automated subtitle conversion.</p>
|
||||
</div>
|
||||
<h2 id="verifying-your-installation">Verifying your installation<a class="headerlink" href="#verifying-your-installation" title="Permanent link">¶</a></h2>
|
||||
<p>After installation, make sure that the command works and that unshackle can see
|
||||
the tools it depends on.</p>
|
||||
<h3 id="make-sure-the-command-is-available">Make sure the command is available<a class="headerlink" href="#make-sure-the-command-is-available" title="Permanent link">¶</a></h3>
|
||||
<div class="language-shell highlight"><pre><span></span><code><span id="__span-4-1"><a id="__codelineno-4-1" name="__codelineno-4-1" href="#__codelineno-4-1"></a>unshackle<span class="w"> </span>--help
|
||||
</span></code></pre></div>
|
||||
<p>This prints the list of available commands (<code>dl</code>, <code>env</code>, <code>kv</code>,
|
||||
<code>serve</code>, <code>wvd</code>, <code>prd</code>, <code>search</code>, <code>util</code>, <code>cfg</code>, <code>import</code>). If your shell reports
|
||||
that <code>unshackle</code> is not found, the <code>uv tool</code> bin directory is probably not on
|
||||
your <code>PATH</code>. Operate <code>uv tool update-shell</code> and open a new terminal.</p>
|
||||
<p>After installation, make sure that unshackle can see the tools it depends on.</p>
|
||||
<h3 id="examine-the-external-dependencies">Examine the external dependencies<a class="headerlink" href="#examine-the-external-dependencies" title="Permanent link">¶</a></h3>
|
||||
<p>The <code>env check</code> subcommand inspects your environment and reports which tools it
|
||||
found:</p>
|
||||
<div class="language-shell highlight"><pre><span></span><code><span id="__span-5-1"><a id="__codelineno-5-1" name="__codelineno-5-1" href="#__codelineno-5-1"></a>unshackle<span class="w"> </span>env<span class="w"> </span>check
|
||||
</span></code></pre></div>
|
||||
<div class="tabbed-set tabbed-alternate" data-tabs="1:2"><input checked="checked" id="__tabbed_1_1" name="__tabbed_1" type="radio" /><input id="__tabbed_1_2" name="__tabbed_1" type="radio" /><div class="tabbed-labels"><label for="__tabbed_1_1">Output</label><label for="__tabbed_1_2">From a clone</label></div>
|
||||
<p>The <code>env check</code> subcommand is the first check. It inspects your environment and
|
||||
reports which tools it found:</p>
|
||||
<div class="tabbed-set tabbed-alternate" data-tabs="3:2"><input checked="checked" id="__tabbed_3_1" name="__tabbed_3" type="radio" /><input id="__tabbed_3_2" name="__tabbed_3" type="radio" /><div class="tabbed-labels"><label for="__tabbed_3_1">From a clone</label><label for="__tabbed_3_2">Installed as a uv tool</label></div>
|
||||
<div class="tabbed-content">
|
||||
<div class="tabbed-block">
|
||||
<p>It prints a table grouped by category (Core, DRM, HDR, Subtitle, Player,
|
||||
Network) with a status column: a green check for tools that resolved and a
|
||||
red cross for those it could not find, plus a summary line such as
|
||||
<code>All required tools installed ✓</code> or <code>Missing required: <names></code>.</p>
|
||||
<div class="language-shell highlight"><pre><span></span><code><span id="__span-7-1"><a id="__codelineno-7-1" name="__codelineno-7-1" href="#__codelineno-7-1"></a>uv<span class="w"> </span>run<span class="w"> </span>unshackle<span class="w"> </span>env<span class="w"> </span>check
|
||||
</span></code></pre></div>
|
||||
</div>
|
||||
<div class="tabbed-block">
|
||||
<div class="language-shell highlight"><pre><span></span><code><span id="__span-6-1"><a id="__codelineno-6-1" name="__codelineno-6-1" href="#__codelineno-6-1"></a>uv<span class="w"> </span>run<span class="w"> </span>unshackle<span class="w"> </span>env<span class="w"> </span>check
|
||||
<div class="language-shell highlight"><pre><span></span><code><span id="__span-8-1"><a id="__codelineno-8-1" name="__codelineno-8-1" href="#__codelineno-8-1"></a>unshackle<span class="w"> </span>env<span class="w"> </span>check
|
||||
</span></code></pre></div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<p>If a required tool shows as missing, install it and put it on your <code>PATH</code> (or in
|
||||
the package's <code>binaries/</code> folder), then re-run the check.</p>
|
||||
<p>It prints a table grouped by category (Core, DRM, HDR, Subtitle, Player,
|
||||
Network) with a status column: a green check for tools that resolved and a red
|
||||
cross for those it could not find, plus a summary line such as
|
||||
<code>All required tools installed ✓</code> or <code>Missing required: <names></code>.</p>
|
||||
<p>If a required tool shows as missing, <code>env check</code> tells you to run
|
||||
<code>unshackle setup</code>. You can also install the tool by hand and put it on your
|
||||
<code>PATH</code> (or in one of the <code>binaries</code> folders), then re-run the check.</p>
|
||||
<div class="admonition tip">
|
||||
<p class="admonition-title"><code>unshackle</code> is not found after a uv tool install</p>
|
||||
<p>The bin directory of <code>uv</code> tools is probably not on your <code>PATH</code>. Run
|
||||
<code>uv tool update-shell</code> and open a new terminal.</p>
|
||||
</div>
|
||||
<h3 id="inspect-environment-paths">Inspect environment paths<a class="headerlink" href="#inspect-environment-paths" title="Permanent link">¶</a></h3>
|
||||
<p>To see where unshackle will read its configuration from and where it stores
|
||||
downloads, caches, cookies, and devices, use:</p>
|
||||
<div class="language-shell highlight"><pre><span></span><code><span id="__span-7-1"><a id="__codelineno-7-1" name="__codelineno-7-1" href="#__codelineno-7-1"></a>unshackle<span class="w"> </span>env<span class="w"> </span>info
|
||||
<div class="language-shell highlight"><pre><span></span><code><span id="__span-9-1"><a id="__codelineno-9-1" name="__codelineno-9-1" href="#__codelineno-9-1"></a>uv<span class="w"> </span>run<span class="w"> </span>unshackle<span class="w"> </span>env<span class="w"> </span>info
|
||||
</span></code></pre></div>
|
||||
<p>If no configuration file exists yet, this command lists the locations unshackle
|
||||
searches for one, so you know where to make it. See the
|
||||
<a href="../configuration-file/">configuration guide</a> for the details of that file.</p>
|
||||
<h2 id="next-steps">Next steps<a class="headerlink" href="#next-steps" title="Permanent link">¶</a></h2>
|
||||
<ul>
|
||||
<li>Set up your <a href="../configuration-file/">configuration</a> file (<code>unshackle.yaml</code>).</li>
|
||||
<li>Set up your <a href="../configuration-file/">configuration</a> file (<code>unshackle.yaml</code>), or
|
||||
let <code>unshackle setup</code> write a first one.</li>
|
||||
<li>Start <a href="../../guide/downloading/">downloading</a> titles when <code>env check</code> finds every required tool.</li>
|
||||
</ul>
|
||||
|
||||
|
||||
Reference in New Issue
Block a user