From c4e1095dfc299203381d40a26d78762a5eea8c31 Mon Sep 17 00:00:00 2001 From: Hellow2 Date: Wed, 3 May 2023 14:43:08 +0200 Subject: [PATCH] Update abstract.py --- src/music_kraken/pages/abstract.py | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/src/music_kraken/pages/abstract.py b/src/music_kraken/pages/abstract.py index b43d73a..afe6e24 100644 --- a/src/music_kraken/pages/abstract.py +++ b/src/music_kraken/pages/abstract.py @@ -1,7 +1,7 @@ import logging import random from copy import copy -from typing import Optional, Union, Type, Dict, Set +from typing import Optional, Union, Type, Dict, Set, List import requests from bs4 import BeautifulSoup @@ -154,6 +154,10 @@ class Page: album_str = property(fget=lambda self: self.get_str(self.album)) song_str = property(fget=lambda self: self.get_str(self.song)) + @classmethod + def search_by_object(cls, data_object: DatabaseObject, filter_none: bool = True) -> List[DatabaseObject]: + return [] + @classmethod def search_by_query(cls, query: str) -> Options: """