更新文件: getwebdavlist.exe, webdav_simulator.arm64, getalist.exe, getwebdavlist.py, xy115-music.txt.xz 等16个文件
This commit is contained in:
BIN
get115list.exe
BIN
get115list.exe
Binary file not shown.
@ -18,6 +18,7 @@ fullscan=True
|
||||
def walk_dir(fs,f,replaceroot):
|
||||
dirlist=list()
|
||||
try:
|
||||
#print("try listdir")
|
||||
file_list = fs.listdir_attr()
|
||||
except KeyboardInterrupt:
|
||||
print("get ctrl+c, exit")
|
||||
@ -26,19 +27,23 @@ def walk_dir(fs,f,replaceroot):
|
||||
traceback.print_exc()
|
||||
time.sleep(1)
|
||||
return
|
||||
filetype_re=re.compile(r'\.(png|jpg|jpeg|bmp|gif|doc|nfo|flac|mp3|wma|ape|cue|wav|dst|dff|dts|ac3|eac3|txt)$')
|
||||
#filetype_re=re.compile(r'\.(png|jpg|jpeg|bmp|gif|doc|nfo|flac|mp3|wma|ape|cue|wav|dst|dff|dts|ac3|eac3|txt|db|pdf)$')
|
||||
filetype_re=re.compile(r'\.(png|jpg|jpeg|bmp|gif|doc|nfo|txt|db|pdf)$')
|
||||
for file_obj in file_list:
|
||||
if not file_obj.is_directory:
|
||||
path = file_obj.path
|
||||
if filetype_re.search(path) != None or "BDMV" in path:
|
||||
continue
|
||||
size=int(file_obj.size)
|
||||
if size>0 and size<4096:
|
||||
continue
|
||||
paths = path.split("/")
|
||||
if replaceroot!="":
|
||||
if len(paths)>=3:
|
||||
path=os.path.join("/",replaceroot,*paths[2:])
|
||||
|
||||
print(path+"\t"+str(file_obj.size))
|
||||
f.write(path+"\t"+str(file_obj.size)+"\n")
|
||||
print(f"{path}\t{file_obj.size}")
|
||||
f.write(f"{path}\t{file_obj.size}\n")
|
||||
f.flush()
|
||||
else:
|
||||
dirlist.append(file_obj.path)
|
||||
|
BIN
getalist.exe
BIN
getalist.exe
Binary file not shown.
@ -59,7 +59,7 @@ def walk(headers:dict, api_url:str, current_path="/", output_file=None, replacer
|
||||
print(f"contentlist len:{len(items)}")
|
||||
# items=client.list(current_path)
|
||||
|
||||
filetype_re=re.compile(r'\.(png|jpg|jpeg|bmp|gif|doc|nfo|flac|mp3|wma|ape|cue|wav|dst|dff|dts|ac3|eac3|txt)$')
|
||||
filetype_re=re.compile(r'\.(png|jpg|jpeg|bmp|gif|doc|nfo|flac|mp3|wma|ape|cue|wav|dst|dff|dts|ac3|eac3|txt|db|pdf)$')
|
||||
# print(items)
|
||||
for item in items:
|
||||
full_path = f"{current_path}/{item['name']}".replace("//", "/")
|
||||
@ -102,7 +102,9 @@ def walk(headers:dict, api_url:str, current_path="/", output_file=None, replacer
|
||||
if filetype_re.search(full_path) != None or "BDMV" in full_path:
|
||||
continue
|
||||
# size = client.info(full_path).get('size', 0)
|
||||
size = item["size"]
|
||||
size = int(item["size"])
|
||||
if size>0 and size<4096:
|
||||
continue
|
||||
if replaceroot!=None:
|
||||
if replaceroot=="":
|
||||
full_path=os.path.join("/",*full_path.split("/")[2:])
|
||||
|
Binary file not shown.
@ -29,7 +29,7 @@ def walk(client, current_path="/", output_file=None, replaceroot=None, lastpath=
|
||||
if failcount>10:
|
||||
sys.exit(1)
|
||||
return
|
||||
filetype_re=re.compile(r'\.(png|jpg|jpeg|bmp|gif|doc|nfo|flac|mp3|wma|ape|cue|wav|dst|dff|dts|ac3|eac3|txt)$')
|
||||
filetype_re=re.compile(r'\.(png|jpg|jpeg|bmp|gif|doc|nfo|flac|mp3|wma|ape|cue|wav|dst|dff|dts|ac3|eac3|txt|db|pdf)$')
|
||||
# print(items)
|
||||
for item in items[1:]:
|
||||
full_path = f"{current_path}/{item}".replace("//", "/")
|
||||
@ -63,7 +63,9 @@ def walk(client, current_path="/", output_file=None, replaceroot=None, lastpath=
|
||||
else:
|
||||
if filetype_re.search(full_path) != None or "BDMV" in full_path:
|
||||
continue
|
||||
size = client.info(full_path).get('size', 0)
|
||||
size = int(client.info(full_path).get('size', 0))
|
||||
if size>0 and size<4096:
|
||||
continue
|
||||
if replaceroot!=None:
|
||||
if replaceroot=="":
|
||||
full_path=os.path.join("/",*full_path.split("/")[2:])
|
||||
|
2
run.bat
2
run.bat
@ -1,3 +1,3 @@
|
||||
@echo off
|
||||
|
||||
webdav_simulator.exe --alist_config "http://192.168.1.2:5678/,,#http://192.168.1.3:5678,alist-1234-5678," "xy115-all.txt.xz#xy-dy.txt.xz#xy-dsj.txt.xz"
|
||||
webdav_simulator.exe --alist_config "http://192.168.1.2:5678/,,#http://192.168.1.3:5678,alist-1234-5678," "xy115-all.txt.xz#xy-dy.txt.xz#xy-dsj.txt.xz#xy115-music.txt.xz"
|
||||
|
10
run.sh
10
run.sh
@ -18,4 +18,12 @@ cd "${progdir}"
|
||||
mkdir tmp
|
||||
chmod 777 tmp
|
||||
export TMPDIR=tmp
|
||||
./webdav_simulator.amd64 --alist_config "http://192.168.1.2:5678,,#http://192.168.1.3:5678,alist-1234-5678," "xy115-all.txt.xz#xy-dy.txt.xz#xy-dsj.txt.xz"
|
||||
unset LD_PRELOAD
|
||||
machine=$(uname -m)
|
||||
if [[ "$machine" == *"arm"* || "$machine" == *"aarch"* ]]; then
|
||||
arch="arm64"
|
||||
else
|
||||
arch="amd64"
|
||||
fi
|
||||
echo "arch:$arch"
|
||||
./webdav_simulator.$arch --alist_config "http://192.168.1.2:5678,,#http://192.168.1.3:5678,alist-1234-5678," "xy115-all.txt.xz#xy-dy.txt.xz#xy-dsj.txt.xz#xy115-music.txt.xz"
|
||||
|
Binary file not shown.
Binary file not shown.
Binary file not shown.
BIN
whoosh_index/MAIN_u3baw4lts4z2wa9m.seg
Normal file
BIN
whoosh_index/MAIN_u3baw4lts4z2wa9m.seg
Normal file
Binary file not shown.
BIN
whoosh_index/_MAIN_6.toc
Normal file
BIN
whoosh_index/_MAIN_6.toc
Normal file
Binary file not shown.
@ -10,8 +10,13 @@
|
||||
"time": 1747616619.0
|
||||
},
|
||||
"xy-dsj.txt.xz": {
|
||||
"md5": "375b6dd8a1eccb2ac32a90d9d1b1e925",
|
||||
"md5": "a3eae61092809e8ab8a6f35e20abf31c",
|
||||
"size": 1815364,
|
||||
"time": 1747948825.0
|
||||
},
|
||||
"xy115-music.txt.xz": {
|
||||
"md5": "7eaf2fb042fd5ef690b1560831a76b4b",
|
||||
"size": 2431968,
|
||||
"time": 1747999250.0
|
||||
}
|
||||
}
|
BIN
xy-dsj.txt.xz
BIN
xy-dsj.txt.xz
Binary file not shown.
BIN
xy115-music.txt.xz
Normal file
BIN
xy115-music.txt.xz
Normal file
Binary file not shown.
Reference in New Issue
Block a user