mirror of
https://github.com/unshackle-dl/unshackle.git
synced 2026-12-05 07:25:08 +00:00
Deployed 3bdca22b with MkDocs version: 1.6.1
This commit is contained in:
@@ -2436,6 +2436,14 @@ split is exactly why every URL lives in <code>config.yaml</code> with <code>{}</
|
||||
placeholders while the secrets that fill them stay out of it. Both halves
|
||||
read back through the same <code>self.config[...]</code>.</p>
|
||||
</div>
|
||||
<div class="admonition tip">
|
||||
<p class="admonition-title">User choices go under <code>preferences</code></p>
|
||||
<p>Put each choice a user makes (a metadata language, a subtitle format) under
|
||||
<code>preferences</code> in <code>config.yaml</code>, and read it from <code>self.config["preferences"]</code>.
|
||||
Over <code>--remote</code>, the client's own <code>services.<TAG>.preferences</code> values reach
|
||||
that block on the server with no extra code. See
|
||||
<a href="../rest-api/remote-sessions/#your-preferences">Your preferences</a>.</p>
|
||||
</div>
|
||||
<div class="admonition warning">
|
||||
<p class="admonition-title">Split across files? Use relative imports</p>
|
||||
<p>If your service grows beyond a single <code>__init__.py</code>, import your own
|
||||
|
||||
Reference in New Issue
Block a user