Update place holder image

This commit is contained in:
2025-10-22 00:38:21 +03:00
parent 409fd09779
commit 7a3a244c6f

View File

@@ -66,10 +66,10 @@
await list();
}
function streamURL(hash, index = 0) {
function streamURL(hash, index = 0) {
const token = localStorage.getItem("token");
return `${API}/stream/${hash}?index=${index}&token=${token}`;
}
}
function formatSpeed(bytesPerSec) {
if (!bytesPerSec || bytesPerSec <= 0) return "0 MB/s";
@@ -235,7 +235,6 @@ function streamURL(hash, index = 0) {
<!-- 💡 HTML ve stil kısmı aynı kalıyor -->
<section class="files">
<h2>Transfers</h2>
@@ -266,7 +265,9 @@ function streamURL(hash, index = 0) {
{#if t.thumbnail}
<img src={`${API}${t.thumbnail}`} alt="thumb" class="thumb" />
{:else}
<div class="thumb placeholder">📷</div>
<div class="thumb placeholder">
<i class="fa-regular fa-image"></i>
</div>
{/if}
<div class="torrent-info">
@@ -383,7 +384,10 @@ function streamURL(hash, index = 0) {
</button>
<a
href={streamURL(selectedVideo.infoHash, selectedVideo.fileIndex)}
href={streamURL(
selectedVideo.infoHash,
selectedVideo.fileIndex
)}
download={selectedVideo.name}
class="control-btn"
title="Download"