Re: [RDD] RDImport issue

2021-03-04 Thread David Klann
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


Re: [RDD] RDImport issue only just appeared

2012-03-06 Thread Guy Curtis
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 ; User discussion about the 
>Rivendell Radio Automation System  
>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


Re: [RDD] RDImport issue only just appeared

2012-03-05 Thread Rob Landry


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