更新文件: getwebdavlist.exe, webdav_simulator.arm64, getalist.exe, getwebdavlist.py, xy115-music.txt.xz 等16个文件

This commit is contained in:
ZJP Monitor
2025-05-23 22:36:10 +08:00
parent eb794484f2
commit 431c7e8bbc
16 changed files with 32 additions and 10 deletions

View File

@ -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:])