Timeout search to yt-dlp requires ytsearch: when searching via name and
not URL
This commit is contained in:
parent
d186e32c03
commit
7522a541d4
@ -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')}")
|
||||
|
Loading…
x
Reference in New Issue
Block a user