X-Git-Url: https://jfr.im/git/yt-dlp.git/blobdiff_plain/3c5386cd711a5a0480a0b8d72e9df5007b10ac92..ac668111128b5f124b4271b3aa4c35f6e71a4749:/yt_dlp/__init__.py diff --git a/yt_dlp/__init__.py b/yt_dlp/__init__.py index ee873e00c..a5921c565 100644 --- a/yt_dlp/__init__.py +++ b/yt_dlp/__init__.py @@ -3,13 +3,14 @@ __license__ = 'Public Domain' +import getpass import itertools import optparse import os import re import sys -from .compat import compat_getpass, compat_shlex_quote +from .compat import compat_shlex_quote from .cookies import SUPPORTED_BROWSERS, SUPPORTED_KEYRINGS from .downloader import FileDownloader from .downloader.external import get_external_downloader @@ -531,9 +532,9 @@ def report_deprecation(val, old, new=None): # Ask for passwords if opts.username is not None and opts.password is None: - opts.password = compat_getpass('Type account password and press [Return]: ') + opts.password = getpass.getpass('Type account password and press [Return]: ') if opts.ap_username is not None and opts.ap_password is None: - opts.ap_password = compat_getpass('Type TV provider account password and press [Return]: ') + opts.ap_password = getpass.getpass('Type TV provider account password and press [Return]: ') return warnings, deprecation_warnings