|
|
|
@ -1,6 +1,7 @@
|
|
|
|
<!DOCTYPE html>
|
|
|
|
<!DOCTYPE html>
|
|
|
|
<html lang="en">
|
|
|
|
<html lang="en">
|
|
|
|
<head>
|
|
|
|
<head>
|
|
|
|
|
|
|
|
|
|
|
|
<meta charset="UTF-8">
|
|
|
|
<meta charset="UTF-8">
|
|
|
|
<title>{{ video.username }} - Video</title>
|
|
|
|
<title>{{ video.username }} - Video</title>
|
|
|
|
<style>
|
|
|
|
<style>
|
|
|
|
@ -31,16 +32,38 @@
|
|
|
|
.meta p { margin: 8px 0; }
|
|
|
|
.meta p { margin: 8px 0; }
|
|
|
|
a { color: #0af; text-decoration: none; }
|
|
|
|
a { color: #0af; text-decoration: none; }
|
|
|
|
</style>
|
|
|
|
</style>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
<script>
|
|
|
|
|
|
|
|
function openFolder(filePath) {
|
|
|
|
|
|
|
|
fetch('/open-folder', {
|
|
|
|
|
|
|
|
method: 'POST',
|
|
|
|
|
|
|
|
headers: { 'Content-Type': 'application/json' },
|
|
|
|
|
|
|
|
body: JSON.stringify({ file_path: filePath })
|
|
|
|
|
|
|
|
}).then(res => res.json()).then(data => {
|
|
|
|
|
|
|
|
if (data.success) {
|
|
|
|
|
|
|
|
console.log("Opened folder successfully");
|
|
|
|
|
|
|
|
} else {
|
|
|
|
|
|
|
|
alert("Failed to open folder");
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
});
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
</script>
|
|
|
|
|
|
|
|
|
|
|
|
</head>
|
|
|
|
</head>
|
|
|
|
<body>
|
|
|
|
<body>
|
|
|
|
<h1>{{ video.username }} - {{ video.site }}</h1>
|
|
|
|
<h1>{{ video.username }} - {{ video.site }}</h1>
|
|
|
|
<a href="/user/{{ video.username }}">⬅ Back to {{ video.username }}'s Videos</a>
|
|
|
|
<div>
|
|
|
|
|
|
|
|
<a href="/user/{{ video.username }}">⬅ Back to {{ video.username }}'s Videos</a>
|
|
|
|
|
|
|
|
</div>
|
|
|
|
<video controls muted>
|
|
|
|
<video controls muted>
|
|
|
|
<source src="/video/stream/{{ video.video_id }}" type="video/mp4">
|
|
|
|
<source src="/video/stream/{{ video.video_id }}" type="video/mp4">
|
|
|
|
Your browser does not support the video tag.
|
|
|
|
Your browser does not support the video tag.
|
|
|
|
</video>
|
|
|
|
</video>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
<div class="meta">
|
|
|
|
|
|
|
|
<button onclick="openFolder('{{ video.filepath }}')">Open Folder</button>
|
|
|
|
|
|
|
|
</div>
|
|
|
|
|
|
|
|
|
|
|
|
<div class="meta">
|
|
|
|
<div class="meta">
|
|
|
|
<p><strong>Username:</strong> {{ video.username }}</p>
|
|
|
|
<p><strong>Username:</strong> {{ video.username }}</p>
|
|
|
|
<p><strong>Size:</strong> {{ "%.2f"|format(video.size/1024) }} GB</p>
|
|
|
|
<p><strong>Size:</strong> {{ "%.2f"|format(video.size/1024) }} GB</p>
|
|
|
|
|