Make _parse_copyright a staticmethod

This commit is contained in:
Rafael Moraes
2026-02-25 20:44:48 -03:00
parent 9775f91779
commit 69fd3451a3
+2 -1
View File
@@ -145,7 +145,8 @@ class SpotifySongInterface(SpotifyAudioInterface):
return cover_url
def _parse_copyright(self, copyright_items: list[dict]) -> str | None:
@staticmethod
def _parse_copyright(copyright_items: list[dict]) -> str | None:
return next(
(item["text"] for item in copyright_items if item["type"] == "P"),
next(