mirror of
https://github.com/yt-dlp/yt-dlp.git
synced 2025-03-09 12:50:23 -05:00
Apply suggestions from code review
Co-authored-by: bashonly <88596187+bashonly@users.noreply.github.com>
This commit is contained in:
parent
3d97555f64
commit
1d2c6b9fb1
1 changed files with 2 additions and 2 deletions
|
@ -1,7 +1,7 @@
|
||||||
import base64
|
import base64
|
||||||
import json
|
import json
|
||||||
import re
|
import re
|
||||||
import urllib
|
import urllib.parse
|
||||||
|
|
||||||
from .common import InfoExtractor, Request
|
from .common import InfoExtractor, Request
|
||||||
from ..utils import (
|
from ..utils import (
|
||||||
|
@ -74,7 +74,7 @@ def _fetch_auth_token(self):
|
||||||
if self._AUTH_TOKEN:
|
if self._AUTH_TOKEN:
|
||||||
return self._AUTH_TOKEN
|
return self._AUTH_TOKEN
|
||||||
self._AUTH_TOKEN = traverse_obj(self._download_json(Request(
|
self._AUTH_TOKEN = traverse_obj(self._download_json(Request(
|
||||||
url='https://rtpplayapi.rtp.pt/play/api/2/token-manager',
|
'https://rtpplayapi.rtp.pt/play/api/2/token-manager',
|
||||||
headers={
|
headers={
|
||||||
'Accept': '*/*',
|
'Accept': '*/*',
|
||||||
'rtp-play-auth': 'RTPPLAY_MOBILE_IOS',
|
'rtp-play-auth': 'RTPPLAY_MOBILE_IOS',
|
||||||
|
|
Loading…
Reference in a new issue