Closed Julf closed 8 years ago
Thanks for reporting! Can you help us reproduce this? I see you have a link to a MusicBrainz album, but you said this only matches in Discogs? Is there something I can do on my end to reproduce this, either using your files or by entering a manual search or something?
It is this one on Discogs: https://www.discogs.com/Husky-Rescue-The-Long-Lost-Friend-/release/6948755
More than happy to send you the actual files - what would be the best way?
Perhaps a Dropbox link?
Sent you a dropbox link by email - came across another album that also triggers the same issue.
Hmm... I gave it a try, but everything seemed to work fine (after I entered the Discogs URL):
$ beet imp /mnt/d/bad\ album
/mnt/d/bad album (11 items)
Finding tags for album " - ".
Candidates:
1. Various Artists - Bourbon Street Parade (31.0%) (tracks, album, source, ...) (Discogs, 2xVinyl, 1985, Netherlands, Dureco Benelux)
2. Tozovac - Uspesi (22.9%) (tracks, album, artist, ...) (Discogs, 2xCassette, 1980, Yugoslavia, Beograd Disk)
3. Jan Werich - Čochtan Vypravuje (20.8%) (tracks, unmatched tracks, album, ...) (Discogs, 4xShellac, Czechoslovakia, Supraphon)
4. Fiona - Together (5.7%) (unmatched tracks, tracks, album, ...) (Discogs, 2xVinyl, US, Jasfar Records)
5. Capcap... Cap - Woven (4.6%) (tracks, unmatched tracks, album, ...) (Discogs, Cassette, 2014, UK, Not On Label (Capcap... Cap Self-released))
# selection (default 1), Skip, Use as-is, as Tracks, Group albums,
Enter search, enter Id, aBort? i
Enter release ID: https://www.discogs.com/Husky-Rescue-The-Long-Lost-Friend-/release/6948755
Correcting tags from:
(unknown album)
To:
Husky Rescue - The Long Lost Friend
URL:
https://www.discogs.com/Husky-Rescue-The-Long-Lost-Friend-/release/6948755
(Similarity: 20.2%) (tracks, missing tracks, album, artist, source) (Discogs, 2xCD, 2015, Europe, Catskills Records Ltd.)
CD 1: The Long Lost Friend
* 11 - Rockland.flac (#0) -> Under Friendly Fire (#2) (title)
* 06 - Shine Like Neon Rays.flac (#0) -> Colors (#4) (title)
* 07 - Driving After You.flac (#0) -> June (#5) (title)
* 08 - Flash In The Dark.flac (#0) -> Mountains Only Know (#6) (title)
* 10 - Bad Girl.flac (#0) -> The Long Lost Friend (#7) (title)
* 05 - My Own Time.flac (#0) (2:46) -> Min Lilla Eld (#9) (2:36) (title, length)
* 04 - Lady Grey.flac (#0) (3:18) -> Sunrider (#12) (3:34) (title, length)
CD 2: Hypnopompic
* 03 - Oh My God.flac (#0) (3:24) -> Pistachio Tree (#14) (3:43) (title, length)
* 02 - Curvaceous Needs.flac (#0) (3:26) -> Wind In The Willows II (#18) (3:44) (title, length)
* 01 - Old De Spain.flac (#0) -> Deep Forest Green (Clouds Interpretation) (#23) (title)
* 09 - My Dear.flac (#0) (3:04) -> Fast Lane (ID Session Audio) (#24) (3:47) (title, length)
Missing tracks (13/24 - 54.2%):
! Restless Feet (#1) (4:18)
! River (#3) (5:07)
! Tree House (#8) (7:23)
! Deep Forest Green (#10) (3:59)
! Wind In The Willows (#11) (3:59)
! Skin Of Snow (#13) (3:53)
! Sunrise In The Mist (#15) (8:53)
! Robot Requiem (#16) (2:15)
! Werewolf & Fools (#17) (4:55)
! Jigsaw Puzzle (#19) (1:54)
! Far From The Storm (#20) (4:04)
! Onnellisuus (#21) (4:04)
! Tree House (Clouds Remix) (#22) (5:00)
Apply, More candidates, Skip, Use as-is, as Tracks, Group albums,
Enter search, enter Id, aBort? a
$
I'm stumped! Any chance deleting your ls ~/.config/beets/discogs_token.json
and re-authorizing has an effect?
Deleted discogs_token.json - but now import doesn't prompt me to reauthorize, it just tells me "error: communication with Discogs failed"
Wow; that's even stranger. Anything in the verbose log?
Sending event: library_opened Sending event: import_begin discogs: connection error: 302: Invalid response from request token URL.
OK---I notice you have a custom Discogs API key in your configuration:
discogs:
tokenfile: discogs_token.json
apikey: REDACTED
apisecret: REDACTED
source_weight: 0.5
Does it help to remove that?
It is not in my config file.
That's odd. Could you perhaps paste your whole config file?
color: false
timeout: 1
pluginpath: /home/julf/beetsplug
threaded: false
directory: /home/music/all
library: ~/data/musiclibrary.blb
plugins: lyrics lastgenre embedart fetchart echonest chroma mbsync inline importfeeds missing duplicates edit badfiles discogs # beatport convert logmetadatachanges
paths:
default: %asciify{$albumartist}/%asciify{$album%aunique{}}/%if{$multidisc,Disc $disc/}$track - %asciify{$title}
singleton: Non-Album/%asciify{$artist}/%asciify{$title}
comp: Compilations/%asciify{$album%aunique{}}/%if{$multidisc,Disc $disc/}$track %asciify{$title}
xcomp: Compilations/%asciify{$album%aunique{albumartist album disc, albumtype year label catalognum albumdisambig}}/%if{$multidisc,Disc $disc/}$track %asciify{$title}
import:
log: ~/beets.log
incremental: yes
write: yes
lastgenre:
canonical: ''
logmetadatachanges:
logfile: /home/music/metadatachanges.log
importfeeds:
formats: m3u
dir: /home/music/playlists
absolute_path: yes
m3u_name: newfiles.m3u
pathfields:
multidisc: 1 if disctotal > 1 else 0
echonest:
convert: no
apikey: #############
missing:
format: $albumartist - $album - $title
count: no
total: no
convert:
dest: /home/music/empeg/mp3s/
embed: yes
max_bitrate: 192
format: mp3
auto: yes
never_convert_lossy_files: yes
command: /home/music/progs/runlame $source $dest
extension: mp3
replaygain:
backend: audiotools
embedart:
#compare_threshold: 30
ifempty: yes
badfiles:
commands:
flac: flac --test --warnings-as-errors --silent
And just to be sure, I ran "find /home/ -type f -print0 | xargs -0 grep discogs_token.json". Only file with a mention of discogs_token.json was the plugin itself.
Thanks for all the extra investigation. I'm mystified about both:
beet config
is showing a bunch of default values even though you didn't override them.One last crazy idea: I've noticed that some authentication servers depend on the time being set correctly. Can you check your system clock to make sure it's right? (This sometimes goes wrong in virtual machines and such.)
I am mystified too. Time is set correctly (real, physical server (as opposed to VM) and synchronized to several NTP servers.
Scrounging for other ideas: perhaps the discogs_client
module needs an update? You can try with pip install -U discogs_client
.
That seems to have done it! Now it asked for a new authorization key and doesn't crash any more. I guess I was under the naive impression that pip install -U beets updates the modules as well. Anyway, thanks, really appreciate the help!
Aha! Well, glad that's fixed. I should have thought of that earlier!
FWIW, pip install -U beets
upgrades beets and its direct dependencies, but it doesn't do anything about plugin dependencies.
Is there any handy way to upgrade all plugins, or does that have to be done plugin-by-plugin?
You can update any of the plugins found in the extra_requires
section of setup.py
.
You can do this like so:
pip install -U beets[plugin_name]
And to do multiple:
pip install -U beets[first_plugin,second_plugin,...]
Here's the command to update all plugins (although be warned, it will install plugins that are not already installed and may fail for metasync
(see install log for #1943)):
pip install -U beets[fetchart,chroma,discogs,echonest,lastgenre,mpdstats,web,import,thumbnails,metasync]
And in your case, here is how you can update just discogs
(although I see you have already done it):
pip install -U beets[discogs]
Thanks @jackwilsdon !! I guess i had to update a few more plugins as well. This issue can be closed
You commented on the wrong issue, haha! I'll close #1993 anyway, glad it's sorted out 😄.
Problem
Running this command in verbose (
-vv
) mode:Led to this problem:
Here's a link to the music files that trigger the bug (if relevant): http://musicbrainz.org/release/5fcf4c41-80bb-491e-9612-bba21ffa2802
Setup
My configuration (output of
beet config
) is: