aboutsummaryrefslogtreecommitdiff
path: root/main.py
diff options
context:
space:
mode:
authorNavan Chauhan <navanchauhan@gmail.com>2020-08-19 12:44:08 +0530
committerNavan Chauhan <navanchauhan@gmail.com>2020-08-19 12:44:08 +0530
commit8788843458f614a609f936ecdb1fc6c49c2cbf9b (patch)
tree605d8e9cc44011bc28ee2291e741a79ec4e4c15e /main.py
parent0cc9cc2813f9d630436677229e6f311403180a18 (diff)
added custom date and time option
Diffstat (limited to 'main.py')
-rw-r--r--main.py8
1 files changed, 6 insertions, 2 deletions
diff --git a/main.py b/main.py
index 502e08e..9f96e95 100644
--- a/main.py
+++ b/main.py
@@ -22,6 +22,7 @@ parser.add_argument("-v", "--version", help="show program version", action="stor
parser.add_argument("-i", "--input")
parser.add_argument("-o", "--output", help="Output for specifying output video")
parser.add_argument("-d","--date",help="Custom Date in yyyy/mm/dd format. e.g 2020/5/14")
+parser.add_argument("-t","--time",help="Custom Time in HH:MM format. e.g 11:23")
args = parser.parse_args()
@@ -30,6 +31,7 @@ music = False
picture = False
video = False
date = None
+time = None
if args.version:
print("vaporwave generator 旺育栄", version)
@@ -46,6 +48,8 @@ if args.output:
outfile = args.output
if args.date:
date = args.date
+if args.time:
+ time = args.time
else:
parser.print_help()
exit
@@ -180,6 +184,6 @@ if music:
name, title = download_file(query)
gen_vapor(name, title)
elif picture:
- generateVHSStyle(query, "out.jpg",date=date)
+ generateVHSStyle(query, "out.jpg",date=date,time=time)
elif video:
- VHS_Vid(query, outfile)
+ VHS_Vid(query, outfile,date=date,time=time)