Commit Graph

83 Commits

Author SHA1 Message Date
42d1f7f7d6 fix load_queue command
- fix parsing/conversion to table from json list
2024-09-08 22:12:53 -07:00
827eb80d6e
add save/load queue functions
Some checks failed
Luacheck / luacheck (push) Failing after 5s
2024-09-08 01:40:04 -07:00
ksyasuda
89cf199a87
add load-file even listener for adding to history db
Some checks failed
Luacheck / luacheck (push) Failing after 4s
2024-09-06 02:43:09 -07:00
7916e3a1bc update readme 2024-09-05 23:30:17 -07:00
b544ca8d6f appease the linter 2024-09-05 23:25:24 -07:00
0bcc7334cb disable history db by default
- change default config
- add back line to prevent from running when disabled
2024-09-05 23:17:03 -07:00
2f7756d1fb squash more bugs
- add debug
- fix history db for repeated calls and first play
- fix is file
- change print current video to use full file path if showing a file
- remove unused functions
- fix video title when selecting video from list
2024-09-05 23:12:09 -07:00
ksyasuda
ed3d280cda
Squash bugs
Some checks failed
Luacheck / luacheck (push) Failing after 13s
- update strip command to remove newline characters
- add history db function call to playback restart listener to catch
first video
2024-09-05 04:12:27 -07:00
ksyasuda
e484aa5068
add option to disable history db function 2024-09-04 11:47:40 -07:00
ksyasuda
62964016e4
Add history db
- Sends video data to backend server on configured port and inserts into
a mysql database
2024-09-04 11:44:02 -07:00
ksyasuda
0739b93e3a
remove print statements in non logging functions
Some checks failed
Luacheck / luacheck (push) Has been cancelled
2024-08-28 18:40:12 -07:00
Kyle Yasuda
870f7473cf
Fix reorder queue (#19)
Some checks are pending
Luacheck / luacheck (push) Waiting to run
* Fix reorder queue function for when from_index < to_index

* update default config

* Fix clipboard function and linting errors

* Update README.md with improved descriptions and installation instructions
2024-08-28 18:34:41 -07:00
Kyle Yasuda
84a860f596
fix display limit only showing up to half the set size (#18)
All checks were successful
Luacheck / luacheck (push) Successful in 5s
2023-08-13 19:14:11 -07:00
Kyle Yasuda
392b39c7fc
Fix move video (#17)
* fix the move_video function and add some script-messages
* add gitignore
2023-08-13 18:02:55 -07:00
Kyle Yasuda
fa2014acd6
Dev (#16)
All checks were successful
Luacheck / luacheck (push) Successful in 4s
* convert get_video_info to use mp functions and add menu_timeout option
* add menu_timeout config option
* fix add_to_queue not returning when given invalid url or path
2023-08-09 23:14:00 -07:00
Kyle Yasuda
7b9a061118
add toggle_youtube_queue script-message (#15)
- add new script message to toggle queue instead of just printing
- move variable declarations to the top
2023-08-09 20:18:26 -07:00
ksyasuda
cfc4f94464
add hard space after cursor icon 2023-08-09 18:50:54 -07:00
Kyle Yasuda
554dfd3b67
fix leading spaces on items in print_queue function (#14) 2023-08-09 17:09:02 -07:00
Kyle Yasuda
f0d6143fd2
remove unused functions and clean up code (#13) 2023-08-09 02:04:24 -07:00
Kyle Yasuda
e35aeac422
cleanup/optimize code and squash some bugs (#12)
* cleanup/optimize code and squash some bugs

- change print_queue to use mp.assdraw
- change print_queue function to a toggle
- clean up duplicated code
- squash some bugs

* remove unused function

* make download async and update clipboard function to use mp command

- utilize mp.command_native and command_native_async
- download files in the background

* update default display_limit from 6 -> 10
2023-08-09 01:24:24 -07:00
ksyasuda
3a47cb0d0b
update luacheck workflow 2023-08-09 01:21:40 -07:00
Kyle Yasuda
3814459024
update move cursor functions to allow holding down key (#11) 2023-08-08 02:21:24 -07:00
Kyle Yasuda
a1c2bfd9a7
fix is_file printing error message each time a url is passed (#10)
* fix is_file printing error message each time a url is passed

- remove print to osd on false result
- remove log messages
- change to check if not local file first when adding to queue

* appease the linter
2023-08-08 01:54:07 -07:00
ksyasuda
e88e7f7f1c
update readme 2023-08-08 01:18:55 -07:00
ksyasuda
cdc797f55c
update readme 2023-08-08 01:09:21 -07:00
Kyle Yasuda
b636e0534d
change helper functions to use mpv utils (#9)
- use utils.file_info.is_file to check if the file exits and is a file
- use utils.split_path to split path into directory and filename components
2023-08-08 00:49:31 -07:00
Kyle Yasuda
6ca5de8aa4
fix error due to adding video to queue already surrounded by quotes (#8)
- fix surround with quotes function to only surround with quotes if not already there
- remove quotes before adding to video_queue
2023-08-07 23:43:30 -07:00
Kyle Yasuda
64bde58672
update add_to_queue function to allow adding local files to the queue (#7)
* update add_to_queue function to allow adding local files to the queue
* update functions to work with local files

- change download to do nothing on local file
- change print function to not try to print channel name
- change move cursor up and down to be repeatable
2023-08-07 23:11:51 -07:00
Kyle Yasuda
6e3d782081
add ytdlp_file_format config variable (#6)
- allow choosing preferred file format for downloads
- update readme
2023-08-07 17:46:25 -07:00
Kyle Yasuda
cc8c677e0b
Cleanup code (#5)
* cleanup code

- reorder variables
- set show_errors to true by default
- remove old variable from config file
- update readme
2023-08-07 02:17:05 -07:00
Kyle Yasuda
a39a7c6a95
Create luackeck.yml (#4) 2023-08-07 01:15:05 -07:00
Kyle Yasuda
af81562606
Dev (#3)
* add download_selected_video function
* add ytdlp_output_template to conf file

- add function to download the currently selected video in the queue
- update readme and conf file
- change ordering of options to have keybindings in alphabetical order
2023-08-06 23:30:28 -07:00
ksyasuda
8b4d2639e6 update readme 2023-08-06 20:41:42 -07:00
Kyle Yasuda
f5b5887616
Merge pull request #2 from ksyasuda/dev
update readme
2023-08-06 20:36:34 -07:00
ksyasuda
33918e87d0 update readme 2023-08-06 20:35:33 -07:00
Kyle Yasuda
fd742b00cb
Merge pull request #1 from ksyasuda/remove-from-queue
add remove_from_queue function
2023-08-06 17:41:11 -07:00
ksyasuda
5e038d212e add remove_from_queue function
- add function/binding (ctrl+x) to remove currently selected video from queue
- update readme
- move get_video_info function into YouTubeQueue
2023-08-06 17:31:05 -07:00
c67ac189b0 add play_selected_video and update show_error 2023-08-06 12:11:34 -07:00
ksyasuda
ef5ceaa499 update image 2023-08-06 03:13:18 -07:00
ksyasuda
b20776bce3 update transparency/font size and fix first video caling add to queue repeatedly on skip forward 2023-08-06 03:13:13 -07:00
ksyasuda
a47da19922 update readme 2023-08-06 02:23:12 -07:00
ksyasuda
30ca33ed2d add download_format_str option 2023-08-06 02:23:09 -07:00
ksyasuda
4e4489cf36 add download_format_str option and update icons
- change icons to unicode glyphs
- remove trailing slash from download directory if it exists
- allow configuring file output format during download
2023-08-06 02:22:44 -07:00
ksyasuda
02ad7d708e update icons 2023-08-06 02:16:08 -07:00
ksyasuda
1706bc75ec update default configuration 2023-08-06 01:15:29 -07:00
ksyasuda
abd33346a1 change option names 2023-08-06 01:15:13 -07:00
ksyasuda
bfb7988c70 add check in add to queue function to make sure url is a youtube video 2023-08-06 01:00:42 -07:00
ksyasuda
1bd0aa7c58 Merge branch 'master' of github.com:ksyasuda/mpv-youtube-queue 2023-08-06 00:57:45 -07:00
4ad1974e64 fix user options not being read before style configuration 2023-08-06 00:56:38 -07:00
ksyasuda@umich.edu
654e369940 add show_error config variable and fix add_to_queue to work for playing from command line again 2023-08-05 18:18:12 -07:00