Working extraction of title and url of video and videos in channels / playlists

This commit is contained in:
Maximilian Wagner
2023-07-31 14:01:34 +02:00
parent 9929b34bdb
commit 9f292655b9
7 changed files with 101 additions and 19 deletions

View File

@@ -11,5 +11,29 @@
{% if form.errors %}
{{ form.errors['url'][0][:-1] + ', try again.' }}
{% endif %}
{% if ytLink == False %}
Please enter a full, valid YouTube URL.
{% endif %}
{% if titles %}
<div class="container">
<table id="videos" class="table">
<thead>
<tr>
<th scope="col" class="text-center">Title</th>
<th scope="col" class="text-center">URL</th>
</tr>
</thead>
<tbody>
{% for i in range(amount) %}
<tr>
<td class="text-center">{{ titles[i] }}</td>
<td class="text-center"> <a href="{{ urls[i] }}" target="_blank">Link</a></td>
</tr>
{% endfor %}
</tbody>
</table>
</div>
{% endif %}
</div>
{%- endblock %}