1
0
mirror of https://github.com/l1ving/youtube-dl synced 2025-03-13 01:37:15 +08:00

Fixes #11572 Use self.report_waring to display warning about cfscrape if it's not found

This commit is contained in:
kidburglar 2017-01-26 18:24:23 +01:00
parent 73e91ff8ac
commit 1081177015

View File

@ -51,8 +51,8 @@ class CrunchyrollBaseIE(InfoExtractor):
tokens = scraper.get_tokens(self._LOGIN_URL, std_headers['User-Agent'])
self._set_crunchyroll_cookie('cf_clearance', tokens[0]['cf_clearance'])
self._set_crunchyroll_cookie('__cfduid', tokens[0]['__cfduid'])
else
print 'cfscrape not found. Please install it if you want use login function for CrunchyRoll.'
else:
self.report_warning('cfscrape not found. Please install it if you want use login function for CrunchyRoll.')
(username, password) = self._get_login_info()
if username is None: