Skip to content

bandcamp-dl adds 'none' to end of URL #282

@Callisto95

Description

@Callisto95

Describe the bug
A clear and concise description of what the bug is.

To Reproduce
Command to reproduce the behavior:
bandcamp-dl https://embarkstudios.bandcamp.com/album/arc-raiders-original-video-game-soundtrack

https://embarkstudios.bandcamp.com/album/arc-raiders-original-video-game-soundtrack

Expected behavior
bandcamp-dl downloads the tracks as usual

Logs
Most if not always you will get some kind of output explaining the issue, post it:

DEBUG:bandcamp-dl:Config/Args: Namespace(URL=['https://embarkstudios.bandcamp.com/album/arc-raiders-original-video-game-soundtrack'], version=False, debug=True, artist=None, track=None, album=None, template='%{artist}/%{album}/%{artist}-%{title}', base_dir='.', full_album=False, overwrite=False, no_art=False, embed_lyrics=True, group=False, embed_art=True, cover_quality=0, untitled_path_from_slug=False, no_slugify=False, ok_chars='-_', space_char='-', ascii_only=True, keep_spaces=False, case_mode='none', no_confirm=False, embed_genres=True, truncate_album=0, truncate_track=0)
DEBUG:bandcamp-dl:
	URL: https://embarkstudios.bandcamp.com/album/arc-raiders-original-video-game-soundtrack
DEBUG:urllib3.connectionpool:Starting new HTTPS connection (1): embarkstudios.bandcamp.com:443
DEBUG:urllib3.connectionpool:https://embarkstudios.bandcamp.com:443 "GET /album/arc-raiders-original-video-game-soundtrack HTTP/1.1" 200 None
DEBUG:bandcamp-dl.Main: Generating BandcampJSON..
DEBUG:bandcamp-dl.JSON: Grab pagedata JSON..
DEBUG:bandcamp-dl.JSON: Grabbing embedded scripts..
DEBUG:bandcamp-dl.JSON: Converting JS to JSON..
DEBUG:bandcamp-dl.JSON: Converting JS to JSON..
DEBUG:bandcamp-dl.Main: BandcampJSON generated..
DEBUG:bandcamp-dl.Main: Generating Album..
DEBUG:bandcamp-dl.Main: Album page, found album_id: 1887730991
DEBUG:bandcamp-dl.Main: Fetching track lyrics..
DEBUG:urllib3.connectionpool:Starting new HTTPS connection (1): embarkstudios.bandcamp.comnone:443
Traceback (most recent call last):
  File "/usr/lib/python3.13/site-packages/urllib3/connection.py", line 198, in _new_conn
    sock = connection.create_connection(
        (self._dns_host, self.port),
    ...<2 lines>...
        socket_options=self.socket_options,
    )
  File "/usr/lib/python3.13/site-packages/urllib3/util/connection.py", line 60, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
               ~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/usr/lib/python3.13/socket.py", line 977, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
               ~~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
socket.gaierror: [Errno -2] Name or service not known

The above exception was the direct cause of the following exception:

Traceback (most recent call last):
  File "/usr/lib/python3.13/site-packages/urllib3/connectionpool.py", line 787, in urlopen
    response = self._make_request(
        conn,
    ...<10 lines>...
        **response_kw,
    )
  File "/usr/lib/python3.13/site-packages/urllib3/connectionpool.py", line 488, in _make_request
    raise new_e
  File "/usr/lib/python3.13/site-packages/urllib3/connectionpool.py", line 464, in _make_request
    self._validate_conn(conn)
    ~~~~~~~~~~~~~~~~~~~^^^^^^
  File "/usr/lib/python3.13/site-packages/urllib3/connectionpool.py", line 1093, in _validate_conn
    conn.connect()
    ~~~~~~~~~~~~^^
  File "/usr/lib/python3.13/site-packages/urllib3/connection.py", line 753, in connect
    self.sock = sock = self._new_conn()
                       ~~~~~~~~~~~~~~^^
  File "/usr/lib/python3.13/site-packages/urllib3/connection.py", line 205, in _new_conn
    raise NameResolutionError(self.host, self, e) from e
urllib3.exceptions.NameResolutionError: <urllib3.connection.HTTPSConnection object at 0x7f970e2f1810>: Failed to resolve 'embarkstudios.bandcamp.comnone' ([Errno -2] Name or service not known)

The above exception was the direct cause of the following exception:

Traceback (most recent call last):
  File "/usr/lib/python3.13/site-packages/requests/adapters.py", line 644, in send
    resp = conn.urlopen(
        method=request.method,
    ...<9 lines>...
        chunked=chunked,
    )
  File "/usr/lib/python3.13/site-packages/urllib3/connectionpool.py", line 841, in urlopen
    retries = retries.increment(
        method, url, error=new_e, _pool=self, _stacktrace=sys.exc_info()[2]
    )
  File "/usr/lib/python3.13/site-packages/urllib3/util/retry.py", line 519, in increment
    raise MaxRetryError(_pool, url, reason) from reason  # type: ignore[arg-type]
    ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='embarkstudios.bandcamp.comnone', port=443): Max retries exceeded with url: / (Caused by NameResolutionError("<urllib3.connection.HTTPSConnection object at 0x7f970e2f1810>: Failed to resolve 'embarkstudios.bandcamp.comnone' ([Errno -2] Name or service not known)"))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/bin/bandcamp-dl", line 8, in <module>
    sys.exit(main())
             ~~~~^^
  File "/usr/lib/python3.13/site-packages/bandcamp_dl/__main__.py", line 121, in main
    album_list.append(bandcamp.parse(url, not arguments.no_art, arguments.embed_lyrics, arguments.embed_genres,
                      ~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
                                     arguments.debug, arguments.cover_quality))
                                     ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/usr/lib/python3.13/site-packages/bandcamp_dl/bandcamp.py", line 201, in parse
    track['lyrics'] = self.get_track_lyrics(f"{artist_url}"
                      ~~~~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^
                                            f"{track['title_link']}#lyrics")
                                            ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/usr/lib/python3.13/site-packages/bandcamp_dl/bandcamp.py", line 221, in get_track_lyrics
    track_page = self.session.get(track_url, headers=self.headers)
  File "/usr/lib/python3.13/site-packages/requests/sessions.py", line 602, in get
    return self.request("GET", url, **kwargs)
           ~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^
  File "/usr/lib/python3.13/site-packages/requests/sessions.py", line 589, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3.13/site-packages/requests/sessions.py", line 703, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3.13/site-packages/requests/adapters.py", line 677, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='embarkstudios.bandcamp.comnone', port=443): Max retries exceeded with url: / (Caused by NameResolutionError("<urllib3.connection.HTTPSConnection object at 0x7f970e2f1810>: Failed to resolve 'embarkstudios.bandcamp.comnone' ([Errno -2] Name or service not known)"))

Most notably, embarkstudios.bandcamp.comnone is requested instead of embarkstudios.bandcamp.com.

If possible after running the command with the --debug option.

Desktop (please complete the following information):

  • OS: Arch Linux
  • Version: Not applicable
  • Python Version: 3.13.7

Additional context
Add any other context about the problem here.

Metadata

Metadata

Assignees

Labels

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions