From c0b0950d403df5dbde8bcebbc386a16886d56473 Mon Sep 17 00:00:00 2001 From: manfromhuh Date: Thu, 7 Sep 2023 15:48:31 -0400 Subject: [PATCH] Initial Commit --- yt2feed.py | 20 ++++++++++++++++++++ 1 file changed, 20 insertions(+) create mode 100644 yt2feed.py diff --git a/yt2feed.py b/yt2feed.py new file mode 100644 index 0000000..d4814e6 --- /dev/null +++ b/yt2feed.py @@ -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)