diff --git a/macli.py b/macli.py index 7ad906e..9424aa2 100644 --- a/macli.py +++ b/macli.py @@ -86,6 +86,9 @@ def archive(content, base_url, selector, directory, attribute, progbar): if attribute not in part.attrs: continue + if part[attribute].startswith('data:'): + continue + href = urllib.parse.urljoin(base_url, part[attribute], allow_fragments=False) progbar.next_iter(href)