mirror of
https://github.com/correl/dejavu.git
synced 2024-12-27 11:07:37 +00:00
small name change in method to delete songs
This commit is contained in:
parent
e6b5976e40
commit
9a1c71b349
3 changed files with 4 additions and 4 deletions
|
@ -54,12 +54,12 @@ class Dejavu:
|
|||
"""
|
||||
return self.db.get_songs()
|
||||
|
||||
def delete_songs_by_ids(self, song_ids: List[int]) -> None:
|
||||
def delete_songs_by_id(self, song_ids: List[int]) -> None:
|
||||
"""
|
||||
Deletes all audios given their ids.
|
||||
:param song_ids: song ids to delete from the database.
|
||||
"""
|
||||
self.db.delete_songs_by_ids(song_ids)
|
||||
self.db.delete_songs_by_id(song_ids)
|
||||
|
||||
def fingerprint_directory(self, path: str, extensions: str, nprocesses: int = None) -> None:
|
||||
"""
|
||||
|
|
|
@ -169,7 +169,7 @@ class BaseDatabase(object, metaclass=abc.ABCMeta):
|
|||
pass
|
||||
|
||||
@abc.abstractmethod
|
||||
def delete_songs_by_ids(self, song_ids: List[int], batch_size: int = 1000) -> None:
|
||||
def delete_songs_by_id(self, song_ids: List[int], batch_size: int = 1000) -> None:
|
||||
"""
|
||||
Given a list of song ids it deletes all songs specified and their corresponding fingerprints.
|
||||
:param song_ids: song ids to be deleted from the database.
|
||||
|
|
|
@ -217,7 +217,7 @@ class CommonDatabase(BaseDatabase, metaclass=abc.ABCMeta):
|
|||
|
||||
return results, dedup_hashes
|
||||
|
||||
def delete_songs_by_ids(self, song_ids: List[int], batch_size: int = 1000) -> None:
|
||||
def delete_songs_by_id(self, song_ids: List[int], batch_size: int = 1000) -> None:
|
||||
"""
|
||||
Given a list of song ids it deletes all songs specified and their corresponding fingerprints.
|
||||
:param song_ids: song ids to be deleted from the database.
|
||||
|
|
Loading…
Reference in a new issue