From 7522a541d44c1fccc0795cb1da9e7a778fe19b52 Mon Sep 17 00:00:00 2001 From: zebra Date: Mon, 9 Jun 2025 14:03:06 -0700 Subject: [PATCH] Timeout search to yt-dlp requires ytsearch: when searching via name and not URL --- musicfetch | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/musicfetch b/musicfetch index 08c7897..c39cf28 100644 --- a/musicfetch +++ b/musicfetch @@ -195,7 +195,7 @@ def main(): metadata = search_artist(artist_name) if not metadata: print("No match found or search timed out. Falling back to yt-dlp.") - yt_dlp_download(input_str, os.path.join(ROOT_FOLDER, artist_name, "youtube")) + yt_dlp_download(f"ytsearch:{input_str}", os.path.join(ROOT_FOLDER, artist_name, "youtube")) return print(f"Adding artist: {metadata.get('artistName') or metadata.get('title')}")