Merge branch 'develop' into feature/parallel-downloads

This commit is contained in:
AlexKucera committed 2026-06-04 11:04:19 +02:00
commit 44fc544a3e
22 files changed
+1051 -113

No files matched your search

+12 -3
View File
@@ -1120,12 +1120,13 @@
</span></code></pre></div>
<p>The <code>[dev]</code> extra installs pytest for testing — omit it if you only want to run the tool.</p>
<h2 id="2-configure">2. Configure</h2>
<p>librofm-downloader uses two YAML files:</p>
<p>librofm-downloader uses two YAML files, searched in <code>~/.config/librofm-downloader/</code> first, then the current working directory:</p>
<table>
<thead>
<tr>
<th>File</th>
<th>Purpose</th>
<th style="text-align: center;">Required?</th>
<th style="text-align: center;">Committed to git?</th>
</tr>
</thead>
@@ -1133,15 +1134,22 @@
<tr>
<td><code>config.yaml</code></td>
<td>Preferences (format, output dir, toggles)</td>
<td style="text-align: center;">No (defaults used)</td>
<td style="text-align: center;">✅ Yes</td>
</tr>
<tr>
<td><code>secrets.yaml</code></td>
<td>Credentials only</td>
<td style="text-align: center;"><strong>Yes</strong></td>
<td style="text-align: center;">❌ No (gitignored)</td>
</tr>
</tbody>
</table>
<blockquote>
<p>[!TIP]
The XDG directory (<code>~/.config/librofm-downloader/</code>) is created automatically on first run.
Place both files there to run <code>librofm-downloader</code> from any directory.</p>
</blockquote>
<h3 id="configyaml">config.yaml</h3>
<div class="language-yaml highlight"><pre><span></span><code><span id="__span_0__-2-1"><a id="__codelineno-2-1" name="__codelineno-2-1" href="#__codelineno-2-1"></a><span class="c1"># libro.fm downloader configuration</span>
</span><span id="__span_0__-2-2"><a id="__codelineno-2-2" name="__codelineno-2-2" href="#__codelineno-2-2"></a><span class="c1"># This file is safe to commit — no credentials here.</span>
@@ -1179,10 +1187,11 @@ If you accidentally put credentials in <code>config.yaml</code>, the tool will r
</span></code></pre></div>
<p>This:</p>
<ol>
<li>Loads <code>config.yaml</code> + <code>secrets.yaml</code></li>
<li>Searches for <code>config.yaml</code> + <code>secrets.yaml</code> (XDG directory first, then CWD)</li>
<li>Authenticates with Libro.fm via OAuth2 password grant</li>
<li>Fetches your full library (all pages)</li>
<li>Skips books already in <code>download_history.json</code></li>
<li>Skips books already in <code>download_history.json</code> (XDG → CWD search)</li>
<li>Downloads each new book with a progress bar</li>
<li>Downloads each new book (3 parallel workers by default) with a progress bar</li>
<li>Records successful downloads to history</li>
</ol>