ChandimaPrabath commited on
Commit
ccd0237
·
1 Parent(s): 18d2a16
Files changed (1) hide show
  1. Instance.py +1 -1
Instance.py CHANGED
@@ -145,7 +145,7 @@ class Instance:
145
 
146
  def find_music_path(self, title):
147
  for directory in self.file_structure:
148
- if directory['type'] == 'directory' and directory['path'] == 'music':
149
  for sub_directory in directory['contents']:
150
  if sub_directory['type'] == 'directory':
151
  for item in sub_directory['contents']:
 
145
 
146
  def find_music_path(self, title):
147
  for directory in self.file_structure:
148
+ if directory['type'] == 'directory' and directory['path']:
149
  for sub_directory in directory['contents']:
150
  if sub_directory['type'] == 'directory':
151
  for item in sub_directory['contents']: