easlice / bandcamp-downloader

Download your bandcamp collection using this python script.
MIT License
281 stars 34 forks source link

Error #6

Closed ajcowell closed 1 year ago

ajcowell commented 1 year ago

Get this when trying to run.

File "/Users/ajcowell/Downloads/bandcamp-downloader-master/./bandcamp-downloader.py", line 318, in sys.exit(main()) File "/Users/ajcowell/Downloads/bandcamp-downloader-master/./bandcamp-downloader.py", line 134, in main links = get_download_links_for_user(args.username) File "/Users/ajcowell/Downloads/bandcamp-downloader-master/./bandcamp-downloader.py", line 186, in get_download_links_for_user 'collection_count' : data['collection_count'],

ajcowell commented 1 year ago

User error.

RunningDroid commented 9 months ago

I appear to be getting the same error, what did you do to fix this?

Traceback (most recent call last):
  File "/home/runningdroid/git/bandcamp-downloader/venv/bin/bandcamp-downloader.py", line 336, in <module>
    sys.exit(main())
             ^^^^^^
  File "/home/runningdroid/git/bandcamp-downloader/venv/bin/bandcamp-downloader.py", line 149, in main
    links = get_download_links_for_user(args.username)
            ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/home/runningdroid/git/bandcamp-downloader/venv/bin/bandcamp-downloader.py", line 201, in get_download_links_for_user
    'collection_count' : data['collection_count'],
                         ~~~~^^^^^^^^^^^^^^^^^^^^
KeyError: 'collection_count'
easlice commented 9 months ago

@RunningDroid There are a few things that can cause this, usually when something causes the downloader to look at the wrong url for a users profile. Can you check that you're passing your bandcamp username correctly to the script?

RunningDroid commented 9 months ago

I think I'm passing my username correctly, my bandcamp profile is https://bandcamp.com/ahavo and I'm running the downloader like this: bandcamp-downloader.py -d ~/Archive/Bandcamp -f flac avaho

easlice commented 9 months ago

Just to make absolutely sure it isn't something this easy, the url you posted says your username is ahavo but the command you posted has the username avaho. Is that just a typo in your comment but not when you're actually running the command?

RunningDroid commented 9 months ago

It was that easy, I'd typo'd my username in the command without noticing. It works now, Thanks!