Commit 4a0605c8 authored by Jan Kiene's avatar Jan Kiene
Browse files

fix crash on custom ls setup

parent 1595797d
Loading
Loading
Loading
Loading
Loading
+2 −1
Original line number Diff line number Diff line
@@ -74,7 +74,8 @@ def convert_file(
    if not isinstance(in_fmt, PurePath) and in_fmt.startswith("META"):
        input = metadata.Metadata(in_file)
    else:
        if in_fmt.startswith("MASA") and in_meta is None:
        # first check prevents crash on custom_ls setup formats
        if isinstance(in_fmt, str) and in_fmt.startswith("MASA") and in_meta is None:
            # if no MD fileis provided, default to name (including .wav or .pcm!!!) + ".met"
            in_meta = [in_file.parent / (in_file.name + ".met")]
        input = audio.fromfile(in_fmt, in_file, in_fs, in_meta)