Welcome Guest

Pages: 1
Artwork Action Request
aronsonPostOctober 27, 2021, 14:32
Beginner
Posts: 27
Registered:
March 20, 2019, 19:23
Normal topicArtwork Action Request

Hi again!

I’d like to automate some of my artwork updating workflow. After I open a selection of audio files in Yate I search discogs for primary and secondary artwork. Once the artwork is loaded I save the secondary artwork to the same folder where my audio files are located, delete the secondary artwork from Yate and then resave the files. Could this be an action?

Thanks,
Adam

2MR2PostOctober 27, 2021, 16:52
Avatar photo
Administrator
Posts: 2227
Registered:
August 23, 2012, 19:27
Normal topicArtwork Action Request

Are you searching from the Discogs wizard or via Artwork>Search for Artwork?

If you're doing it via the wizard you can have an action run automatically every time something is imported. If you're searching, it can still be done but you'll have to manually run the action.

aronsonPostOctober 27, 2021, 18:56
Beginner
Posts: 27
Registered:
March 20, 2019, 19:23
Normal topicArtwork Action Request

Manually but I’m curious about the ability to have it run automatically. Is that part of the import process? A checkbox or similar? (Not in front of my laptop right now)

2MR2PostOctober 27, 2021, 19:46
Avatar photo
Administrator
Posts: 2227
Registered:
August 23, 2012, 19:27
Normal topicArtwork Action Request

Both the Discogs and MusicBrainz wizards and the Beatport importer supports the automatic running of an action after importing data. For Discogs and MusicBrainz it is done in the associated preference sections. For Beatport it's done in the importer's options panel.

It's powerful as actions can call others so there is no limit as to what you can do. It's downside is that the specified action gets run every import and that may not be something you want to do.

I'll write the manual action and get it to you.

2MR2PostOctober 27, 2021, 20:22
Avatar photo
Administrator
Posts: 2227
Registered:
August 23, 2012, 19:27
Normal topicArtwork Action Request

Turns out it's only two lines of code to do what you want.

You can download the action at: https://2manyrobots.com/actions/SaveAndDeleteDiscogsSecondayArtwork.zip

Any artwork item with a description field of 'Discogs : secondary' will be saved to the same folder as the tracks. The artwork will be named 'Discogs Secondary Artwork {(#)}'

An artwork item that gets saved will be deleted from the audio files.

One item to note: When you save files, Yate does not by default free unused space in the audio files. If you've saved the files before running the action there will be a lot of unused space in the files after deleting the artwork. You can get rid of it by saving via File>Save Selected Files>Save Free Space if Modified or File>Save Selected Files>Save Free Space>Save Always Freeing Space. .... or ....

If you want to save the files and free unused space automatically, open the action in the Action Manager. Select the last statement (Save) which is disabled. From the context menu, enable the statement. Save the changes.

aronsonPostOctober 28, 2021, 08:44
Beginner
Posts: 27
Registered:
March 20, 2019, 19:23
Normal topicArtwork Action Request

Amazing! Thank you!

Pages: 1
Mingle Forum by Cartpauj | Version: 1.1.0beta | Page loaded in: 0.036 seconds.