Skip to content

Commit 1f7e159

Browse files
committed
Remove option
1 parent d28597d commit 1f7e159

File tree

4 files changed

+19
-48
lines changed

4 files changed

+19
-48
lines changed

auto_editor/__main__.py

Lines changed: 0 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -128,13 +128,6 @@ def main_options(parser: ArgumentParser) -> ArgumentParser:
128128
metavar="OBJ:START,DUR,ATTRS?",
129129
help="Insert an audio/video object to the timeline",
130130
)
131-
parser.add_argument(
132-
"--source",
133-
"-src",
134-
nargs="*",
135-
metavar="LABEL:PATH",
136-
help="Add a source and associate it with a label",
137-
)
138131
parser.add_text("URL Download Options:")
139132
parser.add_argument(
140133
"--yt-dlp-location",

auto_editor/make_layers.py

Lines changed: 0 additions & 22 deletions
Original file line numberDiff line numberDiff line change
@@ -168,28 +168,6 @@ def make_timeline(
168168
log,
169169
)
170170

171-
for raw in args.source:
172-
exploded = raw.split(":")
173-
if len(exploded) != 2:
174-
log.error("source label:path must have one :")
175-
label, path = exploded
176-
if len(label) > 55:
177-
log.error("Label must not exceed 55 characters.")
178-
179-
for ill_char in ",.;()/\\[]}{'\"|#&<>^%$=@ ":
180-
if ill_char in label:
181-
log.error(f"Label '{label}' contains illegal character: {ill_char}")
182-
183-
if label[0] in "0123456789":
184-
log.error(f"Label '{label}' must not start with a digit")
185-
if label[0] == "-":
186-
log.error(f"Label '{label}' must not start with a dash")
187-
188-
if not os.path.isfile(path):
189-
log.error(f"Path '{path}' is not a file")
190-
191-
sources[label] = initFileInfo(path, ffmpeg, log, label)
192-
193171
v1_compatiable = None if inp is None else v1(inp, chunks)
194172
tl = v3(sources, tb, sr, res, args.background, vclips, aclips, v1_compatiable)
195173

auto_editor/subcommands/test.py

Lines changed: 19 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -232,24 +232,25 @@ def example():
232232
return out
233233

234234
def add_audio():
235-
run.main(
236-
["example.mp4"],
237-
[
238-
"--source",
239-
"snd:resources/wav/pcm-f32le.wav",
240-
"--add",
241-
'audio:0.3sec,end,"snd",volume=0.3',
242-
],
243-
)
244-
return run.main(
245-
["example.mp4"],
246-
[
247-
"--source",
248-
"snd:resources/wav/pcm-f32le.wav",
249-
"--add",
250-
'audio:2,40,"snd",3sec',
251-
],
252-
)
235+
pass
236+
# run.main(
237+
# ["example.mp4"],
238+
# [
239+
# "--source",
240+
# "snd:resources/wav/pcm-f32le.wav",
241+
# "--add",
242+
# 'audio:0.3sec,end,"snd",volume=0.3',
243+
# ],
244+
# )
245+
# return run.main(
246+
# ["example.mp4"],
247+
# [
248+
# "--source",
249+
# "snd:resources/wav/pcm-f32le.wav",
250+
# "--add",
251+
# 'audio:2,40,"snd",3sec',
252+
# ],
253+
# )
253254

254255
# PR #260
255256
def high_speed_test():

auto_editor/utils/types.py

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -229,7 +229,6 @@ def resolution(val: str | None) -> tuple[int, int] | None:
229229
@dataclass
230230
class Args:
231231
add: list[str] = field(default_factory=list)
232-
source: list[str] = field(default_factory=list)
233232
yt_dlp_location: str = "yt-dlp"
234233
download_format: str | None = None
235234
output_format: str | None = None

0 commit comments

Comments
 (0)