whoops had that in the wrong place

This commit is contained in:
cloudwithax 2022-12-11 21:26:35 -05:00
parent 507a4b246b
commit 0d00fe9f36
1 changed files with 11 additions and 11 deletions

View File

@ -415,6 +415,8 @@ class Node:
)
]
else:
# If YouTube url contains a timestamp, capture it for use later.
if (match := YOUTUBE_TIMESTAMP_REGEX.match(query)):
@ -426,8 +428,6 @@ class Node:
if (match := YOUTUBE_PLAYLIST_REGEX.match(query)):
query = match.group("video")
else:
async with self._session.get(
url=f"{self._rest_uri}/loadtracks?identifier={quote(query)}",
headers={"Authorization": self._password}