feat(Download): adds streaming and local download options
This commit is contained in:
@@ -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>
|
||||
|
||||
7
templates/torrentio/stream.html.twig
Normal file
7
templates/torrentio/stream.html.twig
Normal file
@@ -0,0 +1,7 @@
|
||||
{% extends 'base.html.twig' %}
|
||||
|
||||
{% block title %}Streaming — Torrentio{% endblock %}
|
||||
|
||||
{% block body %}
|
||||
<iframe width="100%" height="100%" src="{{ stream_url }}"></iframe>
|
||||
{% endblock %}
|
||||
Reference in New Issue
Block a user