Update 2025-02 (#22)
Some checks failed
Luacheck / luacheck (push) Failing after 2m14s

* add documentation and update get_video_info

- change to json dump and use mpv native json reader

* add additional fields for history database

* update config file and readme

* clean up code

* disable debug
This commit is contained in:
Kyle Yasuda 2025-02-16 14:17:15 -08:00 committed by GitHub
parent 725ef8db36
commit c84eabf6c2
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
4 changed files with 856 additions and 657 deletions

1
.gitignore vendored
View File

@ -1,2 +1,3 @@
test.sh
.git/*
.luarc.json

View File

@ -66,7 +66,7 @@ This script requires the following software to be installed on the system
### Default Options
- `default_save_method - unwatched`: The default method to use when saving the
queue. Valid options are `unwatched` or `all`. Defaults to `unwatched`
queue. Valid options are `unwatched` or `all`. Defaults to `unwatched`
- Whichever option is chosen is the default method for the `save_queue`
binding, and the other method will be bound to `save_queue_alt`
- `browser - firefox`: The browser to use when opening a video or channel page
@ -84,7 +84,7 @@ This script requires the following software to be installed on the system
- `ytdlp_file_format - mp4`: The preferred file format for downloaded videos
- `ytdlp_output_template - %(uploader)s/%(title)s.%(ext)s`: The [yt-dlp output template string](https://github.com/yt-dlp/yt-dlp#output-template)
- Full path with the default `download_directory` is: `~/videos/YouTube/<uploader>/<title>.<ext>`
- `use_history_db - no`: Enable watch history tracking through integration with [mpv-youtube-queue-server](https://gitea.suda.codes/sudacode/mpv-youtube-queue-server)
- `use_history_db - no`: Enable watch history tracking and remote video queuing through integration with [mpv-youtube-queue-server](https://gitea.suda.codes/sudacode/mpv-youtube-queue-server)
- `backend_host`: ip or hostname of the backend server
- `backend_port`: port to connect to for the backend server

View File

@ -13,7 +13,7 @@ play_previous_in_queue=ctrl+p
print_current_video=ctrl+P
print_queue=ctrl+q
save_queue=ctrl+s
save_full_queue=ctrl+S
save_full_alt=ctrl+S
remove_from_queue=ctrl+x
play_selected_video=ctrl+ENTER
browser=firefox

File diff suppressed because it is too large Load Diff