From b42b360cfe32084dedc1cc4585b12323eabbd395 Mon Sep 17 00:00:00 2001 From: cloudwithax Date: Sun, 11 Dec 2022 21:22:31 -0500 Subject: [PATCH] forgot i actually had to set the timestamp variable lol --- pomice/objects.py | 2 +- pomice/pool.py | 1 + 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/pomice/objects.py b/pomice/objects.py index aac262e..726dcff 100644 --- a/pomice/objects.py +++ b/pomice/objects.py @@ -32,7 +32,7 @@ class Track: self.info = info self.spotify = spotify 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._search_type = search_type diff --git a/pomice/pool.py b/pomice/pool.py index 1f39198..66f1ab5 100644 --- a/pomice/pool.py +++ b/pomice/pool.py @@ -419,6 +419,7 @@ class Node: if (match := YOUTUBE_TIMESTAMP_REGEX.match(query)): 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 # (I can't tell you how much i've wanted to implement this in here)