Web app for quickly sorting deluge torrents into a library
You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
|
- {% extends "page.html" %}
- {% block toolbar %}
- <a href="/"><button>Back</button></a>
- {% endblock %}
- {% block body %}
- <div class="sortform">
- <h2>Sort {{ torrent.name }} </h2>
- <p>{{ torrent.hash }}</p>
-
- <fieldset>
- <legend>files</legend>
- <ul>
- {% for f in torrent.files %}
- <li>{{ f.path }} - {{ f.size }} B</li> <!-- TODO nice size formatting-->
- {% endfor %}
- </ul>
- </fieldset>
-
- <br/>
-
- <form action="/sort" method="post">
- <input type="hidden" name="thash" value="{{ torrent.hash }}">
- <fieldset>
- <legend>destination</legend>
- <table>
- <tr>
- <th></th>
- <th>show</th>
- <th>season</th>
- <th>library</th>
- <th>score</th>
- </tr>
- {% for row in matches %}
- <tr>
- <td>
- <input type="radio" name="dest" value="{{row.dest.dir}}" {% if loop.index == 1 %}checked="checked"{%endif %}/>
- </td>
- <td>{{ row.dest.dir }}</td>
- <td>{{ row.subdest }}</td>
- <td>{{ row.dest.root }}</td>
- <td>{{ row.score }}</td>
- </tr>
- {% endfor %}
- </table>
- <br />
- <input type="submit" value="Sort">
- </fieldset>
- </form>
- </div>
- {% endblock %}
|