forked from DRMTalks/devine
fix(Track): Compute Track ID from the `this` variable, not `self`
This commit is contained in:
parent
4c395edc53
commit
10a01b0b47
|
@ -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_
|
||||
|
|
Loading…
Reference in New Issue