javdb本地视频搜索

有时候有的片子已看过,但不记得是否看过。本脚本配合Everything,搜索本地文件和显示搜索结果

Author
1637664504
Daily installs
0
Total installs
369
Ratings
2 0 0
Version
0.4
Created
2022-04-25
Updated
2023-08-03
License
none
Applies to

1.安装everything命令行es.exe 与 搜索脚本

es下载: https://www.voidtools.com/ES-1.1.0.23.zip

新建bat脚本: videoSearch.bat

set str=%1
set number=%str:~8%
es -highlight %number%

findstr /a:2 /S -I /c:%number% D:\video\*
if %errorlevel% == 0 (goto hasfind) else (goto notfind)

:notfind
echo "not find"

:hasfind
echo "has find"
  1. 解压ES-1.1.0.23.zip

  2. 将es.exe 和 videoSearch.bat 复制到 C:\Windows\System32

2.添加注册表

将下面代码拷贝到桌面 demo.reg, 双击运行

Windows Registry Editor Version 5.00

[HKEY_CLASSES_ROOT\openExe]
@="URL:openExe Protocol"
"URL Protocol"=""

[HKEY_CLASSES_ROOT\openExe\DefaultIcon]
@="cmd.exe,1"

[HKEY_CLASSES_ROOT\openExe\shell]

[HKEY_CLASSES_ROOT\openExe\shell\open]

[HKEY_CLASSES_ROOT\openExe\shell\open\command]
@="cmd /k videoSearch.bat %1"

3.安装此油猴脚本

4.运行Everything

非常重要: 只有先运行everything服务,es.exe搜索才能生效。

5.注意事项

javdb的网站会定期更新,实测匹配网址 javdb*/v/*不触发搜索。 故搜索不生效时,需要小伙伴自行检查/更新 油猴脚本的网址:

// @match        https://javdb005.com/v/*
// @match        https://javdb006.com/v/*
// @match        https://javdb007.com/v/*
...

6.搜索文件

1.默认配置 在D盘下新建目录video,如下:

D:\video  注:看过的视频添加到对应文件中
  丑.txt
  极品.txt
  ...自己可以新建任何.txt, 或其它任意文件 xxx.bin , ???.out

2.如果要隐藏深一点,更改目录,可以修改脚本videoSearch.bat

 findstr /a:2 /S -I /c:%number% D:\video\* --> 改目录

7.实际效果如附件

参考: