diff --git a/dejavu/__init__.py b/dejavu/__init__.py index 563a415..b450452 100755 --- a/dejavu/__init__.py +++ b/dejavu/__init__.py @@ -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: """ diff --git a/dejavu/base_classes/base_database.py b/dejavu/base_classes/base_database.py index 4728566..1aef252 100755 --- a/dejavu/base_classes/base_database.py +++ b/dejavu/base_classes/base_database.py @@ -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. diff --git a/dejavu/base_classes/common_database.py b/dejavu/base_classes/common_database.py index ec8d560..542869d 100644 --- a/dejavu/base_classes/common_database.py +++ b/dejavu/base_classes/common_database.py @@ -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.