Skip to content

Commit

Permalink
de-cringeify
Browse files Browse the repository at this point in the history
Co-authored-by: sepro <[email protected]>
  • Loading branch information
bashonly and seproDev authored Nov 10, 2023
1 parent 89857e7 commit ac3256b
Showing 1 changed file with 1 addition and 11 deletions.
12 changes: 1 addition & 11 deletions yt_dlp/extractor/thisoldhouse.py
Original file line number Diff line number Diff line change
Expand Up @@ -65,17 +65,7 @@ def _perform_login(self, username, password):
urlh = self._request_webpage(
'https://www.thisoldhouse.com/wp-login.php', None, 'Requesting login info',
errnote='Unable to login', query={'redirect_to': 'https://www.thisoldhouse.com/insider'})
login_info = traverse_obj(parse_qs(urlh.url), {
'state': ('state', 0),
'client_id': ('client', 0),
'protocol': ('protocol', 0),
'connection': ('connection', 0),
'scope': ('scope', 0),
'nonce': ('nonce', 0),
'response_type': ('response_type', 0),
'response_mode': ('response_mode', 0),
'redirect_uri': ('redirect_uri', 0),
})
login_info = {('client_id' if k == 'client' else k): v[0] for k, v in parse_qs(urlh.url).items()}

try:
auth_form = self._download_webpage(
Expand Down

0 comments on commit ac3256b

Please sign in to comment.