diff options
author | Navan Chauhan <navanchauhan@gmail.com> | 2020-08-19 12:21:15 +0530 |
---|---|---|
committer | Navan Chauhan <navanchauhan@gmail.com> | 2020-08-19 12:21:15 +0530 |
commit | 0cc9cc2813f9d630436677229e6f311403180a18 (patch) | |
tree | 7596b7e9f6ad306026b635dbfa3dde05ae60c2c7 /main.py | |
parent | 7ae706cf5fc20b43b5408a0ebf7f165660d73452 (diff) |
Added custom date for image
Diffstat (limited to 'main.py')
-rw-r--r-- | main.py | 16 |
1 files changed, 8 insertions, 8 deletions
@@ -9,22 +9,19 @@ import urllib.request import urllib.parse import argparse -version = 2.0 +version = 2.1 style = False text = "| V A P O R W A V E || G E N E R A T O R |" parser = argparse.ArgumentParser(description=text) -parser.add_argument( - "-M", "--music", help="generate v a p o r w a v e music", action="store_true" -) -parser.add_argument( - "-P", "--picture", help="generate VHS Style image", action="store_true" -) +parser.add_argument("-M", "--music", help="generate v a p o r w a v e music", action="store_true") +parser.add_argument("-P", "--picture", help="generate VHS Style image", action="store_true") parser.add_argument("-V", "--video", help="VHS Style Video", action="store_true") parser.add_argument("-v", "--version", help="show program version", action="store_true") 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") args = parser.parse_args() @@ -32,6 +29,7 @@ args = parser.parse_args() music = False picture = False video = False +date = None if args.version: print("vaporwave generator 旺育栄", version) @@ -46,6 +44,8 @@ if args.input: query = args.input if args.output: outfile = args.output +if args.date: + date = args.date else: parser.print_help() exit @@ -180,6 +180,6 @@ if music: name, title = download_file(query) gen_vapor(name, title) elif picture: - generateVHSStyle(query, "out.jpg") + generateVHSStyle(query, "out.jpg",date=date) elif video: VHS_Vid(query, outfile) |