Skip to content

Commit

Permalink
Cleaned up Soundtrap issues.
Browse files Browse the repository at this point in the history
  • Loading branch information
spacetimeengineer committed Dec 9, 2024
1 parent 716df49 commit 0d75e19
Showing 1 changed file with 1 addition and 4 deletions.
5 changes: 1 addition & 4 deletions pbp/meta_gen/gen_soundtrap.py
Original file line number Diff line number Diff line change
Expand Up @@ -91,19 +91,16 @@ def run(self):
if scheme == "file" or scheme == "":
#parsed_uri = urllib.parse.urlparse(self.audio_loc)
if os.name == "nt":
#wav_path = Path(parsed_uri.path[3:])
wav_path = Path(self.audio_loc)
else:
wav_path = Path(self.audio_loc)

for filename in progressbar(
sorted(wav_path.rglob("*.wav")), prefix="Searching : "
):
xml_path = os.path.join(self.xml_dir, f"{filename.stem}.log.xml"),
print("xml_path", xml_path)

wav_path = filename.parent / f"{filename.stem}.wav"
xml_path = Path(self.xml_dir + "/" + f"{filename.stem}.log.xml")
print("xml_path", xml_path)
start_dt = get_datetime(wav_path, self.prefixes)

# Must have a start date to be valid and also must have a corresponding xml file
Expand Down

0 comments on commit 0d75e19

Please sign in to comment.