Downloads get run in their own threads which are queued. Downloads of single files as well as zips of playlists are possible. Interaction with db has shown no problems.
58 lines
2.2 KiB
HTML
58 lines
2.2 KiB
HTML
{%- extends "base.html" %}
|
|
|
|
{% block content %}
|
|
{{ super() }}
|
|
<div class="container">
|
|
|
|
<div class="card" style="width: 100%">
|
|
<ul class="list-group list-group-flush">
|
|
<li class="list-group-item">
|
|
<div class="row">
|
|
<div class="col-md-5">
|
|
<table id="videos" class="table">
|
|
<thead>
|
|
<tr>
|
|
<th scope="col" class="text-center">Title</th>
|
|
<th scope="col" class="text-center">Download</th>
|
|
</tr>
|
|
</thead>
|
|
<tbody>
|
|
{% for video in videos %}
|
|
<tr>
|
|
<td class="text-center">{{ video['name'] }}</td>
|
|
<td class="text-center"><a href="/download/{{ video['path'] + video['name'] + video['ext'] }}" download>Link</a></td>
|
|
</tr>
|
|
{% endfor %}
|
|
</tbody>
|
|
</table>
|
|
</div>
|
|
</div>
|
|
</li>
|
|
</ul>
|
|
</div>
|
|
|
|
<br><br>
|
|
|
|
|
|
<div class="col-md-1"></div>
|
|
|
|
{% if playlists %}
|
|
<div class="col-md-2">
|
|
<table id="playlists" class="table">
|
|
<thead>
|
|
<tr>
|
|
<th scope="col" class="text-center">Playlists</th>
|
|
</tr>
|
|
</thead>
|
|
<tbody>
|
|
{% for playlist in playlists %}
|
|
<tr>
|
|
<td class="text-center"> <a href="/library-playlist?playlist={{ playlist['ROWID'] }}">{{ playlist['name'] }}</a></td>
|
|
</tr>
|
|
{% endfor %}
|
|
</tbody>
|
|
</table>
|
|
</div>
|
|
{% endif %}
|
|
</div>
|
|
{%- endblock %} |