Skip to content

Commit

Permalink
For audio processing, don't panic/quit when folder has no audio tracks.
Browse files Browse the repository at this point in the history
  • Loading branch information
clolsonus committed Mar 28, 2021
1 parent 7a3ae91 commit fcf297d
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion sync-tracks.py
Original file line number Diff line number Diff line change
Expand Up @@ -95,7 +95,10 @@
audio_group = analyze.SampleGroup(dir)
audio_group.scan()
audio_group.load_samples()

if not len(audio_group.sample_list):
# nothing to do here
log("No audio/video tracks in this group:", dir)
continue
# generate mono version, set consistent sample rate, and filer for
# analysis step
audio_group.compute_raw()
Expand Down

0 comments on commit fcf297d

Please sign in to comment.