Skip to content

Commit

Permalink
Merge pull request jxxghp#3193 from wikrin/fix_any_files
Browse files Browse the repository at this point in the history
  • Loading branch information
jxxghp authored Nov 22, 2024
2 parents 350f1fa + fe07830 commit 78fc5b7
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions app/modules/filemanager/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -130,7 +130,6 @@ def recommend_name(self, meta: MetaBase, mediainfo: MediaInfo) -> Optional[str]:
)
return str(path)

pass

def save_config(self, storage: str, conf: Dict) -> None:
"""
Expand Down Expand Up @@ -218,7 +217,8 @@ def __any_file(_item: FileItem):
and f".{t.extension.lower()}" in extensions):
return True
elif t.type == "dir":
return __any_file(t)
if __any_file(t):
return True
return False

# 返回结果
Expand Down

0 comments on commit 78fc5b7

Please sign in to comment.