Add support for password protected videos
This commit is contained in:
parent
621ccfb491
commit
e34b01f2c4
9 changed files with 196 additions and 29 deletions
13
templates/password.tpl
Normal file
13
templates/password.tpl
Normal file
|
@ -0,0 +1,13 @@
|
|||
{include file='inc/head.tpl'}
|
||||
<div class="wrapper">
|
||||
<div class="main">
|
||||
{include file="inc/logo.tpl"}
|
||||
<h2>This video is protected</h2>
|
||||
<p>You need a password in order to download this video.</p>
|
||||
<form action="" method="POST">
|
||||
<input class="URLinput" type="password" name="password" title="Video password" />
|
||||
<br/><br/>
|
||||
<input class="downloadBtn" type="submit" value="Download" />
|
||||
</form>
|
||||
</div>
|
||||
{include file='inc/footer.tpl'}
|
|
@ -28,11 +28,7 @@
|
|||
<optgroup label="Generic formats">
|
||||
<option value="best[protocol^=http]">
|
||||
{strip}
|
||||
Best ({$video->ext}
|
||||
{if isset($video->filesize)}
|
||||
{$video->filesize}
|
||||
{/if}
|
||||
)
|
||||
Best ({$video->ext})
|
||||
{/strip}
|
||||
</option>
|
||||
<option value="worst[protocol^=http]">
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue