forgot i actually had to set the timestamp variable lol
This commit is contained in:
parent
0152b4eca0
commit
b42b360cfe
|
|
@ -32,7 +32,7 @@ class Track:
|
||||||
self.info = info
|
self.info = info
|
||||||
self.spotify = spotify
|
self.spotify = spotify
|
||||||
self.filters: List[Filter] = filters
|
self.filters: List[Filter] = filters
|
||||||
self.timestamp: Optional[float] = None
|
self.timestamp: Optional[float] = timestamp
|
||||||
|
|
||||||
self.original: Optional[Track] = None if spotify else self
|
self.original: Optional[Track] = None if spotify else self
|
||||||
self._search_type = search_type
|
self._search_type = search_type
|
||||||
|
|
|
||||||
|
|
@ -419,6 +419,7 @@ class Node:
|
||||||
|
|
||||||
if (match := YOUTUBE_TIMESTAMP_REGEX.match(query)):
|
if (match := YOUTUBE_TIMESTAMP_REGEX.match(query)):
|
||||||
timestamp = float(match.group("time"))
|
timestamp = float(match.group("time"))
|
||||||
|
print(f"timestamp: {timestamp}")
|
||||||
|
|
||||||
# If query is a video thats part of a playlist, get the video and queue that instead
|
# 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)
|
# (I can't tell you how much i've wanted to implement this in here)
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue