fix bad formatting.

This commit is contained in:
impliedchaos 2021-07-01 11:57:05 -04:00
commit ff028322bd

View file

@ -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))