From 20625b417720b54f85b04c1ddc6784251e22fe8f Mon Sep 17 00:00:00 2001 From: Anatoly Date: Sat, 10 Apr 2021 23:37:04 +0300 Subject: [PATCH] =?UTF-8?q?=F0=9F=92=84=20Added=20ASCII=20art=20logo?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- main.py | 6 ++++-- print_logo.py | 12 ++++++++++++ 2 files changed, 16 insertions(+), 2 deletions(-) create mode 100644 print_logo.py diff --git a/main.py b/main.py index c7a2102..24302b2 100644 --- a/main.py +++ b/main.py @@ -7,6 +7,7 @@ import argparse from getch import getch import youtube_dl from get_channels import retrieve_youtube_subscriptions +from print_logo import print_logo parser = argparse.ArgumentParser() parser.add_argument('-i', '--input', action='store', type=str, @@ -27,6 +28,8 @@ ydl_opts = { 'format': 'best' } +print_logo() + if json_input: f = open(json_input, "r", encoding='utf-8') all_channels = json.loads(f.read()) @@ -34,8 +37,7 @@ if json_input: else: all_channels = retrieve_youtube_subscriptions() curr_channel = 0 - c.print(f'You will be prompted if you want to download \ - a channel for each of your subscriptions. (total {len(all_channels)})') + c.print(f'You will be prompted if you want to download a channel for each of your subscriptions. (total {len(all_channels)})', style='bold') for ch in all_channels: if download_all: ch['download'] = True diff --git a/print_logo.py b/print_logo.py new file mode 100644 index 0000000..18be784 --- /dev/null +++ b/print_logo.py @@ -0,0 +1,12 @@ +from rich.console import Console +c = Console() + +def print_logo(): + c.print("""\ +__ ______ __ __________ ______ ______ __________ __ +\ \/ / __ \/ / / /_ __/ / / / __ )/ ____/ / ____/ __ \/ / + \ / / / / / / / / / / / / / __ / __/______/ / / / / / / + / / /_/ / /_/ / / / / /_/ / /_/ / /__/_____/ /___/ /_/ / /___ +/_/\____/\____/ /_/ \____/_____/_____/ \____/_____/_____/ + + """, style='magenta') \ No newline at end of file