2017-04-25 01:53:38 +02:00
|
|
|
{include file="inc/head.tpl"}
|
|
|
|
<div class="wrapper">
|
2020-05-14 00:18:39 +02:00
|
|
|
<main class="main">
|
|
|
|
{include file="inc/logo.tpl"}
|
2019-11-29 21:33:49 +01:00
|
|
|
|
2020-05-14 00:18:39 +02:00
|
|
|
{if isset($video->title)}
|
|
|
|
{$title="<i>
|
2019-11-29 21:33:49 +01:00
|
|
|
<a href='{$video->webpage_url}'>
|
2019-11-29 22:28:48 +01:00
|
|
|
{$video->title}</a>
|
2019-11-29 21:33:49 +01:00
|
|
|
</i>"}
|
2020-05-14 00:18:39 +02:00
|
|
|
<p>
|
|
|
|
{t params=['@title'=>$title]}Videos extracted from @title:{/t}
|
|
|
|
</p>
|
|
|
|
{/if}
|
2019-11-29 21:33:49 +01:00
|
|
|
|
2020-05-14 00:18:39 +02:00
|
|
|
{if $config->stream}
|
|
|
|
<a href="{path_for name="download"}?url={$video->webpage_url}" class="downloadBtn">Download everything</a>
|
|
|
|
{/if}
|
|
|
|
{foreach $video->entries as $entry}
|
|
|
|
<div class="playlist-entry">
|
|
|
|
<h3 class="playlist-entry-title"><a target="_blank" href="{strip}
|
2019-04-21 22:19:44 +02:00
|
|
|
{if isset($entry->ie_key) and $entry->ie_key == Youtube and !filter_var($entry->url, FILTER_VALIDATE_URL)}
|
2017-04-28 14:43:20 +02:00
|
|
|
https://www.youtube.com/watch?v=
|
|
|
|
{/if}
|
2019-04-21 22:19:44 +02:00
|
|
|
{$entry->url}
|
2017-04-28 14:43:20 +02:00
|
|
|
{/strip}">
|
2020-05-14 00:18:39 +02:00
|
|
|
{if !isset($entry->title)}
|
|
|
|
{if $entry->ie_key == YoutubePlaylist}
|
|
|
|
Playlist
|
|
|
|
{else}
|
|
|
|
Video
|
|
|
|
{/if}
|
|
|
|
{else}
|
|
|
|
{$entry->title}
|
|
|
|
{/if}
|
|
|
|
</a></h3>
|
|
|
|
<a target="_blank" class="downloadBtn"
|
|
|
|
href="{path_for name="download"}?url={$entry->url}">{t}Download{/t}</a>
|
|
|
|
<a target="_blank" href="{path_for name="info"}?url={$entry->url}">{t}More options{/t}</a>
|
|
|
|
</div>
|
|
|
|
{/foreach}
|
2017-04-25 01:53:38 +02:00
|
|
|
|
2020-05-14 00:18:39 +02:00
|
|
|
</main>
|
|
|
|
{include file="inc/footer.tpl"}
|