mirror of
https://github.com/KevinMidboe/spotify-downloader.git
synced 2025-10-29 18:00:15 +00:00
Very brittle command-line frontend
This commit is contained in:
9
spotdl/metadata/embedders/tests/test_default_embedder.py
Normal file
9
spotdl/metadata/embedders/tests/test_default_embedder.py
Normal file
@@ -0,0 +1,9 @@
|
||||
from spotdl.metadata.embedders import EmbedderDefault
|
||||
|
||||
import pytest
|
||||
|
||||
@pytest.mark.xfail
|
||||
def test_embedder():
|
||||
# Do not forget to Write tests for this!
|
||||
raise NotImplementedError
|
||||
|
||||
@@ -4,8 +4,12 @@ import spotipy.oauth2 as oauth2
|
||||
from spotdl.metadata import ProviderBase
|
||||
from spotdl.metadata.exceptions import SpotifyMetadataNotFoundError
|
||||
|
||||
from spotdl.authorize.services import AuthorizeSpotify
|
||||
|
||||
class ProviderSpotify(ProviderBase):
|
||||
def __init__(self, spotify=None):
|
||||
if spotify is None:
|
||||
spotify = AuthorizeSpotify()
|
||||
self.spotify = spotify
|
||||
|
||||
def set_credentials(self, client_id, client_secret):
|
||||
|
||||
Reference in New Issue
Block a user