# Re-doing lastgenre \[lastgenre plugin question\]

**URL:** <https://discourse.beets.io/t/re-doing-lastgenre-lastgenre-plugin-question/298>\
**Category:** Help\
**Created:** [February 26, 2018, 11:45pm UTC](https://discourse.beets.io/t/re-doing-lastgenre-lastgenre-plugin-question/298 "2018-02-26T23:45:49Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![mvdct](https://avatars.discourse-cdn.com/v4/letter/m/d9b06d/32.png) [@mvdct](https://discourse.beets.io/u/mvdct)\
**Post date:** [February 26, 2018, 11:45pm UTC](https://discourse.beets.io/t/re-doing-lastgenre-lastgenre-plugin-question/298/1 "2018-02-26T23:45:49Z")

</div>

Apologies all. This is surely a noob question. I’ve spent some time in readthedocs - but am still not sure. Generally I’d play around - but last night I almost changed all my track genres to “other” by mistake, so I thought I better post asking for help.

In short, I’ve added all my music to beets. Got my config file working well. Generally I am really happy and impressed with beets.

However during the process, I realised my last genre canonicalize file wasn’t working ideally. Specifically it wasn’t, for example, picking up “trip-hop” and “hip-hop”, as the list included only “trip hop” and “hip hop”. So I ended up with lots of “other” - my fallback option in the configuration.

So now, I’d like to either:

- run the tracks in my library with genre currently set to other through the lastgenre plugin again.

- run all the tracks in my library through the lastgenre plugin again - with the expectation that nothing else will need to change so it will be quick(ish).

But how do I this? I think (perhaps wrongly) that “beet lastgenre” will just fetch relevant tracks from my library or change genre settings on my commad. How do I update tracks by getting the plugin to query last.fm again? Do I need to import again? or update? or modify? (And if so, is it possible / useful to just have the lastgenre plugin working to speed up the process?)

Thanks in advance for all your help.

---

<div class="post-metadata">

**Author:** ![adrian](https://yyz1.discourse-cdn.com/flex029/user_avatar/discourse.beets.io/adrian/32/4_2.png) [@adrian](https://discourse.beets.io/u/adrian)\
**Post date:** [February 27, 2018, 3:09am UTC](https://discourse.beets.io/t/re-doing-lastgenre-lastgenre-plugin-question/298/2 "2018-02-27T03:09:11Z")

</div>

Yep! The `lastgenre` command should do it. (It may require a `--force` option to fetch genres for music that already has genres.) In fact, you can use `beet lastgenre genre:other` to only do this to music whose genre is currently “other.”

---

<div class="post-metadata">

**Author:** ![mvdct](https://avatars.discourse-cdn.com/v4/letter/m/d9b06d/32.png) [@mvdct](https://discourse.beets.io/u/mvdct)\
**Post date:** [February 27, 2018, 11:42am UTC](https://discourse.beets.io/t/re-doing-lastgenre-lastgenre-plugin-question/298/3 "2018-02-27T11:42:01Z")

</div>

> [@adrian](#):
>
> It may require a `--force` option to fetch genres for music that already has genres.) In fact, you can use `beet lastgenre genre:other` to only do this to music whose genre is currently “other.”

Thank you so much Adrian.

I had run that command: beet lastgenre genre:other… before but it had “kept” everything, so I just assumed it was listing things from the library.

Now I see that adding the --force command at the end was the vital addition. Now it does exactly what I wanted it to. Thank you so much. So useful.

Might it be worth adding the usefulness of --force to the readthedocs documentation for the lastgenre plugin?
