Add Download button

This commit is contained in:
df 2021-04-13 12:58:20 +00:00
parent 7964145677
commit 4845a4b0cf

View File

@ -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>
}
}