Open gristleism opened 3 years ago
I'm facing the same problem, looking for an album that is only available on bandcamp and using beet -vv import <folder>
, I found the following:
...
bandcamp: Searching album, page 1
bandcamp: Unexpected html while scraping album 'https://01010100.bandcamp.com/album/01010100-various-artists-001': 'NoneType' object has no attribute 'text'
bandcamp: Unexpected html while scraping album 'https://musicisloverecords.bandcamp.com/album/mil002-lovebox-001-various-artists-ep': 'NoneType' object has no attribute 'text'
bandcamp: Unexpected html while scraping album 'https://industrialtechnounited.bandcamp.com/album/itu-various-artists-010': 'NoneType' object has no attribute 'text'
bandcamp: Unexpected html while scraping album 'https://industrialtechnounited.bandcamp.com/album/itu-various-artists-011': 'NoneType' object has no attribute 'text'
bandcamp: Unexpected html while scraping album 'https://paulbirken.bandcamp.com/album/tw0011-various-artists-circling-the-wagons': 'NoneType' object has no attribute 'text'
...
The first url is the correct match, but it didn't end up being parsed :(
Seeing that the current maintainer isn't very active and since bandcamp is the main place I get music from I got it fixed. I'm not expecting that a PR in this repo would see a response too soon, therefore feel free to use my fork at https://github.com/snejus/beets-bandcamp. Just clone the most recent master branch and install it manually.
Once there's a response from the maintainer, I'll open PR. Until then, let me know (either here or through an issue on my fork) if it breaks for you - that should get sorted in a couple of days max.
@snejus thanks for doing this. I cannot make issues on your fork, but I am experience this currently
-py3.7.egg/beetsplug/bandcamp.py", line 350, in get_track_info
artist_from_title, meta["title"] = self._split_artist_title(meta["title"])
AttributeError: 'BandcampPlugin' object has no attribute '_split_artist_title'
Sorry! At that point yesterday it was getting patched in multiple places but I mostly tested it with albums. Just pushed a fix for it, thanks for letting me know.
I'll move the work away from master once it gets to a more stable point - currently the way the data is parsed is very volatile and will break with basically any update bandcamp make to their html templates. It doesn't help that there weren't any tests to support it all. I'm working on this, so you may see some updates in the next days.
The issues have now been enabled by the way.
All good! Thanks for the effort. Just made an issue in your repo that i am hitting now.
Hello, and thank you so much for this plugin! Unfortunately, I'm attempting to use it with a new install of Beets and not currently having any luck, I'm afraid.
My current configuration works otherwise, but when trying to add the album
EP2
byAceMoMA
which is only on Bandcamp and not on Discogs or MusicBrainz, the follow occurs after runningbeet import /Users/*****/*****/Music/Bandcamp/library/AceMoMA/2020\ -\ EP2
So, I try to use
I
to add the Id as the URL of the album on Bandcamp:Results from
beet --version
Here is my current configuration, and everything else seems to be working without issue:
Thank you very much for your time, and please let me know if there's anything I can do to try and help with debugging or any other information I could provide to be helpful.