Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add: added output parameter #20

Open
wants to merge 2 commits into
base: main
Choose a base branch
from
Open

Conversation

Guray00
Copy link
Contributor

@Guray00 Guray00 commented May 11, 2021

User can now choose the name of the output file.

Guray00 added 2 commits May 11, 2021 09:57
User can now choose the name of the output file.
@@ -266,8 +267,13 @@ def cut_and_merge(out_filename):
minute = str(datetime.datetime.now().minute)
secs = str(datetime.datetime.now().second)

out_filename += "_" + hour + "-" + minute + "-" + secs + video_path[-4:]
if(args.output == ""):
out_filename += "_" + hour + "-" + minute + "-" + secs
Copy link
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Questo non genera un file senza estensione?


else:
path = os.path.dirname(os.path.abspath(video_path))
out_filename = os.path.abspath(path+"/"+args.output)
Copy link
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

questo idem, a meno che l'utente non specifichi l'estensione nel nome del file (e non dovrebbe)

@morrolinux
Copy link
Owner

Sorry, a quanto pare avevo dimenticato di premere "submit review"

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants