whoops had that in the wrong place
This commit is contained in:
parent
507a4b246b
commit
0d00fe9f36
|
|
@ -415,6 +415,8 @@ class Node:
|
||||||
)
|
)
|
||||||
]
|
]
|
||||||
|
|
||||||
|
|
||||||
|
else:
|
||||||
# If YouTube url contains a timestamp, capture it for use later.
|
# If YouTube url contains a timestamp, capture it for use later.
|
||||||
|
|
||||||
if (match := YOUTUBE_TIMESTAMP_REGEX.match(query)):
|
if (match := YOUTUBE_TIMESTAMP_REGEX.match(query)):
|
||||||
|
|
@ -426,8 +428,6 @@ class Node:
|
||||||
if (match := YOUTUBE_PLAYLIST_REGEX.match(query)):
|
if (match := YOUTUBE_PLAYLIST_REGEX.match(query)):
|
||||||
query = match.group("video")
|
query = match.group("video")
|
||||||
|
|
||||||
|
|
||||||
else:
|
|
||||||
async with self._session.get(
|
async with self._session.get(
|
||||||
url=f"{self._rest_uri}/loadtracks?identifier={quote(query)}",
|
url=f"{self._rest_uri}/loadtracks?identifier={quote(query)}",
|
||||||
headers={"Authorization": self._password}
|
headers={"Authorization": self._password}
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue