fix bad formatting.
This commit is contained in:
parent
0b7596de5c
commit
ff028322bd
1 changed files with 3 additions and 1 deletions
|
|
@ -844,6 +844,7 @@ class BrowsingMixin:
|
||||||
match = re.search(r'jsUrl"\s*:\s*"([^"]+)"', response)
|
match = re.search(r'jsUrl"\s*:\s*"([^"]+)"', response)
|
||||||
if match is None:
|
if match is None:
|
||||||
raise Exception("Could not identify the URL for base.js player.")
|
raise Exception("Could not identify the URL for base.js player.")
|
||||||
|
|
||||||
return YTM_DOMAIN + match.group(1)
|
return YTM_DOMAIN + match.group(1)
|
||||||
|
|
||||||
def get_signatureTimestamp(self, url: str = None) -> int:
|
def get_signatureTimestamp(self, url: str = None) -> int:
|
||||||
|
|
@ -861,4 +862,5 @@ class BrowsingMixin:
|
||||||
match = re.search(r"signatureTimestamp[:=](\d+)", response)
|
match = re.search(r"signatureTimestamp[:=](\d+)", response)
|
||||||
if match is None:
|
if match is None:
|
||||||
raise Exception("Unable to identify the signatureTimestamp.")
|
raise Exception("Unable to identify the signatureTimestamp.")
|
||||||
|
|
||||||
return int(match.group(1))
|
return int(match.group(1))
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue