mirror of
https://github.com/yt-dlp/yt-dlp
synced 2025-12-19 15:45:39 +07:00
This reverts commit b827ee921f.
This commit is contained in:
@@ -8,6 +8,7 @@
|
||||
from ..compat import (
|
||||
compat_b64decode,
|
||||
compat_HTTPError,
|
||||
compat_str,
|
||||
)
|
||||
from ..utils import (
|
||||
ExtractorError,
|
||||
@@ -98,7 +99,7 @@ def random_string():
|
||||
'sso': 'true',
|
||||
})
|
||||
|
||||
login_state_url = urlh.geturl()
|
||||
login_state_url = compat_str(urlh.geturl())
|
||||
|
||||
try:
|
||||
login_page = self._download_webpage(
|
||||
@@ -128,7 +129,7 @@ def random_string():
|
||||
})
|
||||
|
||||
access_token = self._search_regex(
|
||||
r'access_token=([^=&]+)', urlh.geturl(),
|
||||
r'access_token=([^=&]+)', compat_str(urlh.geturl()),
|
||||
'access token')
|
||||
|
||||
self._download_webpage(
|
||||
|
||||
Reference in New Issue
Block a user