Add Download button
This commit is contained in:
parent
7964145677
commit
4845a4b0cf
@ -282,6 +282,10 @@ if {$type ne "ts" || ("ODEncrypted" ni $flags && $url eq "") } {
|
||||
</td>
|
||||
</tr>"
|
||||
set hasffmpeg 1
|
||||
} elseif {$type eq "ts" && $url ne ""} {
|
||||
puts { <script type="text/javascript"> }
|
||||
puts "$('#playDL').attr('href','$url').enable();
|
||||
puts { </script> }
|
||||
}
|
||||
puts "
|
||||
</table>
|
||||
@ -292,7 +296,7 @@ if {$hasffmpeg} {
|
||||
puts { <script type="text/javascript"> }
|
||||
puts "var url = \"$url\";"
|
||||
puts {
|
||||
$('#ffmpeg').load(url, function() { $('#play').button('enable'); });
|
||||
$('#ffmpeg').load(url, function() { $('#play, #playDL').enable(); });
|
||||
</script>
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user