From b904f79a7c29d5eb527f53486b6ddf89ed7414b5 Mon Sep 17 00:00:00 2001 From: kjake Date: Thu, 22 Aug 2024 23:18:34 -0400 Subject: [PATCH] Hack to make full discography work In my testing the `urls` list often (always?) contains a top-level url of the artist without any albums or tracks, and is the first in the list, causing `bandcamp-dl` to immediately fail. This could potentially be fixed in get_full_discography(), but I'm not that good at python. --- bandcamp_dl/__main__.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/bandcamp_dl/__main__.py b/bandcamp_dl/__main__.py index 297e931..72305ab 100644 --- a/bandcamp_dl/__main__.py +++ b/bandcamp_dl/__main__.py @@ -112,6 +112,8 @@ def main(): album_list = [] for url in urls: + if "/album/" not in url and "/track/" not in url: + continue logger.debug("\n\tURL: %s", url) album_list.append(bandcamp.parse(url, not arguments.no_art, arguments.embed_lyrics, arguments.debug))