commit c20779d54292d887ec108b21f1c345dcefdf422a Author: Isaac Shoebottom Date: Mon Sep 26 19:57:17 2022 -0300 Initial commit diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..75ade27 --- /dev/null +++ b/.gitignore @@ -0,0 +1,3 @@ +*.mp4 +*.txt +max.js diff --git a/dl.ps1 b/dl.ps1 new file mode 100644 index 0000000..c4c12a5 --- /dev/null +++ b/dl.ps1 @@ -0,0 +1,6 @@ +$Output = [int] (Get-ChildItem -Exclude *.ps1, *.txt, *.html, *.js, *.css | Select-Object BaseName -Last 1 | Select-Object -ExpandProperty BaseName) +$Output++ +$Output = $Output.ToString().PadLeft(5, '0') + ".mp4" +yt-dlp.exe $args[0] -o $Output + +./generate-max.ps1 \ No newline at end of file diff --git a/generate-max.ps1 b/generate-max.ps1 new file mode 100644 index 0000000..9806d55 --- /dev/null +++ b/generate-max.ps1 @@ -0,0 +1,5 @@ +$count = Get-ChildItem -Path ./* -Include *.mp4 | Measure-Object | Select-Object -ExpandProperty Count +$declaration = "const MAX = " +$string = $declaration + $count + +$string | Out-File -Encoding utf8 -FilePath ".\max.js" \ No newline at end of file diff --git a/index.html b/index.html new file mode 100644 index 0000000..afb3c5d --- /dev/null +++ b/index.html @@ -0,0 +1,147 @@ + + + Click for memes + + + + + + + +

Click button to see new video

+ + + + + + + + + +

Click player to start memes

+ + + + + + \ No newline at end of file diff --git a/text-dl.ps1 b/text-dl.ps1 new file mode 100644 index 0000000..7adefd3 --- /dev/null +++ b/text-dl.ps1 @@ -0,0 +1,3 @@ +foreach($line in Get-Content $args[0]) { + .\dl.ps1 $line +}