2022-02-03 20:38:29 +00:00
|
|
|
{extends file='page.tpl'}
|
|
|
|
{block name='main'}
|
|
|
|
{include file="inc/logo.tpl"}
|
2019-11-29 20:33:49 +00:00
|
|
|
|
2022-02-03 20:38:29 +00:00
|
|
|
{if isset($video->title)}
|
|
|
|
{include file='snippets/title.tpl' assign=title}
|
|
|
|
<p>
|
|
|
|
{t params=['@title'=>$title]}Videos extracted from @title:{/t}
|
|
|
|
</p>
|
|
|
|
{/if}
|
2019-11-29 20:33:49 +00:00
|
|
|
|
2022-02-03 20:38:29 +00: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 20:19:44 +00:00
|
|
|
{if isset($entry->ie_key) and $entry->ie_key == Youtube and !filter_var($entry->url, FILTER_VALIDATE_URL)}
|
2017-04-28 12:43:20 +00:00
|
|
|
https://www.youtube.com/watch?v=
|
|
|
|
{/if}
|
2019-04-21 20:19:44 +00:00
|
|
|
{$entry->url}
|
2017-04-28 12:43:20 +00:00
|
|
|
{/strip}">
|
2022-02-03 20:38:29 +00:00
|
|
|
{if !isset($entry->title)}
|
|
|
|
{if $entry->ie_key == YoutubePlaylist}
|
2024-09-20 12:16:23 +00:00
|
|
|
{t}Playlist{/t}
|
2020-05-13 22:18:39 +00:00
|
|
|
{else}
|
2024-09-20 12:16:23 +00:00
|
|
|
{t}Video{/t}
|
2020-05-13 22:18:39 +00:00
|
|
|
{/if}
|
2022-02-03 20:38:29 +00:00
|
|
|
{else}
|
|
|
|
{$entry->title}
|
|
|
|
{/if}
|
|
|
|
</a>
|
|
|
|
</h3>
|
2024-09-20 12:16:23 +00:00
|
|
|
{if $entry->_type == 'playlist'}
|
|
|
|
<p class="playlist-entry-description">
|
|
|
|
<a target="_blank" class="downloadBtn"
|
|
|
|
href="{path_for name="info"}?url={$entry->webpage_url}">{t}View playlist{/t}</a>
|
|
|
|
</p>
|
|
|
|
{else}
|
|
|
|
<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>
|
|
|
|
{/if}
|
2022-02-03 20:38:29 +00:00
|
|
|
</div>
|
|
|
|
{/foreach}
|
|
|
|
{/block}
|