youtube-dl

Another place where youtube-dl lives on
git clone git://git.oshgnacknak.de/youtube-dl.git
Log | Files | Refs | README | LICENSE

commit 2133565cec3646680600d314b93e535f6fa52339
parent 1da50aa34e9fa0fd927de8197dcf2884551dd800
Author: Sergey M․ <dstftw@gmail.com>
Date:   Thu, 15 Sep 2016 22:26:37 +0700

[extractor/common] Simplify _get_login_info

Diffstat:
Myoutube_dl/extractor/common.py | 4+---
1 file changed, 1 insertion(+), 3 deletions(-)

diff --git a/youtube_dl/extractor/common.py b/youtube_dl/extractor/common.py @@ -689,8 +689,6 @@ class InfoExtractor(object): if self._downloader is None: return (None, None) - username = None - password = None downloader_params = self._downloader.params # Attempt to use provided username and password or .netrc data @@ -700,7 +698,7 @@ class InfoExtractor(object): else: username, password = self._get_netrc_login_info(netrc_machine) - return (username, password) + return username, password def _get_tfa_info(self, note='two-factor verification code'): """