""" control = args.control if args.volume is True: # FIXME this has to be deleted in future releases. control = args.volume print( colors.warning( "The --volume flag is going to be renamed to \ --control." ) ) """ Youtube URLs """ if args.youtube is not None: if check_url(args.youtube) is False: youtube_error = """ You need to provide a URL that is supported by youtube-dl. """ message = """ For a list of supported sources please visit: https://rg3.github.io/youtube-dl/supportedsites.html Note that the URLs have to start with https. """ print(colors.error(youtube_error)) print(message) sys.exit(0) else: youtube_url = args.youtube backend = "ffmpeg"
videoarg = args.video """ Volume """ control = args.control if args.volume is True: # FIXME this has to be deleted in future releases. control = args.volume print(colors.warning('The --volume flag is going to be renamed to \ --control.')) """ Youtube URLs """ if args.youtube is not None: if check_url(args.youtube) is False: youtube_error = """ You need to provide a URL that is supported by youtube-dl. """ message = """ For a list of supported sources please visit: https://rg3.github.io/youtube-dl/supportedsites.html Note that the URLs have to start with https. """ print(colors.error(youtube_error)) print(message) sys.exit(0) else: youtube_url = args.youtube backend = 'ffmpeg'