Initial Commit
This commit is contained in:
parent
32ef26d15a
commit
c0b0950d40
20
yt2feed.py
Normal file
20
yt2feed.py
Normal file
@ -0,0 +1,20 @@
|
||||
#!/usr/bin/env python3
|
||||
|
||||
#Imports
|
||||
import configparser
|
||||
import argparse
|
||||
|
||||
script_version = 0.1
|
||||
help_epilog = "Downloads stuff and packages it as an RSS feed."
|
||||
|
||||
cmd_option_set = argparse.ArgumentParser(description='Backup YouTube channels.', epilog=help_epilog)
|
||||
|
||||
cmd_option_set.add_argument('--version', '-v', dest='print_version', action='store_true', help='Print the current version number.')
|
||||
cmd_options = cmd_option_set.parse_args()
|
||||
|
||||
config_file = "./.yt2feed.ini"
|
||||
config = configparser.ConfigParser()
|
||||
config.read(config_file)
|
||||
|
||||
if (print_version):
|
||||
printf("Version: " + this.script_version)
|
Loading…
x
Reference in New Issue
Block a user