YetAnotherNerd / whatlastgenre

Improve genre metadata of audio files based on tags from various music sites.
http://yetanothernerd.github.io/whatlastgenre
MIT License
80 stars 20 forks source link

No genres found for "Various Artists" albums via beets plugin #38

Open JOJ0 opened 1 year ago

JOJ0 commented 1 year ago

Hi, I finally found the time to file a proper report about the issue with "Various Artists" albums when run via the beets plugin. I mentioned this over here https://github.com/YetAnotherNerd/whatlastgenre/issues/36#issuecomment-1555022587

A non-verbose run via the beets plugin gives us:

$ beet wlg -f turbo   
wlg: ( 1/1) [############################################################] 100%
No genres found
wlg: genres for album Fracture Presents Various - 2019 [APHALP003] - Turbo  a:23-02/Discogs |EMPTY: 

No genres found (1):
  /home/jojo/Documents/Sync/beets_test_music/Uncategorized/Fracture Presents Various - 2019 - Turbo

Time elapsed: 0:00:00.016014 (0:00:00.016014 per directory)

Files are located here:

$ beet ls -p turbo 
/home/jojo/Documents/Sync/beets_test_music/Uncategorized/Fracture Presents Various - 2019 - Turbo/01.01 - Fracture - Turbo - Get Raw (2019).mp3
/home/jojo/Documents/Sync/beets_test_music/Uncategorized/Fracture Presents Various - 2019 - Turbo/01.02 - Moresounds - Turbo - You Don’t Know (2019).mp3
/home/jojo/Documents/Sync/beets_test_music/Uncategorized/Fracture Presents Various - 2019 - Turbo/01.03 - Sam Binga x OnHell - Turbo - A Mighty Quest (2019).mp3
/home/jojo/Documents/Sync/beets_test_music/Uncategorized/Fracture Presents Various - 2019 - Turbo/01.04 - Addison Groove - Turbo - Redeye (2019).mp3
/home/jojo/Documents/Sync/beets_test_music/Uncategorized/Fracture Presents Various - 2019 - Turbo/02.05 - Hyroglifics - Turbo - Aura (2019).mp3
/home/jojo/Documents/Sync/beets_test_music/Uncategorized/Fracture Presents Various - 2019 - Turbo/02.06 - Lewis James - Turbo - Kit 5000 (2019).mp3
/home/jojo/Documents/Sync/beets_test_music/Uncategorized/Fracture Presents Various - 2019 - Turbo/02.07 - Philip D Kick - Turbo - Bleach (2019).mp3
/home/jojo/Documents/Sync/beets_test_music/Uncategorized/Fracture Presents Various - 2019 - Turbo/02.08 - Fracture x Sam Binga - Turbo - EBP (2019).mp3

An explicit run of whatlastgenre without beets involved works fine:

$ whatlastgenre "/home/jojo/Documents/Sync/beets_test_music/Uncategorized/Fracture Presents Various - 2019 - Turbo"
whatlastgenre v0.2.1

Found 1 music directories!

( 1/1) [############################################################] 100%
/home/jojo/Documents/Sync/beets_test_music/Uncategorized/Fracture Presents Various - 2019 - Turbo
Genres:  Techno, Electro, Reggae, Soul
Saving metadata... done!

...all done!

4 different genres used this often:
   1 Techno                  1 Reggae              
   1 Electro                 1 Soul                

Time elapsed: 0:00:05.233238 (0:00:05.233238 per directory)

Cleaning cache... done! (0 entries removed)
Saving cache...   done! (280 entries, 0.03 MB)
JOJ0 commented 1 year ago

A verbose beets run doesn't reveal much more useful information:

$ beet -vv wlg -f turbo                                                                                            
user configuration: /home/jojo/.config/devbeets/config.yaml
data directory: /home/jojo/.config/devbeets
plugin paths: /home/jojo/git/whatlastgenre/plugin/beets/beetsplug
inline: adding item field disc_and_track
inline: adding item field fmt_onetrack
inline: adding item field fmt_albumtrack
inline: adding item field quality
inline: adding item field fmt_format
inline: adding item field fmt_genre
inline: adding album field wehave
inline: adding album field incomplete
inline: adding album field is_onetrack
inline: adding album field fmt_genre
lastgenre: Loading canonicalization tree ~/git/home_config/lastgenre_conf/genres-tree.yaml
fetchart: google: Disabling art source due to missing key
fetchart: lastfm: Disabling art source due to missing key
Sending event: pluginload
library database: /home/jojo/.config/devbeets/library.db
library directory: /home/jojo/Documents/Sync/beets_test_music
Sending event: library_opened
wlg: ( 1/1) [############################################################] 100%
No genres found
wlg: genres for album Fracture Presents Various - 2019 [APHALP003] - Turbo  a:23-02/Discogs |EMPTY: 

No genres found (1):
  /home/jojo/Documents/Sync/beets_test_music/Uncategorized/Fracture Presents Various - 2019 - Turbo

Time elapsed: 0:00:00.045093 (0:00:00.045093 per directory)

Sending event: cli_exit

Any hints on how to debug this further?

YetAnotherNerd commented 1 year ago

how about a verbose standalone run? can you show your configs? what id3 tags do those files contain?