Skip to content

Commit

Permalink
fixed pylint errors
Browse files Browse the repository at this point in the history
  • Loading branch information
xnetcat committed Jan 10, 2023
1 parent 94af6d8 commit e4738aa
Show file tree
Hide file tree
Showing 3 changed files with 22 additions and 4 deletions.
6 changes: 3 additions & 3 deletions spotdl/providers/audio/base.py
Original file line number Diff line number Diff line change
Expand Up @@ -21,21 +21,21 @@ class YTDLLogger:
Custom YT-dlp logger.
"""

def debug(self, msg): # pylint: disable=R0201
def debug(self, msg):
"""
YTDL uses this to print debug messages.
"""

pass # pylint: disable=W0107

def warning(self, msg): # pylint: disable=R0201
def warning(self, msg):
"""
YTDL uses this to print warnings.
"""

pass # pylint: disable=W0107

def error(self, msg): # pylint: disable=R0201
def error(self, msg):
"""
YTDL uses this to print errors.
"""
Expand Down
14 changes: 14 additions & 0 deletions spotdl/types/saved.py
Original file line number Diff line number Diff line change
Expand Up @@ -84,3 +84,17 @@ def get_metadata(url: str = "saved") -> Dict[str, Any]:
"""

return {"name": "Saved tracks", "url": url}

@classmethod
def search(cls, _: str):
"""
Search for a saved list.
### Arguments
- search_term: The search term.
### Returns
- The Saved object.
"""

return cls.create_basic_list()
6 changes: 5 additions & 1 deletion tests/test_matching.py
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,11 @@
# so we can only find the lyrics version of it
# which is fine but not ideal
"https://open.spotify.com/track/1zi7xx7UVEFkmKfv06H8x0",
["https://www.youtube.com/watch?v=ki0Ocze98U8"],
[
"https://www.youtube.com/watch?v=ki0Ocze98U8",
"https://www.youtube.com/watch?v=2Hr8Ae6yc9A",
"https://www.youtube.com/watch?v=p55-ZrnPDH8",
],
),
(
"https://open.spotify.com/track/2eaSMmKfigsm96aTUJMoIk",
Expand Down

0 comments on commit e4738aa

Please sign in to comment.