Skip to content

Commit

Permalink
format
Browse files Browse the repository at this point in the history
  • Loading branch information
dopebnan committed Apr 13, 2024
1 parent f792b94 commit 253afa7
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 5 deletions.
8 changes: 5 additions & 3 deletions agenius/class_types/song.py
Original file line number Diff line number Diff line change
Expand Up @@ -51,6 +51,8 @@ def __str__(self):
return f"{self.title} by {self.artist}:\n {lyr}"

def __cmp__(self, other):
return (cmp(self.title, other.title)
and cmp(self.artist, other.artist)
and cmp(self.lyrics, other.lyrics))
return (
cmp(self.title, other.title) and
cmp(self.artist, other.artist) and
cmp(self.lyrics, other.lyrics)
)
6 changes: 4 additions & 2 deletions agenius/main.py
Original file line number Diff line number Diff line change
Expand Up @@ -46,8 +46,10 @@ def is_match(result, title, artist=None):

class Genius(API):
"""Main class that makes the requests. Inherits from the API class."""
default_ex_terms = [r"track\s?list", "album art(work)?", "liner notes", "booklet", "credits", "interview", "skit",
"instrumental", "setlist"]
default_ex_terms = [
r"track\s?list", "album art(work)?", "liner notes", "booklet", "credits",
"interview", "skit", "instrumental", "setlist"
]

def __init__(self, access_token, verbose=True, retries=0):
"""
Expand Down

0 comments on commit 253afa7

Please sign in to comment.