Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 2 additions & 1 deletion spotrec.py
Original file line number Diff line number Diff line change
Expand Up @@ -337,8 +337,9 @@ def run(self):

# Create output folder if necessary
# If filename_pattern specifies subfolder(s) the track name is only the basename while the dirname is the subfolder path
# Note, the basename()-call on the track name ensures stripping of leading slashes in case these were reported
self.out_dir = os.path.join(
_output_directory, os.path.dirname(self.parent.track))
_output_directory, os.path.basename(os.path.dirname(self.parent.track)))
Path(self.out_dir).mkdir(
parents=True, exist_ok=True)

Expand Down