Skip to content

Commit

Permalink
Add seenFiles to setup()
Browse files Browse the repository at this point in the history
  • Loading branch information
Arasteh authored Dec 30, 2024
1 parent b2cfc91 commit e381d0d
Showing 1 changed file with 10 additions and 0 deletions.
10 changes: 10 additions & 0 deletions index.html
Original file line number Diff line number Diff line change
Expand Up @@ -276,6 +276,16 @@
return match ? match[1] : null;
};

const seenFiles = new Set();
results = results.filter(item => {
const fileKey = posterMode.value ? extractFileName(item.poster) : extractFileName(item.logo);
if (fileKey && !seenFiles.has(fileKey)) {
seenFiles.add(fileKey);
return true; // اولین بار دیده شده، نگهش می‌داریم
}
return false; // قبلاً دیده شده، حذف می‌کنیم
});

const isShowMore = ref(false);
const showMore = () => {
isShowMore.value = true;
Expand Down

0 comments on commit e381d0d

Please sign in to comment.