beetbox / beets

music library manager and MusicBrainz tagger
http://beets.io/
MIT License
12.78k stars 1.82k forks source link

Unable to find a Specific Release: Due to punctuation, maybe? #1437

Closed jeffkennedy5 closed 9 years ago

jeffkennedy5 commented 9 years ago

The plugin didn't seem to be able to find the following release for some reason. I'm not sure if it was the apostrophe and/or the comma in the artist name, or if the artist name in my file being "A's" vs, "A's, The"...

http://www.discogs.com/As-Four-Dances/release/577452

jeffkennedy5 commented 9 years ago

A little more info here to help..... I did eventually get Beets to detect the correct release. It seems that the apostrophe is what caused the issue. By entering 'E' for Enter Search, I entered the following values, which returned the correct match:

Artist: A Album: Four Dances

sampsyo commented 9 years ago

Thanks for the additional details. Can you also include:

jeffkennedy5 commented 9 years ago

Sorry for the delay... I have the info for you now though. I found another example that seems to be a related issue, where the artist name 'A. Paul Ortega' releases aren't found, but a subsequent manual search for 'Paul Ortega' results in successful matches on Discogs for two of his releases. Note that I changed some file and folder names to remove the '.' (period) and ''' (apostrophe) characters to see if that would help, and it didn't seem to have any effect.

Anyway, sorry for the long message, but info and verbose output on import for these three releases is below. Let me know if I can help in further testing or providing any additional info to help resolve this issue.

Looking up: /media/xmasrig/Seagate Wireless/Data/Music/Music_To_Add/TestFolder/Four Dances E.P
Tagging A's - Four Dances E.P.
No album IDs found.
Search terms: A's - Four Dances E.P.
Album might be VA: False
chroma: acoustid album candidates: 0
Evaluating 10 candidates.
Candidate: As Cities Burn - EP
Success. Distance: 0.72
Candidate: A.S. - 20040701
Success. Distance: 0.62
Candidate: A.S. - Bancs publics
Success. Distance: 0.54
Candidate: A.S. - La Beat Party
Success. Distance: 0.61
Candidate: We As Human - We as Human EP
Success. Distance: 0.79
Candidate: Malcolm Arnold, The London Philharmonic Orchestra - English • Scottish & Cornish Dances
No tracks.
Candidate: Johannes Brahms / Antonín Dvořák / Franz Schubert / Edvard Grieg - Walter Klien & Beatriz Klien - Music For Piano Four Hands
No tracks.
Candidate: Jonstone's Scottish Accordion Band - Scottish Country Dances (Volume 2)
Success. Distance: 0.68
Candidate: Various - The Best Hits 100 Super 60's
Success. Distance: 0.96
Candidate: Various - A Baroque Festival
Success. Distance: 0.85

/media/xmasrig/Seagate Wireless/Data/Music/Music_To_Add/TestFolder/Four Dances E.P (4 items)
Finding tags for album "A's - Four Dances E.P.".
Candidates:
1. A.S. - Bancs publics (45.9%) (tracks, album, year) (12" Vinyl, 1994, FR, Barclay)
2. A.S. - La Beat Party (39.2%) (tracks, album, year) (12" Vinyl, 1992, FR, Barclay)
3. A.S. - 20040701 (38.4%) (tracks, album, year) (Digital Media, 2004, BE, Entity Records)
4. Jonstone's Scottish Accordion Band - Scottish Country Dances (Volume 2) (32.4%) (tracks, artist, album, ...) (Discogs, Vinyl, UK, Waverley)
5. As Cities Burn - EP (28.5%) (tracks, album, artist)
6. We As Human - We as Human EP (21.4%) (tracks, album, artist, ...) (CD, 2011, US, Atlantic)
7. Various - A Baroque Festival (14.6%) (missing tracks, tracks, album, ...) (Discogs, 4xVinyl, 1972, US, Nonesuch)
8. Various - The Best Hits 100 Super 60's (3.9%) (missing tracks, tracks, album, ...) (Discogs, 5xCD, 2008, Japan, Universal Music K.K.)
# selection (default 1), Skip, Use as-is, as Tracks, Group albums,
Enter search, enter Id, aBort? e
Artist: A
Album: Four Dances
Tagging A's - Four Dances E.P.
No album IDs found.
Search terms: A - Four Dances
Album might be VA: False
chroma: acoustid album candidates: 0
Evaluating 10 candidates.
Candidate: Unconscious Jungle - Four Dances for Dancers
Success. Distance: 0.74
Candidate: A Certain Ratio - Four for the Floor
Success. Distance: 0.67
Candidate: A Certain Ratio - Four for the Floor
Success. Distance: 0.67
Candidate: Ian Anderson - Divinities: Four Dances With God
Success. Distance: 0.71
Candidate: Funeral for a Friend - Four Ways to Scream Your Name
Success. Distance: 0.77
Candidate: John Cage / Steve Reich / Michael Tilson Thomas / Ralph Grierson - Three Dances & Four Organs
Success. Distance: 0.79
Candidate: John Cage / Steve Reich / Michael Tilson Thomas / Ralph Grierson - Three Dances & Four Organs
Success. Distance: 0.79
Candidate: John Cage / Steve Reich / Michael Tilson Thomas / Ralph Grierson - Three Dances & Four Organs
Success. Distance: 0.79
Candidate: The A's - Four Dances
Success. Distance: 0.10
Candidate: Bedřich Smetana / Antonín Dvořák : George Szell, The Cleveland Orchestra - The Moldau, Three Dances From The Bartered Bride / Carnival Overture - Four Slavonic Dances
Success. Distance: 0.77
Correcting tags from:
    A's - Four Dances E.P.
To:
    The A's - Four Dances
URL:
    https://www.discogs.com/As-Four-Dances/release/577452
(Similarity: 90.1%) (source, album, artist) (Discogs, 2xVinyl, 1982, US, Straight A's Records)
Vinyl 1
 * Do the Dance -> Do The Dance
Vinyl 2
[A]pply, More candidates, Skip, Use as-is, as Tracks, Group albums,
Enter search, enter Id, aBort? 

xmasrig@xmasrig-Unknow:~$ beet -vv info '/media/xmasrig/Seagate Wireless/Data/Music/Music_To_Add/TestFolder/Four Dances E.P'
user configuration: /home/xmasrig/.config/beets/config.yaml
data directory: /home/xmasrig/.config/beets
plugin paths: /home/xmasrig/usr/share/beets/beetsplug
Sending event: pluginload
inline: adding item field initial
inline: adding item field disc_and_track
library database: /home/xmasrig/.config/beets/library.db
library directory: /media/xmasrig/Seagate Wireless/Data/Music/Music
Sending event: library_opened
Sending event: cli_exit
xmasrig@xmasrig-Unknow:~$ beet -vv info '/media/xmasrig/Seagate Wireless/Data/Music/Music_To_Add/TestFolder/Four Dances E.P/01 - As - Do the Dance.mp3'
user configuration: /home/xmasrig/.config/beets/config.yaml
data directory: /home/xmasrig/.config/beets
plugin paths: /home/xmasrig/usr/share/beets/beetsplug
Sending event: pluginload
inline: adding item field initial
inline: adding item field disc_and_track
library database: /home/xmasrig/.config/beets/library.db
library directory: /media/xmasrig/Seagate Wireless/Data/Music/Music
Sending event: library_opened
/media/xmasrig/Seagate Wireless/Data/Music/Music_To_Add/TestFolder/Four Dances E.P/01 - As - Do the Dance.mp3
      album: Four Dances E.P.
albumartist: A's
        art: False
     artist: A's
   bitdepth: 0
    bitrate: 320000
   channels: 2
   comments: No lyrics found 3/5/2013.
       date: 1982-01-01
     format: MP3
      genre: New Wave
     genres: New Wave
     length: 258.0669
 samplerate: 44100
      title: Do the Dance
      track: 1
       year: 1982
Sending event: cli_exit
xmasrig@xmasrig-Unknow:~$ beet -vv info '/media/xmasrig/Seagate Wireless/Data/Music/Music_To_Add/TestFolder/Four Dances E.P/02 - As - Painting By Numbers.mp3'
user configuration: /home/xmasrig/.config/beets/config.yaml
data directory: /home/xmasrig/.config/beets
plugin paths: /home/xmasrig/usr/share/beets/beetsplug
Sending event: pluginload
inline: adding item field initial
inline: adding item field disc_and_track
library database: /home/xmasrig/.config/beets/library.db
library directory: /media/xmasrig/Seagate Wireless/Data/Music/Music
Sending event: library_opened
/media/xmasrig/Seagate Wireless/Data/Music/Music_To_Add/TestFolder/Four Dances E.P/02 - As - Painting By Numbers.mp3
      album: Four Dances E.P.
albumartist: A's
        art: False
     artist: A's
   bitdepth: 0
    bitrate: 320000
   channels: 2
   comments: No lyrics found 3/5/2013.
       date: 1982-01-01
     format: MP3
      genre: New Wave
     genres: New Wave
     length: 287.951
 samplerate: 44100
      title: Painting By Numbers
      track: 2
       year: 1982
Sending event: cli_exit

xmasrig@xmasrig-Unknow:~$ beet -vv info '/media/xmasrig/Seagate Wireless/Data/Music/Music_To_Add/TestFolder/Four Dances E.P/03 - As - Aint No Secret.mp3'
user configuration: /home/xmasrig/.config/beets/config.yaml
data directory: /home/xmasrig/.config/beets
plugin paths: /home/xmasrig/usr/share/beets/beetsplug
Sending event: pluginload
inline: adding item field initial
inline: adding item field disc_and_track
library database: /home/xmasrig/.config/beets/library.db
library directory: /media/xmasrig/Seagate Wireless/Data/Music/Music
Sending event: library_opened
/media/xmasrig/Seagate Wireless/Data/Music/Music_To_Add/TestFolder/Four Dances E.P/03 - As - Aint No Secret.mp3
      album: Four Dances E.P.
albumartist: A's
        art: False
     artist: A's
   bitdepth: 0
    bitrate: 320000
   channels: 2
   comments: No lyrics found 3/5/2013.
       date: 1982-01-01
     format: MP3
      genre: New Wave
     genres: New Wave
     length: 322.92895
 samplerate: 44100
      title: Ain't No Secret
      track: 3
       year: 1982
Sending event: cli_exit
xmasrig@xmasrig-Unknow:~$ beet -vv info '/media/xmasrig/Seagate Wireless/Data/Music/Music_To_Add/TestFolder/Four Dances E.P/04 - As - Girl That I Love.mp3'
user configuration: /home/xmasrig/.config/beets/config.yaml
data directory: /home/xmasrig/.config/beets
plugin paths: /home/xmasrig/usr/share/beets/beetsplug
Sending event: pluginload
inline: adding item field initial
inline: adding item field disc_and_track
library database: /home/xmasrig/.config/beets/library.db
library directory: /media/xmasrig/Seagate Wireless/Data/Music/Music
Sending event: library_opened
/media/xmasrig/Seagate Wireless/Data/Music/Music_To_Add/TestFolder/Four Dances E.P/04 - As - Girl That I Love.mp3
      album: Four Dances E.P.
albumartist: A's
        art: False
     artist: A's
   bitdepth: 0
    bitrate: 320000
   channels: 2
   comments: No lyrics found 3/5/2013.
       date: 1982-01-01
     format: MP3
      genre: New Wave
     genres: New Wave
     length: 141.012225
 samplerate: 44100
      title: Girl That I Love
      track: 4
       year: 1982
Sending event: cli_exit

A. Paul Ortega examples:

xmasrig@xmasrig-Unknow:~$ beet -vv import '/media/xmasrig/Seagate Wireless/Data/Music/Music_To_Add/TestFolder/A Paul Ortega/'
user configuration: /home/xmasrig/.config/beets/config.yaml
data directory: /home/xmasrig/.config/beets
plugin paths: /home/xmasrig/usr/share/beets/beetsplug
Sending event: pluginload
inline: adding item field initial
inline: adding item field disc_and_track
library database: /home/xmasrig/.config/beets/library.db
library directory: /media/xmasrig/Seagate Wireless/Data/Music/Music
Sending event: library_opened
Sending event: import_begin
Sending event: import_task_created
Sending event: import_task_start
Sending event: import_task_created
chroma: chroma: fingerprinted '/media/xmasrig/Seagate Wireless/Data/Music/Music_To_Add/TestFolder/A Paul Ortega/Three Worlds/07 - A. Paul Ortega - Traveling Song.mp3'
chroma: no recordings found
chroma: chroma: fingerprinted '/media/xmasrig/Seagate Wireless/Data/Music/Music_To_Add/TestFolder/A Paul Ortega/Three Worlds/08 - A. Paul Ortega - Bird Song.mp3'
chroma: no match found
chroma: chroma: fingerprinted '/media/xmasrig/Seagate Wireless/Data/Music/Music_To_Add/TestFolder/A Paul Ortega/Three Worlds/09 - A. Paul Ortega - Chicago.mp3'
chroma: no recordings found
chroma: chroma: fingerprinted '/media/xmasrig/Seagate Wireless/Data/Music/Music_To_Add/TestFolder/A Paul Ortega/Three Worlds/10 - A. Paul Ortega - Four-Ways.mp3'
chroma: no match found
chroma: chroma: fingerprinted '/media/xmasrig/Seagate Wireless/Data/Music/Music_To_Add/TestFolder/A Paul Ortega/Three Worlds/11 - A. Paul Ortega - Honor Song.mp3'
chroma: no match found
chroma: chroma: fingerprinted '/media/xmasrig/Seagate Wireless/Data/Music/Music_To_Add/TestFolder/A Paul Ortega/Three Worlds/12 - A. Paul Ortega - Moccasin Game.mp3'
chroma: no match found
chroma: chroma: fingerprinted '/media/xmasrig/Seagate Wireless/Data/Music/Music_To_Add/TestFolder/A Paul Ortega/Three Worlds/13 - A. Paul Ortega - Hand Shake.mp3'
chroma: no match found
Looking up: /media/xmasrig/Seagate Wireless/Data/Music/Music_To_Add/TestFolder/A Paul Ortega/Three Worlds
Tagging A. Paul Ortegaa - Two Worlds/Three Worlds
No album IDs found.
Search terms: A. Paul Ortegaa - Two Worlds/Three Worlds
Album might be VA: False
chroma: acoustid album candidates: 0
Evaluating 5 candidates.
Candidate: Susan Fancher - In Two Worlds
Success. Distance: 0.80
Candidate: Chico Hamilton - Man From Two Worlds
Success. Distance: 0.80
Candidate: Chico Hamilton - Man From Two Worlds
Success. Distance: 0.80
Candidate: Joe Lovano Wind Ensemble - Worlds
Success. Distance: 0.82
Candidate: ROUND TABLE - WORLD'S END
Success. Distance: 0.77
Sending event: import_task_start

/media/xmasrig/Seagate Wireless/Data/Music/Music_To_Add/TestFolder/A Paul Ortega/Three Worlds (7 items)
Finding tags for album "A. Paul Ortegaa - Two Worlds/Three Worlds".
Candidates:
1. ROUND TABLE - WORLD'S END (22.9%) (tracks, artist, album) (1997, JP)
2. Susan Fancher - In Two Worlds (20.0%) (tracks, artist, album) (Digital Media, 2009, GB, Innova Recordings)
3. Chico Hamilton - Man From Two Worlds (19.5%) (tracks, artist, album) (12" Vinyl, 1964, US, impulse!)
4. Chico Hamilton - Man From Two Worlds (19.5%) (tracks, artist, album) (Vinyl, 1964, US, impulse!)
5. Joe Lovano Wind Ensemble - Worlds (17.7%) (tracks, artist, album) (CD, 1989, FR, Label Bleu)
# selection (default 1), Skip, Use as-is, as Tracks, Group albums,
Enter search, enter Id, aBort? chroma: chroma: fingerprinted '/media/xmasrig/Seagate Wireless/Data/Music/Music_To_Add/TestFolder/A Paul Ortega/Two Worlds/01 - A. Paul Ortega - The Sunset.mp3'
chroma: no match found
chroma: chroma: fingerprinted '/media/xmasrig/Seagate Wireless/Data/Music/Music_To_Add/TestFolder/A Paul Ortega/Two Worlds/02 - A. Paul Ortega - Forty-Nine.mp3'
chroma: no match found
chroma: chroma: fingerprinted '/media/xmasrig/Seagate Wireless/Data/Music/Music_To_Add/TestFolder/A Paul Ortega/Two Worlds/03 - A. Paul Ortega - The Back and Forth.mp3'
chroma: no match found
chroma: chroma: fingerprinted '/media/xmasrig/Seagate Wireless/Data/Music/Music_To_Add/TestFolder/A Paul Ortega/Two Worlds/04 - A. Paul Ortega - The Stomp Dance.mp3'
chroma: no match found
chroma: chroma: fingerprinted '/media/xmasrig/Seagate Wireless/Data/Music/Music_To_Add/TestFolder/A Paul Ortega/Two Worlds/05 - A. Paul Ortega - The Trail Song.mp3'
chroma: no match found
chroma: chroma: fingerprinted '/media/xmasrig/Seagate Wireless/Data/Music/Music_To_Add/TestFolder/A Paul Ortega/Two Worlds/06 - A. Paul Ortega - What Is an Indian.mp3'
chroma: no match found
Looking up: /media/xmasrig/Seagate Wireless/Data/Music/Music_To_Add/TestFolder/A Paul Ortega/Two Worlds
Tagging A. Paul Ortegaa - Two Worlds/Three Worlds
No album IDs found.
Search terms: A. Paul Ortegaa - Two Worlds/Three Worlds
Album might be VA: False
chroma: acoustid album candidates: 0
Evaluating 5 candidates.
Candidate: ATB - Two Worlds
Success. Distance: 0.73
Candidate: Blatherskite - Three Worlds
Success. Distance: 0.62
Candidate: Freebass - Two Worlds Collide EP
Success. Distance: 0.66
Candidate: Vendemmian - Between Two Worlds
Success. Distance: 0.69
Candidate: A Better Tomorrow - The World's Finest
Success. Distance: 0.71
e
Artist: Paul Ortega
Album: three worlds
Tagging A. Paul Ortegaa - Two Worlds/Three Worlds
No album IDs found.
Search terms: Paul Ortega - three worlds
Album might be VA: False
chroma: acoustid album candidates: 0
Evaluating 7 candidates.
Candidate: Ortega - 1634
Success. Distance: 0.75
Candidate: Ortega - 1634
Success. Distance: 0.75
Candidate: Anthony Ortega - On Evidence
Success. Distance: 0.78
Candidate: Joe Lovano Wind Ensemble - Worlds
Success. Distance: 0.82
Candidate: Charlotte Church - Three
Success. Distance: 0.80
Candidate: A. Paul Ortega - Three Worlds
Success. Distance: 0.28
Candidate: Various - The 60 Greatest Old Time Radio Shows Of The 20th Century Selected By Walter Cronkite
Success. Distance: 0.92
Correcting tags from:
    A. Paul Ortegaa - Two Worlds/Three Worlds
To:
    A. Paul Ortega - Three Worlds
URL:
    https://www.discogs.com/A-Paul-Ortega-Three-Worlds/release/3971516
(Similarity: 72.3%) (tracks, album, source, artist) (Discogs, 2xVinyl, 1974, US, Waltiska)
Vinyl 1
 * Traveling Song (#7) -> Traveling Song (#1) (index)
 * Bird Song (#8)      -> Bird Song (#2) (index)
 * Chicago (#9)        -> Chicago (#3) (index)
 * Four-Ways (#10)     -> Four-Ways (#4) (index)
Vinyl 2
 * Honor Song (#11)    -> Honor Song (#5) (index)
 * Moccasin Game (#12) -> Moccasin Game (#6) (index)
 * Hand Shake (#13)    -> Hand Shake (#7) (index)
Apply, More candidates, Skip, Use as-is, as Tracks, Group albums,
Enter search, enter Id, aBort? b
Sending event: import
Sending event: cli_exit
xmasrig@xmasrig-Unknow:~$ beet -vv info '/media/xmasrig/Seagate Wireless/Data/Music/Music_To_Add/TestFolder/A Paul Ortega/Three Worlds/07 - A Paul Ortega - Traveling Song.mp3/'
user configuration: /home/xmasrig/.config/beets/config.yaml
data directory: /home/xmasrig/.config/beets
plugin paths: /home/xmasrig/usr/share/beets/beetsplug
Sending event: pluginload
inline: adding item field initial
inline: adding item field disc_and_track
library database: /home/xmasrig/.config/beets/library.db
library directory: /media/xmasrig/Seagate Wireless/Data/Music/Music
Sending event: library_opened
/media/xmasrig/Seagate Wireless/Data/Music/Music_To_Add/TestFolder/A Paul Ortega/Three Worlds/07 - A Paul Ortega - Traveling Song.mp3
        album: Two Worlds/Three Worlds
  albumartist: A. Paul Ortegaa
          art: True
       artist: A. Paul Ortega
     bitdepth: 0
      bitrate: 320000
     channels: 2
      encoder: iTunes 8.0.2.20
       format: MP3
        genre: World
       genres: World
       length: 133.854625
rg_track_gain: 4.49
rg_track_peak: 0.648193
   samplerate: 44100
        title: Traveling Song
        track: 7
Sending event: cli_exit
xmasrig@xmasrig-Unknow:~$ beet -vv info '/media/xmasrig/Seagate Wireless/Data/Music/Music_To_Add/TestFolder/A Paul Ortega/Three Worlds/08 - A Paul Ortega - Bird Song.mp3'
user configuration: /home/xmasrig/.config/beets/config.yaml
data directory: /home/xmasrig/.config/beets
plugin paths: /home/xmasrig/usr/share/beets/beetsplug
Sending event: pluginload
inline: adding item field initial
inline: adding item field disc_and_track
library database: /home/xmasrig/.config/beets/library.db
library directory: /media/xmasrig/Seagate Wireless/Data/Music/Music
Sending event: library_opened
/media/xmasrig/Seagate Wireless/Data/Music/Music_To_Add/TestFolder/A Paul Ortega/Three Worlds/08 - A Paul Ortega - Bird Song.mp3
        album: Two Worlds/Three Worlds
  albumartist: A. Paul Ortegaa
          art: True
       artist: A. Paul Ortega
     bitdepth: 0
      bitrate: 320000
     channels: 2
      encoder: iTunes 8.0.2.20
       format: MP3
        genre: World
       genres: World
       length: 429.769725
rg_track_gain: 2.31
rg_track_peak: 0.852081
   samplerate: 44100
        title: Bird Song
        track: 8
Sending event: cli_exit
xmasrig@xmasrig-Unknow:~$ beet -vv info '/media/xmasrig/Seagate Wireless/Data/Music/Music_To_Add/TestFolder/A Paul Ortega/Three Worlds/09 - A Paul Ortega - Chicago.mp3'
user configuration: /home/xmasrig/.config/beets/config.yaml
data directory: /home/xmasrig/.config/beets
plugin paths: /home/xmasrig/usr/share/beets/beetsplug
Sending event: pluginload
inline: adding item field initial
inline: adding item field disc_and_track
library database: /home/xmasrig/.config/beets/library.db
library directory: /media/xmasrig/Seagate Wireless/Data/Music/Music
Sending event: library_opened
/media/xmasrig/Seagate Wireless/Data/Music/Music_To_Add/TestFolder/A Paul Ortega/Three Worlds/09 - A Paul Ortega - Chicago.mp3
        album: Two Worlds/Three Worlds
  albumartist: A. Paul Ortegaa
          art: True
       artist: A. Paul Ortega
     bitdepth: 0
      bitrate: 320000
     channels: 2
      encoder: iTunes 8.0.2.20
       format: MP3
        genre: World
       genres: World
       length: 408.95015
rg_track_gain: 5.1
rg_track_peak: 0.665466
   samplerate: 44100
        title: Chicago
        track: 9
Sending event: cli_exit
xmasrig@xmasrig-Unknow:~$ beet -vv info '/media/xmasrig/Seagate Wireless/Data/Music/Music_To_Add/TestFolder/A Paul Ortega/Three Worlds/10 - A Paul Ortega - Four-Ways.mp3'
user configuration: /home/xmasrig/.config/beets/config.yaml
data directory: /home/xmasrig/.config/beets
plugin paths: /home/xmasrig/usr/share/beets/beetsplug
Sending event: pluginload
inline: adding item field initial
inline: adding item field disc_and_track
library database: /home/xmasrig/.config/beets/library.db
library directory: /media/xmasrig/Seagate Wireless/Data/Music/Music
Sending event: library_opened
/media/xmasrig/Seagate Wireless/Data/Music/Music_To_Add/TestFolder/A Paul Ortega/Three Worlds/10 - A Paul Ortega - Four-Ways.mp3
        album: Two Worlds/Three Worlds
  albumartist: A. Paul Ortegaa
          art: True
       artist: A. Paul Ortega
     bitdepth: 0
      bitrate: 320000
     channels: 2
      encoder: iTunes 8.0.2.20
       format: MP3
        genre: World
       genres: World
       length: 261.018725
rg_track_gain: 5.17
rg_track_peak: 0.597992
   samplerate: 44100
        title: Four-Ways
        track: 10
Sending event: cli_exit
xmasrig@xmasrig-Unknow:~$ beet -vv info '/media/xmasrig/Seagate Wireless/Data/Music/Music_To_Add/TestFolder/A Paul Ortega/Three Worlds/11 - A Paul Ortega - Honor Song.mp3'
user configuration: /home/xmasrig/.config/beets/config.yaml
data directory: /home/xmasrig/.config/beets
plugin paths: /home/xmasrig/usr/share/beets/beetsplug
Sending event: pluginload
inline: adding item field initial
inline: adding item field disc_and_track
library database: /home/xmasrig/.config/beets/library.db
library directory: /media/xmasrig/Seagate Wireless/Data/Music/Music
Sending event: library_opened
/media/xmasrig/Seagate Wireless/Data/Music/Music_To_Add/TestFolder/A Paul Ortega/Three Worlds/11 - A Paul Ortega - Honor Song.mp3
        album: Two Worlds/Three Worlds
  albumartist: A. Paul Ortegaa
          art: True
       artist: A. Paul Ortega
     bitdepth: 0
      bitrate: 320000
     channels: 2
      encoder: iTunes 8.0.2.20
       format: MP3
        genre: World
       genres: World
       length: 228.0783
rg_track_gain: 7.9
rg_track_peak: 0.46286
   samplerate: 44100
        title: Honor Song
        track: 11
Sending event: cli_exit
xmasrig@xmasrig-Unknow:~$ beet -vv info '/media/xmasrig/Seagate Wireless/Data/Music/Music_To_Add/TestFolder/A Paul Ortega/Three Worlds/12 - A Paul Ortega - Moccasin Game.mp3'
user configuration: /home/xmasrig/.config/beets/config.yaml
data directory: /home/xmasrig/.config/beets
plugin paths: /home/xmasrig/usr/share/beets/beetsplug
Sending event: pluginload
inline: adding item field initial
inline: adding item field disc_and_track
library database: /home/xmasrig/.config/beets/library.db
library directory: /media/xmasrig/Seagate Wireless/Data/Music/Music
Sending event: library_opened
/media/xmasrig/Seagate Wireless/Data/Music/Music_To_Add/TestFolder/A Paul Ortega/Three Worlds/12 - A Paul Ortega - Moccasin Game.mp3
        album: Two Worlds/Three Worlds
  albumartist: A. Paul Ortegaa
          art: True
       artist: A. Paul Ortega
     bitdepth: 0
      bitrate: 320000
     channels: 2
      encoder: iTunes 8.0.2.20
       format: MP3
        genre: World
       genres: World
       length: 436.796675
rg_track_gain: 1.85
rg_track_peak: 0.760345
   samplerate: 44100
        title: Moccasin Game
        track: 12
Sending event: cli_exit
xmasrig@xmasrig-Unknow:~$ beet -vv info '/media/xmasrig/Seagate Wireless/Data/Music/Music_To_Add/TestFolder/A Paul Ortega/Three Worlds/13 - A Paul Ortega - Hand Shake.mp3'
user configuration: /home/xmasrig/.config/beets/config.yaml
data directory: /home/xmasrig/.config/beets
plugin paths: /home/xmasrig/usr/share/beets/beetsplug
Sending event: pluginload
inline: adding item field initial
inline: adding item field disc_and_track
library database: /home/xmasrig/.config/beets/library.db
library directory: /media/xmasrig/Seagate Wireless/Data/Music/Music
Sending event: library_opened
/media/xmasrig/Seagate Wireless/Data/Music/Music_To_Add/TestFolder/A Paul Ortega/Three Worlds/13 - A Paul Ortega - Hand Shake.mp3
        album: Two Worlds/Three Worlds
  albumartist: A. Paul Ortegaa
          art: True
       artist: A. Paul Ortega
     bitdepth: 0
      bitrate: 320000
     channels: 2
      encoder: iTunes 8.0.2.20
       format: MP3
        genre: World
       genres: World
       length: 481.9624
rg_track_gain: 2.4
rg_track_peak: 0.614777
   samplerate: 44100
        title: Hand Shake
        track: 13
Sending event: cli_exit
xmasrig@xmasrig-Unknow:~$ beet -vv info '/media/xmasrig/Seagate Wireless/Data/Music/Music_To_Add/TestFolder/A Paul Ortega/Two Worlds/01 - A. Paul Ortega - The Sunset.mp3'
user configuration: /home/xmasrig/.config/beets/config.yaml
data directory: /home/xmasrig/.config/beets
plugin paths: /home/xmasrig/usr/share/beets/beetsplug
Sending event: pluginload
inline: adding item field initial
inline: adding item field disc_and_track
library database: /home/xmasrig/.config/beets/library.db
library directory: /media/xmasrig/Seagate Wireless/Data/Music/Music
Sending event: library_opened
/media/xmasrig/Seagate Wireless/Data/Music/Music_To_Add/TestFolder/A Paul Ortega/Two Worlds/01 - A. Paul Ortega - The Sunset.mp3
        album: Two Worlds/Three Worlds
  albumartist: A. Paul Ortegaa
          art: True
       artist: A. Paul Ortega
     bitdepth: 0
      bitrate: 320000
     channels: 2
      encoder: iTunes 8.0.2.20
       format: MP3
        genre: World
       genres: World
       length: 415.58525
rg_track_gain: 2.68
rg_track_peak: 0.840637
   samplerate: 44100
        title: The Sunset
        track: 1
Sending event: cli_exit
xmasrig@xmasrig-Unknow:~$ beet -vv info '/media/xmasrig/Seagate Wireless/Data/Music/Music_To_Add/TestFolder/A Paul Ortega/Two Worlds/02 - A. Paul Ortega - Forty-Nine.mp3'
user configuration: /home/xmasrig/.config/beets/config.yaml
data directory: /home/xmasrig/.config/beets
plugin paths: /home/xmasrig/usr/share/beets/beetsplug
Sending event: pluginload
inline: adding item field initial
inline: adding item field disc_and_track
library database: /home/xmasrig/.config/beets/library.db
library directory: /media/xmasrig/Seagate Wireless/Data/Music/Music
Sending event: library_opened
/media/xmasrig/Seagate Wireless/Data/Music/Music_To_Add/TestFolder/A Paul Ortega/Two Worlds/02 - A. Paul Ortega - Forty-Nine.mp3
        album: Two Worlds/Three Worlds
  albumartist: A. Paul Ortegaa
          art: True
       artist: A. Paul Ortega
     bitdepth: 0
      bitrate: 320000
     channels: 2
      encoder: iTunes 8.0.2.20
       format: MP3
        genre: World
       genres: World
       length: 296.3624
rg_track_gain: -2.92
rg_track_peak: 0.85199
   samplerate: 44100
        title: Forty-Nine
        track: 2
Sending event: cli_exit
xmasrig@xmasrig-Unknow:~$ beet -vv info '/media/xmasrig/Seagate Wireless/Data/Music/Music_To_Add/TestFolder/A Paul Ortega/Two Worlds/03 - A. Paul Ortega - The Back and Forth.mp3'
user configuration: /home/xmasrig/.config/beets/config.yaml
data directory: /home/xmasrig/.config/beets
plugin paths: /home/xmasrig/usr/share/beets/beetsplug
Sending event: pluginload
inline: adding item field initial
inline: adding item field disc_and_track
library database: /home/xmasrig/.config/beets/library.db
library directory: /media/xmasrig/Seagate Wireless/Data/Music/Music
Sending event: library_opened
/media/xmasrig/Seagate Wireless/Data/Music/Music_To_Add/TestFolder/A Paul Ortega/Two Worlds/03 - A. Paul Ortega - The Back and Forth.mp3
      album: Two Worlds/Three Worlds
albumartist: A. Paul Ortegaa
        art: True
     artist: A. Paul Ortega
   bitdepth: 0
    bitrate: 320000
   channels: 2
    encoder: iTunes 8.0.2.20
     format: MP3
      genre: World
     genres: World
     length: 253.5477
 samplerate: 44100
      title: The Back and Forth
      track: 3
Sending event: cli_exit
xmasrig@xmasrig-Unknow:~$ beet -vv info '/media/xmasrig/Seagate Wireless/Data/Music/Music_To_Add/TestFolder/A Paul Ortega/Two Worlds/04 - A. Paul Ortega - The Stomp Dance.mp3'
user configuration: /home/xmasrig/.config/beets/config.yaml
data directory: /home/xmasrig/.config/beets
plugin paths: /home/xmasrig/usr/share/beets/beetsplug
Sending event: pluginload
inline: adding item field initial
inline: adding item field disc_and_track
library database: /home/xmasrig/.config/beets/library.db
library directory: /media/xmasrig/Seagate Wireless/Data/Music/Music
Sending event: library_opened
/media/xmasrig/Seagate Wireless/Data/Music/Music_To_Add/TestFolder/A Paul Ortega/Two Worlds/04 - A. Paul Ortega - The Stomp Dance.mp3
        album: Two Worlds/Three Worlds
  albumartist: A. Paul Ortegaa
          art: True
       artist: A. Paul Ortega
     bitdepth: 0
      bitrate: 320000
     channels: 2
      encoder: iTunes 8.0.2.20
       format: MP3
        genre: World
       genres: World
       length: 260.626875
rg_track_gain: -0.56
rg_track_peak: 0.836548
   samplerate: 44100
        title: The Stomp Dance
        track: 4
Sending event: cli_exit
xmasrig@xmasrig-Unknow:~$ beet -vv info '/media/xmasrig/Seagate Wireless/Data/Music/Music_To_Add/TestFolder/A Paul Ortega/Two Worlds/05 - A. Paul Ortega - The Trail Song.mp3'
user configuration: /home/xmasrig/.config/beets/config.yaml
data directory: /home/xmasrig/.config/beets
plugin paths: /home/xmasrig/usr/share/beets/beetsplug
Sending event: pluginload
inline: adding item field initial
inline: adding item field disc_and_track
library database: /home/xmasrig/.config/beets/library.db
library directory: /media/xmasrig/Seagate Wireless/Data/Music/Music
Sending event: library_opened
/media/xmasrig/Seagate Wireless/Data/Music/Music_To_Add/TestFolder/A Paul Ortega/Two Worlds/05 - A. Paul Ortega - The Trail Song.mp3
        album: Two Worlds/Three Worlds
  albumartist: A. Paul Ortegaa
          art: True
       artist: A. Paul Ortega
     bitdepth: 0
      bitrate: 320000
     channels: 2
      encoder: iTunes 8.0.2.20
       format: MP3
        genre: World
       genres: World
       length: 362.086475
rg_track_gain: 1.82
rg_track_peak: 0.842377
   samplerate: 44100
        title: The Trail Song
        track: 5
Sending event: cli_exit
xmasrig@xmasrig-Unknow:~$ beet -vv info '/media/xmasrig/Seagate Wireless/Data/Music/Music_To_Add/TestFolder/A Paul Ortega/Two Worlds/06 - A. Paul Ortega - What Is an Indian.mp3'
user configuration: /home/xmasrig/.config/beets/config.yaml
data directory: /home/xmasrig/.config/beets
plugin paths: /home/xmasrig/usr/share/beets/beetsplug
Sending event: pluginload
inline: adding item field initial
inline: adding item field disc_and_track
library database: /home/xmasrig/.config/beets/library.db
library directory: /media/xmasrig/Seagate Wireless/Data/Music/Music
Sending event: library_opened
/media/xmasrig/Seagate Wireless/Data/Music/Music_To_Add/TestFolder/A Paul Ortega/Two Worlds/06 - A. Paul Ortega - What Is an Indian.mp3
        album: Two Worlds/Three Worlds
  albumartist: A. Paul Ortegaa
          art: True
       artist: A. Paul Ortega
     bitdepth: 0
      bitrate: 320000
     channels: 2
      encoder: iTunes 8.0.2.20
       format: MP3
        genre: World
       genres: World
       length: 250.1779
rg_track_gain: 3.38
rg_track_peak: 0.838348
   samplerate: 44100
        title: What Is an Indian?
        track: 6
Sending event: cli_exit
xmasrig@xmasrig-Unknow:~$ 
sampsyo commented 9 years ago

Thanks for the additional information. I did some digging, and this seems to be fundamental to the Discogs search engine—there's not really anything we can do about it.

Here's the Discogs search page for the search terms "The A's Four Dances E.P.". The expected release doesn't come up. This search for "A Four Dances" somehow finds the artist. You can try entering "As Four Dances" (just removing the apostrophe) and that also doesn't work. I can't see any reasonable policy beets can use to get better results—the Discogs search engine is just being finicky. Fortunately, we have that "enter search" album for exactly this circumstance!

And see this search for the Ortega release; there are no results at all.

If you have any bright ideas for how we can work around this shortcoming in Discogs, we could try entertaining them.

Note that I changed some file and folder names to remove the '.' (period) and ''' (apostrophe) characters to see if that would help, and it didn't seem to have any effect.

Yes, that won't change anything: filenames are not used for matching (except with the fromfilename plugin).

jeffkennedy5 commented 9 years ago

Adrian, thanks for looking into this. I do have an idea I will run by you, but, admittedly, it's not optimal.

I did some searches on Discogs after your post and see exactly what you are describing. Even Discogs' Advanced Search doesn't seem to work any better than a general search when there are punctuation characters in an artist name or release title (I noticed the same issue on titles with punctuation as well).

Anyway, for what it is worth, I've noticed that if you use sub-strings longer than 2 or 3 characters (excluding punctuation characters), the search does work a bit better. So, you might consider a search for Discogs only to go something like this:

  1. Artist name contains punctuation? 1.1. No? 1.1.1. Search artist the same way as usual. 1.2. Yes? 1.2.1. Split the artist name into segments, with any punctuation character as a delimiter. 1.2.1. First segment: always use, unless it is blank (which could be the case for an artist name beginning with a punctuation character) 1.2.2. If first segment was blank, use this segment no matter how long or short it is. 1.2.3. append all remaining segments that are at least 3 characters long, with a space between each segment. 1.2.2. Use the resulting string from steps under 1.2.1. for 'artist' search string for Discogs.
  2. Release title contains punctuation? 2.1. No? 2.1.1. Search title the same way as usual. 2.2. Yes? 2.2.1. Split the title into segments, with any punctuation character as a delimiter. 2.2.1. First segment: always use, unless it is blank (which could be the case for a release title beginning with a punctuation character) 2.2.2. If first segment was blank, use this segment no matter how long or short it is. 2.2.3. append all remaining segments that are at least 3 characters long, with a space between each segment. 2.2.2. Use the resulting string from steps under 2.2.1. for 'title' search string for Discogs.
  3. Submit the resolved string for artist and title to Discogs search.
  4. Any search results? 4.1. No: 4.1.1. Search complete. The release was not found on Discogs. 4.1. Yes: 4.1.1. Compare search results with the original artist and title (including punctuation). 4.1.2. Exact match found? 4.1.2.1. Yes: Return results to Beets as candidate as usual. 4.1.2.2. No: Exact release not found.

As stated, this is a bit convoluted, but is a close of an approximation to how I have found matches manually on a few releases. Of course, it is completely up to you if you would want to try this. Maybe this approach could be used only if no other matches are found?

In any event, it seems to be a low percentage of releases that go undetected with the current version. Thanks for writing such an impressive and useful application and numerous plugins!

sampsyo commented 9 years ago

Interesting! So does it seem like terms less than three characters long are causing the problem? Or is it just when these terms are separated by punctuation? If it's the latter, maybe a simpler algorithm would just, for every term, drop everything after the punctuation (if it occurs late in the word).

jeffkennedy5 commented 9 years ago

Based on what I've seen, the punctuation seems to be causing the issue, but for some reason, segments following the first punctuation character in an artist name or title cause the search not to work when those substrings are less than 3 characters.

If you are interested, I can start gathering some additional releases that exhibit the same problem. It seems that the short segments are hosing the search for some reason. Discogs has struggled with getting their searches to optimized for quite some time, so, I'm not all that surprised to find that there are still lingering issues.

Let me know if you want me to gather some more examples.

sampsyo commented 9 years ago

Great! Thank you for looking into it. Some additional examples would be awesome; maybe we can put together a small battery of tests.

jeffkennedy5 commented 9 years ago

Interesting finding just now.... If you enclose the artist name in double quotes, and enclose the title in double quotes, the search seems to work with the punctuation.

Artist: "A's" Title: "Four Dances" Brought up the result as the first in the list. That's a good sign, I think, but I don't know how well that type of search would lend itself to a fuzzy search...

I will get you some examples in the coming days. Hopefully we can find out a bit more about the nuances of the Discogs search.