TVDB özelliği eklendi.
This commit is contained in:
@@ -3,6 +3,7 @@
|
||||
import { API, apiFetch } from "../utils/api.js";
|
||||
import { cleanFileName } from "../utils/filename.js";
|
||||
import { refreshMovieCount } from "../stores/movieStore.js";
|
||||
import { refreshTvShowCount } from "../stores/tvStore.js";
|
||||
let files = [];
|
||||
let showModal = false;
|
||||
let selectedVideo = null;
|
||||
@@ -65,6 +66,7 @@ let isPlaying = false;
|
||||
allSelected = files.length > 0 && selectedItems.size === files.length;
|
||||
tryAutoPlay();
|
||||
refreshMovieCount();
|
||||
refreshTvShowCount();
|
||||
}
|
||||
function formatSize(bytes) {
|
||||
if (!bytes) return "0 MB";
|
||||
@@ -336,7 +338,7 @@ let isPlaying = false;
|
||||
|
||||
selectedItems = new Set(failed);
|
||||
allSelected = failed.length > 0 && failed.length === files.length;
|
||||
await refreshMovieCount();
|
||||
await Promise.all([refreshMovieCount(), refreshTvShowCount()]);
|
||||
}
|
||||
onMount(async () => {
|
||||
await loadFiles(); // önce dosyaları getir
|
||||
|
||||
Reference in New Issue
Block a user