From 10a01b0b471f27c05fe5cba05ff24111c6a9f9ed Mon Sep 17 00:00:00 2001 From: rlaphoenix Date: Fri, 8 Mar 2024 19:22:33 +0000 Subject: [PATCH] fix(Track): Compute Track ID from the `this` variable, not `self` --- devine/core/tracks/track.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/devine/core/tracks/track.py b/devine/core/tracks/track.py index db5d445..b8598ab 100644 --- a/devine/core/tracks/track.py +++ b/devine/core/tracks/track.py @@ -97,7 +97,7 @@ class Track: if not id_: this = copy(self) this.url = self.url.rsplit("?", maxsplit=1)[0] - checksum = crc32(repr(self).encode("utf8")) + checksum = crc32(repr(this).encode("utf8")) id_ = hex(checksum)[2:] self.id = id_