mirror of
https://github.com/KevinMidboe/spotify-downloader.git
synced 2025-10-29 18:00:15 +00:00
* Monkeypatch fetch user and use pytest.tempdir * Cover spotify_tools.grab_album() * Cover avconv conversion * Cover grab_single() * Reduce code repetition * Move grab_playlist() to spotify_tools.py * Move Spotify specific functions to spotify_tools.py * Refactoring * Return track list from write_tracks() * Fix tests * Cover more cases in generate_youtube_url() * Test for unavailable audio streams * Test for filename without spaces * handle.py 100% coverage * Improve config tests * Speed up tests * Install avconv and libfdk-aac * Some cleaning * FFmpeg with libfdk-aac, libopus * Some refactoring * Convert tmpdir to string * Cover YouTube title when downloading from list * Explicitly cover some internals.py functions
15 lines
412 B
Python
15 lines
412 B
Python
from core import const
|
|
from core import handle
|
|
import spotdl
|
|
import pytest
|
|
|
|
|
|
def load_defaults():
|
|
const.args = handle.get_arguments(raw_args='', to_group=False, to_merge=False)
|
|
const.args.overwrite = 'skip'
|
|
const.args.log_level = 10
|
|
|
|
spotdl.args = const.args
|
|
spotdl.log = const.logzero.setup_logger(formatter=const.formatter,
|
|
level=const.args.log_level)
|