From bfc3058f38cdee383bb727083054edd938384ec1 Mon Sep 17 00:00:00 2001 From: kuba Date: Sat, 22 Apr 2023 17:20:43 +0200 Subject: [PATCH] fixed missing data error when using youtube ur --- spotdl/download/downloader.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/spotdl/download/downloader.py b/spotdl/download/downloader.py index 2d3f988bc..54399fcb6 100644 --- a/spotdl/download/downloader.py +++ b/spotdl/download/downloader.py @@ -379,7 +379,7 @@ def search_and_download(self, song: Song) -> Tuple[Song, Optional[Path]]: # Check if song has name/artist and url/song_id if not (song.name and (song.artists or song.artist)) and not ( - song.url and song.song_id + song.url or song.song_id ): logger.error("Song is missing required fields: %s", song.display_name) self.errors.append(f"Song is missing required fields: {song.display_name}")