feat(Download): adds streaming and local download options

This commit is contained in:
Brock H Caldwell
2025-11-08 16:26:38 -06:00
parent 7dd40b4525
commit 37e13347b2
9 changed files with 48 additions and 3 deletions

View File

@@ -86,9 +86,18 @@
{{ result.languageFlags|raw }}
</td>
<td class="px-4 py-4 whitespace-nowrap text-sm text-end text-gray-800 dark:text-gray-50 flex flex-row gap-2 items-center justify-start mb:justify-end">
<button class="download-btn p-1.5 bg-green-600 rounded-md text-gray-50">
Download
</button>
<a href="{{ url('app.torrentio.stream', {url: result.url|base64_encode}) }}" title="Stream in your browser." class="p-1.5 bg-blue-600 rounded-md text-gray-50">
<twig:ux:icon name="bi:camera-video" width="20"/>
</a>
<button class="download-btn p-1.5 bg-green-600 rounded-md text-gray-50" title="Download to your mounted directory.">
<twig:ux:icon name="bi:cloud-download" width="20" />
</button>
<a href="{{ result.url }}" title="Download to your local device." class="p-1.5 bg-orange-500 rounded-md text-gray-50">
<twig:ux:icon name="bi:download" width="20" />
</a>
<label for="select">
<input id="select" type="checkbox" name="select" />
</label>

View File

@@ -0,0 +1,7 @@
{% extends 'base.html.twig' %}
{% block title %}Streaming &mdash; Torrentio{% endblock %}
{% block body %}
<iframe width="100%" height="100%" src="{{ stream_url }}"></iframe>
{% endblock %}