Very new to beets, I have a question, hopfully someone can point me in the right direction.
Im trying to run beets lastgenre plugin from a third party python application so I can sort my music by genre’s I can run the plugin just fine on a terminal IE (beet lastgenre) if correct. Although Im trying from a python program something like these two examples.
Ive even tried subcommand
Tried a number of ways in python doing config[‘plugins’][‘lastgenre’] = True
things like that…
so if theres a simple way to run the plugin (lastgenre) from a python program, to get genres. Id be happy to hear… Thank you very much !
Sounds interesting! Since this is not a common thing to do, it would be helpful to see the code you’ve written so far (or a small test program that reflects the important part). Is it available somewhere?
Hey no its not anywhere, but definitely here some of the code !
from beets import config
from beets import importer
from beets import plugins
from beets.ui import Subcommand
from beets.plugins import BeetsPlugin
from beets.ui import _open_library
def should_resume(self, path):
Thank you for your reply, still working on it, not sure if Im doing this correctly or not.
But from my understanding
How would I invoke the plugin exactly from last genre plugin into what I have shown as code?
I have a question Ill try to be as specific as possible.
Is there a way to auto tag genres with the config file, from
inside python it’ self?
> config[‘lastgenre’][‘auto’] = True
I’ve been reading the documentation, and it seems to go
over really well the plugin system, although it doesnt
have import plugin use plugin or even auto use
plugins. It may just be me, and Ill keep trying and keep
I don’t want to run your bandwidth out, however possible.
I do appreciate your help and like your work.
If I were you, I’d start from scratch with an import beetsplug.lastgenre. From there, you can construct a new LastGenrePlugin object. You can use the plugin’s functionality by calling the methods on that object.
Ive got a question,
return importer.action.ASIS where could I find more information about this or could you tell me please?
What the ASIS means and what other options are there for it?