您需要先安装一个扩展,例如 篡改猴、Greasemonkey 或 暴力猴,之后才能安装此脚本。
您需要先安装一个扩展,例如 篡改猴 或 暴力猴,之后才能安装此脚本。
您需要先安装一个扩展,例如 篡改猴 或 暴力猴,之后才能安装此脚本。
您需要先安装一个扩展,例如 篡改猴 或 Userscripts ,之后才能安装此脚本。
您需要先安装一款用户脚本管理器扩展,例如 Tampermonkey,才能安装此脚本。
您需要先安装用户脚本管理器扩展后才能安装此脚本。
有时候有的片子已看过,但不记得是否看过。本脚本配合Everything 和 python3 搜索本地文件和显示搜索结果
下载与安装python3: https://www.python.org/downloads/ 国内下载 https://pc.qq.com/search.html#!keyword=python3
新建 videoSearch.py, 内容如下:
#coding=utf-8
import sys,os
import subprocess
number = sys.argv[1][8:]
#number = sys.argv[1]
print("number",number)
print(sys.getdefaultencoding())
def local_search_video(number):
cmd = "es -highlight %s"%(number)
ret = subprocess.run(cmd)
result = os.popen(cmd)
if(len(result.read()) <= 2):
return -1
return ret.returncode
def txt_search_video(number):
# 修改为 文件文本存储路径: 示例 D:/video/丑.txt D:/video/垃圾.txt
txt_dir="D:/video/*"
cmd = "findstr /a:2 /S -I /c:%s %s"%(number,txt_dir)
ret = subprocess.run(cmd)
cmd2 = "grep --color -irn %s %s*"%(number,txt_dir)
ret2 = subprocess.run(cmd2)
return -ret.returncode
local_ret = local_search_video(number)
txt_ret = txt_search_video(number)
print("local_file_search:%d txt_search:%d"%(local_ret,txt_ret))
if local_ret and txt_ret:
print("No")
exit()
else:
str="\n--------------------------------> %s \n"%(number)
print(str)
input("press any key")
exit()
解压ES-1.1.0.23.zip
将es.exe 和 videoSearch.py 复制到 C:\Windows\System32
新建注册(不可用)表文件browser_call_cmd.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 /c videoSearch.py %1"
双击运行
非常重要:
通过搜索指定目录文件,查看是否已经看过. 如本人通过.txt记录看过视频:
D:\video
丑.txt 垃圾剧情.log 一般_60.txt 极品_90.txt
配置目录 与 文件 在D盘下新建目录video,如下:
D:\video
丑.txt
极品.txt
...自己可以新建任何.txt, 或其它任意文件后缀名 xxx.log
如果要隐藏深一点,更改目录,可以修改脚本videoSearch.py 中 txt_dir="xxx"
txt_dir="D:\video\*" --> 更改自定义目录
txt_dir="D:\学习资料\考研\数据\记录事件\.111\*"
下载与安装cygwin64, 支持grep.exe命令搜索文本(更好的搜索与显示, 非必要步骤) 国内下载 https://pc.qq.com/search.html#!keyword=cygwin64
将grep.exe 拷贝到 C:\Windows\System32
将C:\cygwin64\bin 注册(不可用)到Path环境变量中
QingJ © 2025
镜像随时可能失效,请加Q群300939539或关注我们的公众号极客氢云获取最新地址