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 new file mode 100644 index 0000000..0bf0bc1 --- /dev/null +++ b/src/config.lua @@ -0,0 +1 @@ +-- stuff for the config files diff --git a/src/main.lua b/src/main.lua new file mode 100644 index 0000000..9cf9da2 --- /dev/null +++ b/src/main.lua @@ -0,0 +1 @@ +require"config" \ No newline at end of file diff --git a/src/props.lua b/src/props.lua new file mode 100644 index 0000000..2f07bb0 --- /dev/null +++ b/src/props.lua @@ -0,0 +1,24 @@ +-- constants, defaults, and other shit +constants = { + defaults = { + dirs = { + mpv = { + linux = { + "~/.config/mpv/", + "~/.mpv/" + } + } + } + } +} + +default_conf = { + configjson = [[ + { + "history": { + "save_history": true + } + } + ]] +} + 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