Re: [RDD] RDImport issue
Hi Michael, On 3/4/21 03:26, wa7skg wrote: > > Well, I messed up a bit. Had a special situation to load some music for > a particular purpose. I created a group "Special-M" and assigned cart > numbers 5-50500 with "Enforced Cart Number" checked. The music was > copied into a folder and I ran rdimport to load it all into the library. > For this and similar reasons, I've chosen to set up new Groups with specific cart number ranges, but leaving "Enforce Cart Range" unchecked. This makes it easier to move carts between groups. May not fit your use case or workflow, but I think there's no harm in *not* enforcing ranges in a group. I'd love to hear others' thoughts on this. > Everything ran fine and I thought I was good. My mistake was in not > counting the songs. I thought there were about 300 songs. Checking after > rdimport ran showed all 500 cart numbers used. That's when I checked the > folder and found there were 794 songs. So, I edited the group to allow > 1000 carts. The question is, how do I now run rdimport again on the > folder to get the remaining 294 songs loaded? I don't want any > duplicates and I'm not sure which 500 of the 794 carts loaded. > > The only thing that comes to my mind is to delete that group, create a > new group with enough cart numbers and re-import all 794 songs. > If the metadata is "good" in the audio files (and thus in the Rivendell Library), one *could* write a script to look up Cart titles, artists, etc. and skip importing them, but for this small number of tracks it might be easier to, as you say, delete the group (and all the Carts in it), and start over. Let me know if you'd like some help with a script. It would be something like: for file in *.ogg ; do f_artist=$(get metadata artist from "${file}") f_title=$(get metadata title from "${file}") f_album=$(get metadata album from "${file}") db_cartnum=$(mysql --options Rivendell -e "select NUMBER from CART where GROUP_NAME = 'your-group-name' and ARTIST='${f_artist}' and TITLE= '${f_title}' and ALBUM='${f_album}') [[ -n "${db_cartnum}" ]] && continue rdimport GROUPNAME "${file}" done ~David > > Thanks for your suggestions. > > -- > 73, > Michael WA7SKG ___ Rivendell-dev mailing list Rivendell-dev@lists.rivendellaudio.org http://caspian.paravelsystems.com/mailman/listinfo/rivendell-dev
[RDD] RDImport issue
Well, I messed up a bit. Had a special situation to load some music for a particular purpose. I created a group "Special-M" and assigned cart numbers 5-50500 with "Enforced Cart Number" checked. The music was copied into a folder and I ran rdimport to load it all into the library. Everything ran fine and I thought I was good. My mistake was in not counting the songs. I thought there were about 300 songs. Checking after rdimport ran showed all 500 cart numbers used. That's when I checked the folder and found there were 794 songs. So, I edited the group to allow 1000 carts. The question is, how do I now run rdimport again on the folder to get the remaining 294 songs loaded? I don't want any duplicates and I'm not sure which 500 of the 794 carts loaded. The only thing that comes to my mind is to delete that group, create a new group with enough cart numbers and re-import all 794 songs. Thanks for your suggestions. -- 73, Michael WA7SKG "Any day you do not learn one new thing is a wasted day." ___ Rivendell-dev mailing list Rivendell-dev@lists.rivendellaudio.org http://caspian.paravelsystems.com/mailman/listinfo/rivendell-dev
[RDD] RDImport issue and features
Hello Fred, i can confirm here rdimport have an issue importing file with filename in utf8 format. Will be nice to have also the possibility to check for duplicate just to not import twice the same song. At the moment i'm accomplish this by a custom Python script who is modifying the file name from utf8 in ascii and checking the presence of the same artist+title in the Rivendell db and if i want also it can check the fingerprint of the file, but this last is still a working progress. What do u think about it? Regards Gabriele Fergola ___ Rivendell-dev mailing list Rivendell-dev@lists.rivendellaudio.org http://caspian.paravelsystems.com/mailman/listinfo/rivendell-dev
Re: [RDD] RDImport issue only just appeared
I get the exact same error when running the commands manually. It is on every single use of rdimport. I have no other information other than what i have given to you Cheers, Guy Curtis Broadcast Engineer A.K.A. TechnoBear www.wazufm.org/cavederave From: Rob Landry 41001...@interpring.com To: Guy Curtis guy.curt...@btinternet.com; User discussion about the Rivendell Radio Automation System rivendell-...@caspian.paravelsystems.com Sent: Monday, 5 March 2012, 22:57 Subject: Re: [RDD] RDImport issue only just appeared Do you get the error if you run the command manually? What if you change the file name? The cut number? Invalid URL? I don't like error messages that aren't complete. File not found: /blah/blah/whatever.wav is a lot more helpful than just File not found. But I suppose YMMV. Rob On Mon, 5 Mar 2012, Guy Curtis wrote: ok so i have bash scripts to do my imports which i configure to run at certain times using crontab. Using the following bash script it was previously importing the files without issue: # !/bin/bash ESDAY=`date +%d` ESYEAR=`date +%y` ESMONTH=`date +%m` rdimport --delete-cuts --to-cart=030504 --delete-source ENVIROMENT /home/wazu/radiodropbox/EarthSky/${ESDAY}_${ESYEAR}${ESMONTH}*.mp3 2 /home/wazu/Error/error-esimport.txt However now i am getting this error reported: Invalid URL, skipping /home/wazu/radiodropbox/EarthSky/05_1203Killer_Whales-90.mp3... The file exists the path is correct. I cannot work out why it cannot find it. Even made sure cart exists which it does ___ Rivendell-dev mailing list Rivendell-dev@lists.rivendellaudio.org http://lists.rivendellaudio.org/mailman/listinfo/rivendell-dev
[RDD] RDImport issue only just appeared
ok so i have bash scripts to do my imports which i configure to run at certain times using crontab. Using the following bash script it was previously importing the files without issue: # !/bin/bash ESDAY=`date +%d` ESYEAR=`date +%y` ESMONTH=`date +%m` rdimport --delete-cuts --to-cart=030504 --delete-source ENVIROMENT /home/wazu/radiodropbox/EarthSky/${ESDAY}_${ESYEAR}${ESMONTH}*.mp3 2 /home/wazu/Error/error-esimport.txt However now i am getting this error reported: Invalid URL, skipping /home/wazu/radiodropbox/EarthSky/05_1203Killer_Whales-90.mp3... The file exists the path is correct. I cannot work out why it cannot find it. Even made sure cart exists which it does ___ Rivendell-dev mailing list Rivendell-dev@lists.rivendellaudio.org http://lists.rivendellaudio.org/mailman/listinfo/rivendell-dev
Re: [RDD] RDImport issue only just appeared
Do you get the error if you run the command manually? What if you change the file name? The cut number? Invalid URL? I don't like error messages that aren't complete. File not found: /blah/blah/whatever.wav is a lot more helpful than just File not found. But I suppose YMMV. Rob On Mon, 5 Mar 2012, Guy Curtis wrote: ok so i have bash scripts to do my imports which i configure to run at certain times using crontab. Using the following bash script it was previously importing the files without issue: # !/bin/bash ESDAY=`date +%d` ESYEAR=`date +%y` ESMONTH=`date +%m` rdimport --delete-cuts --to-cart=030504 --delete-source ENVIROMENT /home/wazu/radiodropbox/EarthSky/${ESDAY}_${ESYEAR}${ESMONTH}*.mp3 2 /home/wazu/Error/error-esimport.txt However now i am getting this error reported: Invalid URL, skipping /home/wazu/radiodropbox/EarthSky/05_1203Killer_Whales-90.mp3... The file exists the path is correct. I cannot work out why it cannot find it. Even made sure cart exists which it does ___ Rivendell-dev mailing list Rivendell-dev@lists.rivendellaudio.org http://lists.rivendellaudio.org/mailman/listinfo/rivendell-dev