From 887bb145a2e258c921f647ace15f9728515c195c Mon Sep 17 00:00:00 2001 From: Anatoly Date: Sun, 11 Apr 2021 11:50:39 +0300 Subject: [PATCH] =?UTF-8?q?=F0=9F=9A=91=20Added=20"ignore=20errors"=20to?= =?UTF-8?q?=20ytdl=20options?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- main.py | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/main.py b/main.py index 4e07bf2..5817f9a 100644 --- a/main.py +++ b/main.py @@ -5,6 +5,7 @@ from pathlib import Path import os import json import argparse +import logging import youtube_dl from get_channels import retrieve_youtube_subscriptions from print_logo import print_logo @@ -48,7 +49,8 @@ download_all = args.all c = Console() ydl_opts = { - 'format': 'best' + 'format': 'best', + 'ignoreerrors': True } print_logo() @@ -80,7 +82,7 @@ else: else: c.print('Press "y" or "n"', style='yellow') - c.print('All done! 🎉') + c.print('All done! :party_popper:', style='green') c.print('Saving to download_list.json...', style='italic') f = open("download_list.json", "w", encoding='utf-8') f.write(json.dumps(all_channels, indent=4))