fix(Track): Compute Track ID from the this variable, not self
This commit is contained in:
@@ -97,7 +97,7 @@ class Track:
|
|||||||
if not id_:
|
if not id_:
|
||||||
this = copy(self)
|
this = copy(self)
|
||||||
this.url = self.url.rsplit("?", maxsplit=1)[0]
|
this.url = self.url.rsplit("?", maxsplit=1)[0]
|
||||||
checksum = crc32(repr(self).encode("utf8"))
|
checksum = crc32(repr(this).encode("utf8"))
|
||||||
id_ = hex(checksum)[2:]
|
id_ = hex(checksum)[2:]
|
||||||
|
|
||||||
self.id = id_
|
self.id = id_
|
||||||
|
|||||||
Reference in New Issue
Block a user