add ping check

- fix artist downloader function
This commit is contained in:
geoffrey45
2022-06-20 09:49:16 +03:00
parent 3cf44759b5
commit 12c8406a0d
6 changed files with 48 additions and 15 deletions
+2 -2
View File
@@ -14,11 +14,11 @@ class Dir:
is_sym: bool
def get_folder_track_count(foldername: str) -> int:
def get_folder_track_count(path: str) -> int:
"""
Returns the number of files associated with a folder.
"""
tracks = instances.tracks_instance.find_tracks_inside_path_regex(foldername)
tracks = instances.tracks_instance.find_tracks_inside_path_regex(path)
return len(tracks)