Skip to content

Commit

Permalink
mildom: inline lang_code
Browse files Browse the repository at this point in the history
  • Loading branch information
Lesmiscore committed Mar 4, 2022
1 parent bf63196 commit 05b2016
Showing 1 changed file with 2 additions and 6 deletions.
8 changes: 2 additions & 6 deletions yt_dlp/extractor/mildom.py
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@ def _call_api(self, url, video_id, query=None, note='Downloading JSON metadata',
return content['body']
else:
self.raise_no_formats(
f'Video not found or premium content. {content["code"]} - {content["message"]}',
f'Mildom says: {content["message"]} (code {content["code"]})',
expected=True)

def _common_queries(self, query=None, init=False):
Expand All @@ -51,7 +51,7 @@ def _common_queries(self, query=None, init=False):
'__country': dc['country'],
'__cluster': dc['cluster'],
'__platform': 'web',
'__la': self.lang_code(),
'__la': 'ja',
'__pcv': 'v3.8.15',
'sfr': 'pc',
'accessToken': '',
Expand Down Expand Up @@ -93,10 +93,6 @@ def guest_id(self):
self._GUEST_ID = f'pc-gp-{random_uuidv4()}'
return self._GUEST_ID

def lang_code(self):
'getCurrentLangCode'
return 'ja'


class MildomIE(MildomBaseIE):
IE_NAME = 'mildom'
Expand Down

0 comments on commit 05b2016

Please sign in to comment.