mirror of
https://github.com/glomatico/votify.git
synced 2026-10-12 10:52:16 +02:00
Make _parse_copyright a staticmethod
This commit is contained in:
@@ -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(
|
||||
|
||||
Reference in New Issue
Block a user