Skip to content
This repository has been archived by the owner on Sep 28, 2024. It is now read-only.

Commit

Permalink
Fix bug
Browse files Browse the repository at this point in the history
  • Loading branch information
EsotericEnderman committed Jun 29, 2024
1 parent 755cbb0 commit 8714201
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions src/scripts/remove-loading-videos.ts
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,11 @@ export function removeLoadingVideos() {
let archivedVideoFilePath = split.join("")
archivedVideoFilePath += ".mp4";

if (existsSync(archivedVideoFilePath)) {
console.log("Archive for video " + fullFilePath + " already exists, skipping.")
continue;
}

console.log("Removing video " + fullFilePath + " and archiving it at " + archivedVideoFilePath + ".");

writeFileSync(archivedVideoFilePath, content);
Expand Down

0 comments on commit 8714201

Please sign in to comment.