mirror of
https://github.com/yt-dlp/yt-dlp.git
synced 2025-03-09 12:50:23 -05:00
fix whitespaces
This commit is contained in:
parent
6160d2b6b5
commit
50b35cab6d
1 changed files with 3 additions and 3 deletions
|
@ -214,11 +214,11 @@ def _perform_login(self, username, password):
|
|||
|
||||
if not self._ID_TOKEN:
|
||||
raise ExtractorError('Login failed')
|
||||
|
||||
|
||||
def _real_extract(self, url):
|
||||
if not self._ID_TOKEN:
|
||||
self.raise_login_required(method='password')
|
||||
|
||||
|
||||
media_id = self._match_id(url)
|
||||
query = parse_qs(url)
|
||||
locale_param = (query.get('locale') or ['de'])[0].lower()
|
||||
|
@ -231,7 +231,7 @@ def _real_extract(self, url):
|
|||
'entries': map(self._extract_single, media_data['episodes']),
|
||||
})
|
||||
return info
|
||||
|
||||
|
||||
def _get_media_data(self, media_id, locale):
|
||||
response = self._download_json(
|
||||
'https://www.playsuisse.ch/api/graphql',
|
||||
|
|
Loading…
Reference in a new issue