remove handling of videos in playlists
This commit is contained in:
parent
b461b91587
commit
334d74095e
|
|
@ -217,10 +217,6 @@ class URLRegex:
|
||||||
r"^((?:https?:)?\/\/)?((?:www|m)\.)?((?:youtube\.com|youtu.be))/playlist\?list=.*",
|
r"^((?:https?:)?\/\/)?((?:www|m)\.)?((?:youtube\.com|youtu.be))/playlist\?list=.*",
|
||||||
)
|
)
|
||||||
|
|
||||||
YOUTUBE_VID_IN_PLAYLIST = re.compile(
|
|
||||||
r"(?P<video>^.*?v.*?)(?P<list>&list.*)",
|
|
||||||
)
|
|
||||||
|
|
||||||
YOUTUBE_TIMESTAMP = re.compile(
|
YOUTUBE_TIMESTAMP = re.compile(
|
||||||
r"(?P<video>^.*?)(\?t|&start)=(?P<time>\d+)?.*",
|
r"(?P<video>^.*?)(\?t|&start)=(?P<time>\d+)?.*",
|
||||||
)
|
)
|
||||||
|
|
|
||||||
|
|
@ -745,12 +745,6 @@ class Node:
|
||||||
if match := URLRegex.YOUTUBE_TIMESTAMP.match(query):
|
if match := URLRegex.YOUTUBE_TIMESTAMP.match(query):
|
||||||
timestamp = float(match.group("time"))
|
timestamp = float(match.group("time"))
|
||||||
|
|
||||||
# If query is a video thats part of a playlist, get the video and queue that instead
|
|
||||||
# (I can't tell you how much i've wanted to implement this in here)
|
|
||||||
|
|
||||||
if match := URLRegex.YOUTUBE_VID_IN_PLAYLIST.match(query):
|
|
||||||
query = match.group("video")
|
|
||||||
|
|
||||||
data = await self.send(
|
data = await self.send(
|
||||||
method="GET",
|
method="GET",
|
||||||
path="loadtracks",
|
path="loadtracks",
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue