Skip to content

Commit

Permalink
fix: Flake8 issue
Browse files Browse the repository at this point in the history
  • Loading branch information
pabera committed Mar 15, 2024
1 parent cad1cad commit 1477913
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion src/jukebox/jukebox/playlistgenerator.py
Original file line number Diff line number Diff line change
Expand Up @@ -275,7 +275,12 @@ def get_directory_content(self, path='.'):
logger.error(f" {e.__class__.__name__}: {e}")
else:
for m in content:
self.playlist.append({'type': TYPE_DECODE[m.filetype], 'name': m.name, 'path': m.path, 'relpath': os.path.relpath(m.path, self._music_library_base_path)})
self.playlist.append({
'type': TYPE_DECODE[m.filetype],
'name': m.name,
'path': m.path,
'relpath': os.path.relpath(m.path, self._music_library_base_path)
})

def _parse_nonrecusive(self, path='.'):
return [x.path for x in self._get_directory_content(path) if x.filetype != TYPE_DIR]
Expand Down

0 comments on commit 1477913

Please sign in to comment.