mirror of
				https://github.com/KevinMidboe/spotify-downloader.git
				synced 2025-10-29 18:00:15 +00:00 
			
		
		
		
	[WIP] Refactor spotdl.py; introduced classes (#410)
* Refactor spotdl.py; introduced classes * introduce CheckExists class * Move these classes to download.py * Fix refresh_token * Add a changelog entry
This commit is contained in:
		| @@ -1,7 +1,7 @@ | ||||
| import os | ||||
|  | ||||
| from spotdl import const | ||||
| from spotdl import spotdl | ||||
| from spotdl import downloader | ||||
|  | ||||
| import loader | ||||
|  | ||||
| @@ -16,5 +16,6 @@ def test_dry_download_list(tmpdir): | ||||
|     file_path = os.path.join(const.args.folder, "test_list.txt") | ||||
|     with open(file_path, "w") as f: | ||||
|         f.write(TRACK_URL) | ||||
|     downloaded_song, *_ = spotdl.download_list(file_path) | ||||
|     list_dl = downloader.ListDownloader(file_path) | ||||
|     downloaded_song, *_ = list_dl.download_list() | ||||
|     assert downloaded_song == TRACK_URL | ||||
|   | ||||
		Reference in New Issue
	
	Block a user