E
erotemic
Guest
So, I’ve been playing around with Picard, and I’m starting to get the hang of it, but there are certain operations that are very tedious to do manually.
I noticed that using the
If not, would this feature be feasible to implement? For instance, if there was a way to add a “-e” command that listed the contents of the unidentified and identified panes in JSON or some other machine readable format, then I could write a program to ingest that, and then perhaps there could be another
I have a few use cases:
If such a feature exists, please point me to it. Otherwise, if such a feature is feasible, pointers to entrypoints in the code where I might have a stab at implementing something like this would be helpful.
I see there is a concept of a
So perhaps I would add a method in tagger to “list” contents in the tree views? Then if I get that right, I could write another method to set properties of a
That brings me to another question, when I tried
6 posts - 2 participants
Read full topic
Continue reading...
I noticed that using the
picard
CLI, there is a -e
flag that seems to let you interact with the current GUI session in a limited capacity. I’m wondering if there is something similar that can be done with the Python API? In other words, can I import picard
and then run a set of commands to query or modify the current state of the data loaded in a GUI session?If not, would this feature be feasible to implement? For instance, if there was a way to add a “-e” command that listed the contents of the unidentified and identified panes in JSON or some other machine readable format, then I could write a program to ingest that, and then perhaps there could be another
-e
command that staged a modification to an item.I have a few use cases:
Once I have all of the songs sorted into the albums I want to associate them with, I want to automatically change all of the album tags to be consistent. I can currently do this with the GUI by changing the property on each album individually, but I want to do this quickly in a batch operation.
Check if songs match more than one album in the identified tree view. Sometimes, I will have a complete album, but two versions will be identified in a scan and half of the songs go in one, and the other half go in the other. I could write a quick program to check for this case and resolve it. There are several other variants of this issue, but this example should illustrate the point.
If such a feature exists, please point me to it. Otherwise, if such a feature is feasible, pointers to entrypoints in the code where I might have a stab at implementing something like this would be helpful.
I see there is a concept of a
DataObject
, which is probably what I would want to serialize. And I also see that picard.tagger.main
seems to be the CLI entry point with commands loaded into picard_args.processable
and sent via pipe to Tagger.load_to_picard
and eventually Tagger.run_commands
, which invokes a method in picard.util.remotecommands.REMOTE_COMMANDS
, and that seems to wrap a method in the tagger itself.So perhaps I would add a method in tagger to “list” contents in the tree views? Then if I get that right, I could write another method to set properties of a
DataObject
via its serialized id?That brings me to another question, when I tried
pip install -e .
to play with picard in development mode that didn’t work. It seems like the setup.py
is fairly involved and usage requires a full pip install. I was wondering if there was a way to use development mode so I could reduce iteration time between changes / testing.6 posts - 2 participants
Read full topic
Continue reading...