Move files modified by Picard out of source folder
Linux - GeneralThis Linux forum is for general Linux questions and discussion.
If it is Linux Related and doesn't seem to fit in any other forum then this is the place.
Notices
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
Move files modified by Picard out of source folder
Let me set this up, I have a massive folder with MP3s (lets call it /MP3) that I'm using Picard to attempt to populate the metadata on. Seems like every time I run it against the folder, it catches a few more files, but it also scans all the previously updated files.
So what I'd like to do is somehow move any file from /MP3 that has been modified in the last 4 hours, then move (not copy) it to /MP3-Identified but in the same subfolder structure that it existed in under /MP3.
What's the best way to do it? Then every time I rescan /MP3 after that, it'll only be scanning the unidentified files.
Let me set this up, I have a massive folder with MP3s (lets call it /MP3) that I'm using Picard to attempt to populate the metadata on. Seems like every time I run it against the folder, it catches a few more files, but it also scans all the previously updated files.
So what I'd like to do is somehow move any file from /MP3 that has been modified in the last 4 hours, then move (not copy) it to /MP3-Identified but in the same subfolder structure that it existed in under /MP3.
What's the best way to do it? Then every time I rescan /MP3 after that, it'll only be scanning the unidentified files.
its not what you're using but what I use to tag and organize according to my needs, that is why its modded here and there. I just get them situated and wittle them down until I get them where I want them to be. Anyways mod it to your needs. it copies and moves files to a different file structure to get them out of the way when they are done, it's design to make the back ups for safe keeping at the same time.
uses exiftools and mid3v2 — mutagen
but you can just use whats written to move and or copy it and plug in whatever tool you're using, I do suppose.
wow, that's pretty awesome! I'll have to play around with that.
I'll see if I can figure out some mv or rsync or something to help me clear out this folder of the files i've already got metadata for, then maybe i can try your method on the rest.
wow, that's pretty awesome! I'll have to play around with that.
I'll see if I can figure out some mv or rsync or something to help me clear out this folder of the files i've already got metadata for, then maybe i can try your method on the rest.
its already set up for that,this part here is checking for these two tags already present on the file, if yes then move them to where you tell them to go
Code:
[[ -n "$artist" ]] && [[ -n "$album" ]] ; then
this next check is for just one to be there and the other not.
Code:
[[ -n "$artist" ]] && [[ -z "$album" ]]
the other stuff is to just clean up the text strings which you might not have to do.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.