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=.*",
|
||||
)
|
||||
|
||||
YOUTUBE_VID_IN_PLAYLIST = re.compile(
|
||||
r"(?P<video>^.*?v.*?)(?P<list>&list.*)",
|
||||
)
|
||||
|
||||
YOUTUBE_TIMESTAMP = re.compile(
|
||||
r"(?P<video>^.*?)(\?t|&start)=(?P<time>\d+)?.*",
|
||||
)
|
||||
|
|
|
|||
|
|
@ -745,12 +745,6 @@ class Node:
|
|||
if match := URLRegex.YOUTUBE_TIMESTAMP.match(query):
|
||||
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(
|
||||
method="GET",
|
||||
path="loadtracks",
|
||||
|
|
|
|||
Loading…
Reference in New Issue