Format lowercase (c) in copyright tags

This commit is contained in:
nathom 2021-04-09 11:30:43 -07:00
parent 43730127fa
commit 2707312862

View file

@ -256,8 +256,8 @@ class TrackMetadata:
if hasattr(self, "_copyright"): if hasattr(self, "_copyright"):
if self._copyright is None: if self._copyright is None:
return None return None
cr = self._copyright.replace("(P)", PHON_COPYRIGHT) cr = re.sub(r"(?i)\(P\)", PHON_COPYRIGHT, self._copyright)
cr = cr.replace("(C)", COPYRIGHT) cr = re.sub(r"(?i)\(C\)", COPYRIGHT, cr)
return cr return cr
logger.debug("Accessed copyright tag before setting, return None") logger.debug("Accessed copyright tag before setting, return None")