google-code-export / beets

Automatically exported from code.google.com/p/beets
MIT License
0 stars 0 forks source link

Set genre of individual songs (lastgenre) #435

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
When importing an album, lastgenre plugin is trying to fetch genre from 
last.fm. If successful, the plugin sets it as album's genre. I would however 
suggest setting also this genre for all songs in the album. This way also other 
media players can access this genre tag.

Suggested changes:

...
album = config.lib.get_album(task.album_id)
album.genre = genre

for item in album.items():
    item.genre = genre
    config.lib.store(item)
...

Original issue reported on code.google.com by tsmo...@gmail.com on 12 Sep 2012 at 10:21

GoogleCodeExporter commented 9 years ago
Thanks for the report. Actually, the code as written *does* set the genre of 
individual tracks (saying album.genre = genre does this automatically) but 
there's a bug elsewhere in beets that's preventing the genre from being written 
to the files' tags. This has been fixed in trunk:
https://github.com/sampsyo/beets/commit/931a6b636b66a4b297e32278b6c847021fa1f4c6

Here are instructions for running master if you're interested in trying out the 
fix now:
https://github.com/sampsyo/beets/wiki/FAQ#wiki-src

Original comment by adrian.sampson on 12 Sep 2012 at 10:50

GoogleCodeExporter commented 9 years ago
Thanks. I am confirming that issue is fixed in trunk. 

Original comment by tsmo...@gmail.com on 13 Sep 2012 at 7:20