Alot of misc changes and fixes. Titles with a forward slash are now being corrected for insert in db.
This commit is contained in:
@@ -15,7 +15,7 @@
|
||||
<tbody>
|
||||
{% for video in videos %}
|
||||
<tr>
|
||||
<td class="text-center">{{ video['name'] }}</td>
|
||||
<td class="text-center"><a class="btn btn-link" href="/player?file={{ video['path'] + video['name'] + video['ext'] }}">{{ video['name'] }}</a></td>
|
||||
<td class="text-center"><a class="btn btn-link" href="/download?file={{ video['path'] + video['name'] + video['ext'] }}" download>Download</a></td>
|
||||
</tr>
|
||||
{% endfor %}
|
||||
|
||||
@@ -16,7 +16,7 @@
|
||||
<tbody>
|
||||
{% for entry in running_downloads %}
|
||||
<tr>
|
||||
<td class="text-center"><a href="{{ entry[0] }}" target="_blank">{{ entry[0] }}</a></td>
|
||||
<td class="text-center">{{ entry[0] }}</td>
|
||||
<td class="text-center">{{ entry[1] }}</td>
|
||||
</tr>
|
||||
{% endfor %}
|
||||
@@ -33,7 +33,7 @@
|
||||
<table class="table">
|
||||
<thead>
|
||||
<tr>
|
||||
<th scope="col" class="text-center">Currently processing</th>
|
||||
<th scope="col" class="text-center">New downloads in {{ running_downloads[0][0] }}</th>
|
||||
</tr>
|
||||
</thead>
|
||||
<tbody>
|
||||
|
||||
@@ -43,7 +43,7 @@
|
||||
{% for video in videos %}
|
||||
{% if 'mp3' in video['ext'] %}
|
||||
<tr>
|
||||
<td class="text-center align-middle">{{ video['name'] }}</td>
|
||||
<td class="text-center align-middle"><a class="btn btn-link" href="/player?file={{ video['path'] + video['name'] + video['ext'] }}">{{ video['name'] }}</a></td>
|
||||
<td class="text-center align-middle"><a class="btn btn-link" href="/download?file={{ video['path'] + video['name'] + video['ext'] }}" download>Download</a></td>
|
||||
<td class="text-center align-middle"><a class="btn btn-danger" href="/delete?file={{ video['path'] + video['name'] + video['ext'] }}&from=/library"> </a></td>
|
||||
</tr>
|
||||
|
||||
21
templates/player.html
Normal file
21
templates/player.html
Normal file
@@ -0,0 +1,21 @@
|
||||
{%- extends "base.html" %}
|
||||
|
||||
{% block content %}
|
||||
{{ super() }}
|
||||
<div class="container-fluid">
|
||||
{% if 'mp4' in file %}
|
||||
<div class="section d-flex justify-content-center embed-responsive embed-responsive-16by9" style="padding: 1.5%">
|
||||
<video class="embed-responsive-item" style="width: 100%; height: auto" controls>
|
||||
<source src="serve?file={{ file }}" type="video/webm">
|
||||
</video>
|
||||
</div>
|
||||
{% endif %}
|
||||
{% if 'mp3' in file %}
|
||||
<div class="section d-flex justify-content-center embed-responsive" style="padding: 1.5%">
|
||||
<audio class="embed-responsive-item" controls>
|
||||
<source src="serve?file={{ file }}" type="audio/mpeg">
|
||||
</audio>
|
||||
</div>
|
||||
{% endif %}
|
||||
</div>
|
||||
{%- endblock %}
|
||||
@@ -1,12 +0,0 @@
|
||||
{%- extends "base.html" %}
|
||||
|
||||
{% block content %}
|
||||
{{ super() }}
|
||||
<div class="container-fluid">
|
||||
<div id="trailer" class="section d-flex justify-content-center embed-responsive embed-responsive-16by9">
|
||||
<video class="embed-responsive-item" style="width: 100%; padding: 1.5%; height: auto" controls>
|
||||
<source src="serve?file=video" type="video/webm">
|
||||
</video>
|
||||
</div>
|
||||
</div>
|
||||
{%- endblock %}
|
||||
Reference in New Issue
Block a user