Skip to content

Commit

Permalink
bump version 0.8.11
Browse files Browse the repository at this point in the history
  • Loading branch information
alexpdev committed Mar 26, 2023
1 parent 3c92ec6 commit 2421b0e
Show file tree
Hide file tree
Showing 53 changed files with 211 additions and 196 deletions.
22 changes: 14 additions & 8 deletions docs/Source/commands/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -1563,7 +1563,10 @@ <h3 id="torrentfile.commands.magnet" class="doc doc-heading">
<span class="normal">417</span>
<span class="normal">418</span>
<span class="normal">419</span>
<span class="normal">420</span></pre></div></td><td class="code"><div><pre><span></span><code><span class="k">def</span> <span class="nf">magnet</span><span class="p">(</span><span class="n">metafile</span><span class="p">:</span> <span class="nb">str</span><span class="p">,</span> <span class="n">version</span><span class="p">:</span> <span class="nb">int</span> <span class="o">=</span> <span class="mi">0</span><span class="p">)</span> <span class="o">-&gt;</span> <span class="nb">str</span><span class="p">:</span>
<span class="normal">420</span>
<span class="normal">421</span>
<span class="normal">422</span>
<span class="normal">423</span></pre></div></td><td class="code"><div><pre><span></span><code><span class="k">def</span> <span class="nf">magnet</span><span class="p">(</span><span class="n">metafile</span><span class="p">:</span> <span class="nb">str</span><span class="p">,</span> <span class="n">version</span><span class="p">:</span> <span class="nb">int</span> <span class="o">=</span> <span class="mi">0</span><span class="p">)</span> <span class="o">-&gt;</span> <span class="nb">str</span><span class="p">:</span>
<span class="w"> </span><span class="sd">&quot;&quot;&quot;</span>
<span class="sd"> Create a magnet URI from a Bittorrent meta file.</span>

Expand Down Expand Up @@ -1599,7 +1602,7 @@ <h3 id="torrentfile.commands.magnet" class="doc doc-heading">
<span class="n">infohash</span> <span class="o">=</span> <span class="n">sha256</span><span class="p">(</span><span class="n">bencoded_info</span><span class="p">)</span><span class="o">.</span><span class="n">hexdigest</span><span class="p">()</span>
<span class="k">if</span> <span class="n">v1</span><span class="p">:</span>
<span class="n">magnet</span> <span class="o">+=</span> <span class="s2">&quot;&amp;&quot;</span>
<span class="n">magnet</span> <span class="o">+=</span> <span class="s2">&quot;xt=urn:btmh:&quot;</span> <span class="o">+</span> <span class="n">infohash</span>
<span class="n">magnet</span> <span class="o">+=</span> <span class="s2">&quot;xt=urn:btmh:1220&quot;</span> <span class="o">+</span> <span class="n">infohash</span>

<span class="n">magnet</span> <span class="o">+=</span> <span class="s2">&quot;&amp;dn=&quot;</span> <span class="o">+</span> <span class="n">quote_plus</span><span class="p">(</span><span class="n">info_dict</span><span class="p">[</span><span class="s2">&quot;name&quot;</span><span class="p">])</span>

Expand All @@ -1614,7 +1617,10 @@ <h3 id="torrentfile.commands.magnet" class="doc doc-heading">
<span class="k">else</span><span class="p">:</span>
<span class="n">announce_args</span> <span class="o">=</span> <span class="p">[</span><span class="s2">&quot;&quot;</span><span class="p">]</span>

<span class="n">magnet</span> <span class="o">+=</span> <span class="s2">&quot;&quot;</span><span class="o">.</span><span class="n">join</span><span class="p">(</span><span class="n">announce_args</span><span class="p">)</span>
<span class="n">trackers</span> <span class="o">=</span> <span class="s2">&quot;&quot;</span><span class="o">.</span><span class="n">join</span><span class="p">(</span><span class="n">announce_args</span><span class="p">)</span>

<span class="n">magnet</span> <span class="o">+=</span> <span class="n">trackers</span> <span class="k">if</span> <span class="n">trackers</span> <span class="o">!=</span> <span class="s2">&quot;&amp;tr=&quot;</span> <span class="k">else</span> <span class="s2">&quot;&quot;</span>

<span class="n">logger</span><span class="o">.</span><span class="n">info</span><span class="p">(</span><span class="s2">&quot;Created Magnet URI </span><span class="si">%s</span><span class="s2">&quot;</span><span class="p">,</span> <span class="n">magnet</span><span class="p">)</span>
<span class="n">sys</span><span class="o">.</span><span class="n">stdout</span><span class="o">.</span><span class="n">write</span><span class="p">(</span><span class="s2">&quot;</span><span class="se">\n</span><span class="s2">&quot;</span> <span class="o">+</span> <span class="n">magnet</span> <span class="o">+</span> <span class="s2">&quot;</span><span class="se">\n</span><span class="s2">&quot;</span><span class="p">)</span>
<span class="k">return</span> <span class="n">magnet</span>
Expand Down Expand Up @@ -1831,10 +1837,7 @@ <h3 id="torrentfile.commands.rebuild" class="doc doc-heading">

<details class="quote">
<summary>Source code in <code>torrentfile\commands.py</code></summary>
<div class="highlight"><table class="highlighttable"><tr><td class="linenos"><div class="linenodiv"><pre><span></span><span class="normal">423</span>
<span class="normal">424</span>
<span class="normal">425</span>
<span class="normal">426</span>
<div class="highlight"><table class="highlighttable"><tr><td class="linenos"><div class="linenodiv"><pre><span></span><span class="normal">426</span>
<span class="normal">427</span>
<span class="normal">428</span>
<span class="normal">429</span>
Expand All @@ -1859,7 +1862,10 @@ <h3 id="torrentfile.commands.rebuild" class="doc doc-heading">
<span class="normal">448</span>
<span class="normal">449</span>
<span class="normal">450</span>
<span class="normal">451</span></pre></div></td><td class="code"><div><pre><span></span><code><span class="k">def</span> <span class="nf">rebuild</span><span class="p">(</span><span class="n">args</span><span class="p">:</span> <span class="n">Namespace</span><span class="p">)</span> <span class="o">-&gt;</span> <span class="nb">int</span><span class="p">:</span>
<span class="normal">451</span>
<span class="normal">452</span>
<span class="normal">453</span>
<span class="normal">454</span></pre></div></td><td class="code"><div><pre><span></span><code><span class="k">def</span> <span class="nf">rebuild</span><span class="p">(</span><span class="n">args</span><span class="p">:</span> <span class="n">Namespace</span><span class="p">)</span> <span class="o">-&gt;</span> <span class="nb">int</span><span class="p">:</span>
<span class="w"> </span><span class="sd">&quot;&quot;&quot;</span>
<span class="sd"> Attempt to rebuild a torrent based on the a torrent file.</span>

Expand Down
12 changes: 6 additions & 6 deletions docs/coverage/covindex.html
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,7 @@ <h1>Coverage report:
</form>
<p class="text">
<a class="nav" href="https://coverage.readthedocs.io/en/7.2.2">coverage.py v7.2.2</a>,
created at 2023-03-26 03:49 -0700
created at 2023-03-26 04:49 -0700
</p>
</div>
</header>
Expand Down Expand Up @@ -147,10 +147,10 @@ <h1>Coverage report:
</tr>
<tr class="file">
<td class="name left"><a href="d_1bc82e0ab2fcb2ec_commands_py.html">torrentfile\commands.py</a></td>
<td>176</td>
<td>177</td>
<td>0</td>
<td>6</td>
<td class="right" data-ratio="176 176">100%</td>
<td class="right" data-ratio="177 177">100%</td>
</tr>
<tr class="file">
<td class="name left"><a href="d_1bc82e0ab2fcb2ec_edit_py.html">torrentfile\edit.py</a></td>
Expand Down Expand Up @@ -219,10 +219,10 @@ <h1>Coverage report:
<tfoot>
<tr class="total">
<td class="name left">Total</td>
<td>2943</td>
<td>2944</td>
<td>0</td>
<td>67</td>
<td class="right" data-ratio="2943 2943">100%</td>
<td class="right" data-ratio="2944 2944">100%</td>
</tr>
</tfoot>
</table>
Expand All @@ -234,7 +234,7 @@ <h1>Coverage report:
<div class="content">
<p>
<a class="nav" href="https://coverage.readthedocs.io/en/7.2.2">coverage.py v7.2.2</a>,
created at 2023-03-26 03:49 -0700
created at 2023-03-26 04:49 -0700
</p>
</div>
<aside class="hidden">
Expand Down
4 changes: 2 additions & 2 deletions docs/coverage/d_1bc82e0ab2fcb2ec___init___py.html
Original file line number Diff line number Diff line change
Expand Up @@ -65,7 +65,7 @@ <h2>
<a id="nextFileLink" class="nav" href="d_1bc82e0ab2fcb2ec___main___py.html">&#xbb; next</a>
&nbsp; &nbsp; &nbsp;
<a class="nav" href="https://coverage.readthedocs.io/en/7.2.2">coverage.py v7.2.2</a>,
created at 2023-03-26 03:49 -0700
created at 2023-03-26 04:49 -0700
</p>
<aside class="hidden">
<button type="button" class="button_next_chunk" data-shortcut="j"/>
Expand Down Expand Up @@ -140,7 +140,7 @@ <h2>
<a id="nextFileLink" class="nav" href="d_1bc82e0ab2fcb2ec___main___py.html">&#xbb; next</a>
&nbsp; &nbsp; &nbsp;
<a class="nav" href="https://coverage.readthedocs.io/en/7.2.2">coverage.py v7.2.2</a>,
created at 2023-03-26 03:49 -0700
created at 2023-03-26 04:49 -0700
</p>
</div>
</footer>
Expand Down
4 changes: 2 additions & 2 deletions docs/coverage/d_1bc82e0ab2fcb2ec___main___py.html
Original file line number Diff line number Diff line change
Expand Up @@ -65,7 +65,7 @@ <h2>
<a id="nextFileLink" class="nav" href="d_1bc82e0ab2fcb2ec_cli_py.html">&#xbb; next</a>
&nbsp; &nbsp; &nbsp;
<a class="nav" href="https://coverage.readthedocs.io/en/7.2.2">coverage.py v7.2.2</a>,
created at 2023-03-26 03:49 -0700
created at 2023-03-26 04:49 -0700
</p>
<aside class="hidden">
<button type="button" class="button_next_chunk" data-shortcut="j"/>
Expand Down Expand Up @@ -121,7 +121,7 @@ <h2>
<a id="nextFileLink" class="nav" href="d_1bc82e0ab2fcb2ec_cli_py.html">&#xbb; next</a>
&nbsp; &nbsp; &nbsp;
<a class="nav" href="https://coverage.readthedocs.io/en/7.2.2">coverage.py v7.2.2</a>,
created at 2023-03-26 03:49 -0700
created at 2023-03-26 04:49 -0700
</p>
</div>
</footer>
Expand Down
4 changes: 2 additions & 2 deletions docs/coverage/d_1bc82e0ab2fcb2ec_cli_py.html
Original file line number Diff line number Diff line change
Expand Up @@ -65,7 +65,7 @@ <h2>
<a id="nextFileLink" class="nav" href="d_1bc82e0ab2fcb2ec_commands_py.html">&#xbb; next</a>
&nbsp; &nbsp; &nbsp;
<a class="nav" href="https://coverage.readthedocs.io/en/7.2.2">coverage.py v7.2.2</a>,
created at 2023-03-26 03:49 -0700
created at 2023-03-26 04:49 -0700
</p>
<aside class="hidden">
<button type="button" class="button_next_chunk" data-shortcut="j"/>
Expand Down Expand Up @@ -766,7 +766,7 @@ <h2>
<a id="nextFileLink" class="nav" href="d_1bc82e0ab2fcb2ec_commands_py.html">&#xbb; next</a>
&nbsp; &nbsp; &nbsp;
<a class="nav" href="https://coverage.readthedocs.io/en/7.2.2">coverage.py v7.2.2</a>,
created at 2023-03-26 03:49 -0700
created at 2023-03-26 04:49 -0700
</p>
</div>
</footer>
Expand Down
Loading

0 comments on commit 2421b0e

Please sign in to comment.