Commit Graph
11 Commits
Author SHA1 Message Date
sudacode dd50f3eaad Add LRU caching for video info and title truncation
- Implemented an LRU cache for video information with a maximum size of 100 entries to improve performance.
- Added a function to truncate video titles to a specified maximum length for better display.
- Updated the `get_video_info` function to utilize the cache, reducing redundant data fetching.
- Enhanced the `build_osd_row` function to use truncated titles.
- Introduced a new function to sync the video queue with mpv's internal playlist on load and playback restart events.
2026-01-18 21:43:06 -08:00
sudacode 9d1b6d7eab fix for when categories are not set
Luacheck / luacheck (push) Failing after 7m3s
2025-03-04 22:16:06 -08:00
sudacode c84eabf6c2 Update 2025-02 (#22)
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
2025-02-16 14:17:15 -08:00
sudacode 725ef8db36 fix: save_queue_alt function
Luacheck / luacheck (push) Successful in 5s
2024-09-15 01:33:37 -07:00
sudacode f89f852201 minor update
Luacheck / luacheck (push) Successful in 4s
- add message on screen when waiting for video info
- remove osd messages when printing queue
2024-09-10 01:46:55 -07:00
sudacode 6abfe30d44 update readme
Luacheck / luacheck (push) Successful in 5s
2024-09-09 23:40:15 -07:00
sudacode 4fda62f588 update save_queue function and add alt command (#21)
- add option to save full or unwatched videos only
- fix when only 1 valid video
- fix error handling
- show messages on save/load
2024-09-09 23:38:43 -07:00
sudacode c67ac189b0 add play_selected_video and update show_error 2023-08-06 12:11:34 -07:00
sudacode 4ad1974e64 fix user options not being read before style configuration 2023-08-06 00:56:38 -07:00
sudacode 29fc46fd41 refactor script 2023-08-05 17:18:35 -07:00
sudacode 7ad4f264d1 refactor script
- clean up code
- add nil checks instead of boolean
- add script-message to allow print and add_to_queue functions to be called from outside
2023-08-05 17:02:21 -07:00