From 74011b078b08d17d08ac03dc161dc4c12719d06f Mon Sep 17 00:00:00 2001 From: elburg Date: Sun, 24 Mar 2024 00:19:53 -0700 Subject: [PATCH] got a testing script and stuff to the lua files adjusted the gitignore --- .gitignore | 3 ++- src/config.lua | 2 +- src/main.lua | 4 +--- src/props.lua | 9 +++++++-- test.sh | 11 +++++++++++ 5 files changed, 22 insertions(+), 7 deletions(-) create mode 100644 test.sh diff --git a/.gitignore b/.gitignore index 0667445..51f2bbb 100644 --- a/.gitignore +++ b/.gitignore @@ -40,4 +40,5 @@ luac.out *.x86_64 *.hex - +# Testing directory for mpv-alpha +.test/ diff --git a/src/config.lua b/src/config.lua index 032648f..0bf0bc1 100644 --- a/src/config.lua +++ b/src/config.lua @@ -1 +1 @@ --- stuff for the config files \ No newline at end of file +-- stuff for the config files diff --git a/src/main.lua b/src/main.lua index 5de4c4e..9cf9da2 100644 --- a/src/main.lua +++ b/src/main.lua @@ -1,3 +1 @@ -function main(options) - print() -end \ No newline at end of file +require"config" \ No newline at end of file diff --git a/src/props.lua b/src/props.lua index fa00a18..2f07bb0 100644 --- a/src/props.lua +++ b/src/props.lua @@ -14,6 +14,11 @@ constants = { default_conf = { configjson = [[ - + { + "history": { + "save_history": true + } + } ]] -} \ No newline at end of file +} + diff --git a/test.sh b/test.sh new file mode 100644 index 0000000..2be4245 --- /dev/null +++ b/test.sh @@ -0,0 +1,11 @@ +# please have yt-dlp +mkdir -p .test/ + +yt-dlp \ + --no-write-info-json \ + --output "./.test/video.mp4" \ + --remux-video "mp4" \ + -w \ + "https://www.youtube.com/watch?v=T6_81D9HQdU" + +mpv -v --load-scripts=no --script=./src/ ./.test/video.mp4 \ No newline at end of file