From 155edca57fbbc473469398fb144d5ca665e9ade2 Mon Sep 17 00:00:00 2001 From: elburg Date: Sat, 23 Mar 2024 23:42:24 -0700 Subject: [PATCH 1/2] oh hey, sum muuns :D --- src/config.lua | 1 + src/main.lua | 3 +++ src/props.lua | 19 +++++++++++++++++++ 3 files changed, 23 insertions(+) create mode 100644 src/config.lua create mode 100644 src/main.lua create mode 100644 src/props.lua diff --git a/src/config.lua b/src/config.lua new file mode 100644 index 0000000..032648f --- /dev/null +++ b/src/config.lua @@ -0,0 +1 @@ +-- stuff for the config files \ No newline at end of file diff --git a/src/main.lua b/src/main.lua new file mode 100644 index 0000000..5de4c4e --- /dev/null +++ b/src/main.lua @@ -0,0 +1,3 @@ +function main(options) + print() +end \ No newline at end of file diff --git a/src/props.lua b/src/props.lua new file mode 100644 index 0000000..fa00a18 --- /dev/null +++ b/src/props.lua @@ -0,0 +1,19 @@ +-- constants, defaults, and other shit +constants = { + defaults = { + dirs = { + mpv = { + linux = { + "~/.config/mpv/", + "~/.mpv/" + } + } + } + } +} + +default_conf = { + configjson = [[ + + ]] +} \ No newline at end of file From 74011b078b08d17d08ac03dc161dc4c12719d06f Mon Sep 17 00:00:00 2001 From: elburg Date: Sun, 24 Mar 2024 00:19:53 -0700 Subject: [PATCH 2/2] 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