diff --git a/input.conf b/input.conf index abeae3d..8089ec1 100644 --- a/input.conf +++ b/input.conf @@ -40,8 +40,8 @@ MBTN_MID cycle fullscreen # numeric value accordingly WHEEL_UP add volume 2 WHEEL_DOWN add volume -2 -WHEEL_LEFT seek -10 exact -WHEEL_RIGHT seek 10 exact +WHEEL_LEFT seek -5 exact +WHEEL_RIGHT seek 5 exact ## Seek units are in seconds, but note that these are limited by keyframes RIGHT seek 5 exact @@ -59,6 +59,9 @@ Shift+LEFT seek -30 exact Shift+UP no-osd seek 5 exact Shift+DOWN no-osd seek -5 exact +Ctrl+UP add sub-pos -1 +Ctrl+DOWN add sub-pos 1 + # Skip to previous/next subtitle (subject to some restrictions; see manpage) #Ctrl+LEFT no-osd sub-seek -1 #Ctrl+RIGHT no-osd sub-seek 1 @@ -107,6 +110,7 @@ ENTER cycle fullscreen #z add sub-delay -0.1 # subtract 100 ms delay from subs #Z add sub-delay +0.1 # add x add sub-delay +0.1 # same as previous binding (discouraged) +c set sub-delay 0 ctrl+= add audio-delay 0.100 # this changes audio/video sync ctrl+- add audio-delay -0.100 #9 add volume -2 diff --git a/script-opts/assrt.conf.example b/script-opts/assrt.conf.example new file mode 100644 index 0000000..a0d481a --- /dev/null +++ b/script-opts/assrt.conf.example @@ -0,0 +1,13 @@ +# 菜单外观 +## 设置多少秒后自动关闭菜单,设为0时不关闭 +auto_close=0 +## 设置每页显示字幕条数 +max_lines=15 +## 设置菜单字体大小 +font_size=24 + +# 设置是否使用https +use_https=yes + +# 自定义API Token, 在https://assrt.net/usercp.php注册后免费使用 +# api_token= \ No newline at end of file diff --git a/scripts/autoload.lua b/scripts/autoload.lua index 618dbed..7150abb 100644 --- a/scripts/autoload.lua +++ b/scripts/autoload.lua @@ -2,18 +2,21 @@ -- the currently played file. It does so by scanning the directory a file is -- located in when starting playback. It sorts the directory entries -- alphabetically, and adds entries before and after the current file to --- the internal playlist. (It stops if the it would add an already existing +-- the internal playlist. (It stops if it would add an already existing -- playlist entry at the same position - this makes it "stable".) -- Add at most 5000 * 2 files when starting a file (before + after). --[[ -To configure this script use file autoload.conf in director script-opts (the "script-opts" +To configure this script use file autoload.conf in directory script-opts (the "script-opts" directory must be in the mpv configuration directory, typically ~/.config/mpv/). + Example configuration would be: -disabled=false -images=false -videos=true -audio=true + +disabled=no +images=no +videos=yes +audio=yes + --]] MAXENTRIES = 5000 @@ -214,4 +217,4 @@ function find_and_add_entries() add_files_at(pl_current, append[-1]) end -mp.register_event("start-file", find_and_add_entries) \ No newline at end of file +mp.register_event("start-file", find_and_add_entries)