diff --git a/auto_editor/__main__.py b/auto_editor/__main__.py index e6f4b6a97..8e9a9a3dc 100755 --- a/auto_editor/__main__.py +++ b/auto_editor/__main__.py @@ -128,13 +128,6 @@ def main_options(parser: ArgumentParser) -> ArgumentParser: metavar="OBJ:START,DUR,ATTRS?", help="Insert an audio/video object to the timeline", ) - parser.add_argument( - "--source", - "-src", - nargs="*", - metavar="LABEL:PATH", - help="Add a source and associate it with a label", - ) parser.add_text("URL Download Options:") parser.add_argument( "--yt-dlp-location", diff --git a/auto_editor/make_layers.py b/auto_editor/make_layers.py index ec634b0a3..a1ef337d4 100644 --- a/auto_editor/make_layers.py +++ b/auto_editor/make_layers.py @@ -168,28 +168,6 @@ def make_timeline( log, ) - for raw in args.source: - exploded = raw.split(":") - if len(exploded) != 2: - log.error("source label:path must have one :") - label, path = exploded - if len(label) > 55: - log.error("Label must not exceed 55 characters.") - - for ill_char in ",.;()/\\[]}{'\"|#&<>^%$=@ ": - if ill_char in label: - log.error(f"Label '{label}' contains illegal character: {ill_char}") - - if label[0] in "0123456789": - log.error(f"Label '{label}' must not start with a digit") - if label[0] == "-": - log.error(f"Label '{label}' must not start with a dash") - - if not os.path.isfile(path): - log.error(f"Path '{path}' is not a file") - - sources[label] = initFileInfo(path, ffmpeg, log, label) - v1_compatiable = None if inp is None else v1(inp, chunks) tl = v3(sources, tb, sr, res, args.background, vclips, aclips, v1_compatiable) diff --git a/auto_editor/subcommands/test.py b/auto_editor/subcommands/test.py index 181f2acaa..2e27ed796 100644 --- a/auto_editor/subcommands/test.py +++ b/auto_editor/subcommands/test.py @@ -232,24 +232,25 @@ def example(): return out def add_audio(): - run.main( - ["example.mp4"], - [ - "--source", - "snd:resources/wav/pcm-f32le.wav", - "--add", - 'audio:0.3sec,end,"snd",volume=0.3', - ], - ) - return run.main( - ["example.mp4"], - [ - "--source", - "snd:resources/wav/pcm-f32le.wav", - "--add", - 'audio:2,40,"snd",3sec', - ], - ) + pass + # run.main( + # ["example.mp4"], + # [ + # "--source", + # "snd:resources/wav/pcm-f32le.wav", + # "--add", + # 'audio:0.3sec,end,"snd",volume=0.3', + # ], + # ) + # return run.main( + # ["example.mp4"], + # [ + # "--source", + # "snd:resources/wav/pcm-f32le.wav", + # "--add", + # 'audio:2,40,"snd",3sec', + # ], + # ) # PR #260 def high_speed_test(): diff --git a/auto_editor/utils/types.py b/auto_editor/utils/types.py index 5373b44b8..bd209254c 100644 --- a/auto_editor/utils/types.py +++ b/auto_editor/utils/types.py @@ -229,7 +229,6 @@ def resolution(val: str | None) -> tuple[int, int] | None: @dataclass class Args: add: list[str] = field(default_factory=list) - source: list[str] = field(default_factory=list) yt_dlp_location: str = "yt-dlp" download_format: str | None = None output_format: str | None = None