Thanks to everyone who responded to my question. I have a working command that imports everything below the current directory and passes it to rdimport. That way I can run this thing for as long as it takes to import my 8000+ mp3 and flac files onto my NAS. The main problem I had was the spaces in file and folder names but Steve's command: find ./ -name "*.mp3" -print0 | xargs -0 -n1 rdimport GROUP took care of the spaces nicely.
My command lIne: find ./ -name "*.mp3" -print0 | xargs -0 -n1 rdimport --normalization-level=0 --fix-broken-formats --autotrim-level=0 --segue-level=-15 --verbose "New age" Now I just have to wait a few days for this to complete on my little Raspberry Pi. Thanks all! Phil -----Original Message----- From: Steve [mailto:riv...@braingia.org] Sent: Tuesday, March 10, 2020 7:10 PM To: rivendell-dev@lists.rivendellaudio.org Cc: Phil Biehl; 'User discussion about the Rivendell Radio Automation System' Subject: Re: [RDD] RDImport Question Hello, Yes, this can be done using the find command together with rdimport. For example, if you have cd'ed into the top-level directory in which you store the music files (and their hierarchy), you can run this to list all of the files: (Assumes .wav files) find ./ -name "*.wav" -print0 That will traverse all directories beginning with the current directory looking for files that end with .wav. Pipe that into xargs with rdimport: find ./ -name "*.mp3" -print0 | xargs -0 -n1 rdimport GROUP where GROUP is the name of the group in Rivendell in which you want to import. I just tested this command and it worked for me. Your mileage may vary. find ./ -name "*.wav" -print0 | xargs -0 -n1 rdimport --verbose TEST The command runs rdimport once for each file. You could also remove the -n1 and it will run rdimport with all of the files at once which should increase performance. I'm not that daring though, so I use -n1. The default for -n is 5000 (I think) so if you have more than 5000 files to import using xargs then increase -n accordingly. Make sure you have enough free carts in the group too. Steve > From: rivendell-dev-boun...@lists.rivendellaudio.org <rivendell-dev-boun...@lists.rivendellaudio.org> On Behalf Of Phil Biehl > Sent: Tuesday, March 10, 2020 12:43 PM > To: 'User discussion about the Rivendell Radio Automation System' <rivendell-dev@lists.rivendellaudio.org> > Subject: [RDD] RDImport Question > > Braintrust, > I have a large number of music files I want to import to Riv that are divided up into folders and subfolders. I???m hoping that there is a way to get rdimport to process these files, traversing all these subfolders. Is there a way to do this? > > Thanks, > Phil > _______________________________________________ > Rivendell-dev mailing list > Rivendell-dev@lists.rivendellaudio.org > http://caspian.paravelsystems.com/mailman/listinfo/rivendell-dev _______________________________________________ Rivendell-dev mailing list Rivendell-dev@lists.rivendellaudio.org http://caspian.paravelsystems.com/mailman/listinfo/rivendell-dev