更新文件: getwebdavlist.exe, webdav_simulator.arm64, getalist.exe, getwebdavlist.py, xy115-music.txt.xz 等16个文件
This commit is contained in:
@ -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:])
|
||||
|
Reference in New Issue
Block a user