Skip to content

Commit

Permalink
Renamed the stream-name argument
Browse files Browse the repository at this point in the history
  • Loading branch information
gemblerz committed Dec 10, 2024
1 parent 1587f42 commit 0cd970e
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions app.py
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@


def capture(plugin, stream, stream_name, out_dir=""):
sample_file_name = f'{stream}.jpg'
sample_file_name = "sample.jpg"
with Camera(stream) as cam:
sample = cam.snapshot()
if out_dir == "":
Expand Down Expand Up @@ -71,8 +71,8 @@ def run(stream, stream_name, cronjob, out_dir=""):

def main(args):
workers = []
if len(args.stream_name) > 0:
for stream, name in zip(args.stream, args.stream_name):
if len(args.name) > 0:
for stream, name in zip(args.stream, args.name):
worker = Process(target=run, args=(stream, name, args.cronjob, args.out_dir))
workers.append(worker)
worker.start()
Expand All @@ -95,7 +95,7 @@ def main(args):
action='append',
help='ID or name of a stream. Multiple streams can be specified, each stream with the --stream option.')
parser.add_argument(
'--stream-name', dest='stream_name',
'--name', dest='name',
action='append',
help='(optional) Name of the stream to report. When specified the count and order should match with given streams.')
parser.add_argument(
Expand Down

0 comments on commit 0cd970e

Please sign in to comment.