Add new script link_directory

This commit is contained in:
2024-04-03 21:59:26 +08:00
parent abd4a19573
commit ef12172c7b
4 changed files with 109 additions and 1 deletions

View File

@@ -84,7 +84,7 @@ def get_m4a_files(dir: str, r: bool) -> List[str]:
if isdir(file):
if r:
re += get_m4a_files(file, r)
elif file.endswith('.m4a') or file.endswith(".flac"):
elif file.endswith('.m4a') or file.endswith(".flac") or file.endswith(".mp3"):
re.append(file)
return re