remove handling of videos in playlists

This commit is contained in:
cloudwithax 2023-05-03 19:47:37 -04:00
parent b461b91587
commit 334d74095e
No known key found for this signature in database
GPG Key ID: 5DBE54E45794983E
2 changed files with 0 additions and 10 deletions

View File

@ -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+)?.*",
)

View File

@ -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",