[RDD] rdimport constant import error !!! SOLVED !!!

walter pope wsp3388 at yahoo.com
Fri Nov 12 07:25:57 EST 2010


I forgot to put the . on the end of the metadata pattern just the other day, an got an error.  The parser is looking for a literal to end the last parameter in the list. 



--- On Fri, 11/12/10, Frederick Henderson <frederickjh at gmail.com> wrote:

> From: Frederick Henderson <frederickjh at gmail.com>
> Subject: Re: [RDD] rdimport constant import error  !!!   SOLVED    !!!
> To: "User discussion about the Rivendell Radio Automation System" <rivendell-dev at lists.rivendellaudio.org>
> Received: Friday, November 12, 2010, 2:22 AM
> Hi Andy!
> 
> On Fri, 12 Nov 2010 05:46:56 +0100, VE4PER/Andy <ve4per at aim.com>
> wrote:
> 
> >> rdimport --verbose --fix-broken-formats
> --normalization-level=-6
> >> --autotrim-level=-13
> --metadata-pattern*=%a,%t,%l,%u* MUSIC
> >> "/media/##?#??##?#??????/????????
> backup/var/music/*.wav" /var/snd/
> > was the solution for what it might be worth to others.
> The delimiters in
> > --metadata-pattern= spec have to be COMMAS. The wiki
> and other related
> > help text files would lead one to believe that once
> the macro is
> > specified that ANY standard text characters can be
> specified in the
> > formatting; such is not the case. I tried
> *%a-%t-%l-%u* as well as
> > *%a"-"%t"-"%l"-"%u* and neither worked despite the
> fact that the text
> > characters were in the filnaming convention of the
> original files. In
> > spite of it being used in the filename, and the
> somewhat confusing
> > wording in the use of 'other text characters with
> macros' the command
> > string must use COMMAS as delimiters.
> 
> Ok, this works on my test 1.7.2 machine being in the
> directory with the  
> file to be processed.
> 
> rdimport --verbose --fix-broken-formats
> --normalization-level=-6  
> --autotrim-level=-13 --metadata-pattern*=%a_%t_%l_%u. MUSIC
> *.wav
> 
> to import a file named artist_title_album_user.wav
> 
> Questions: Why do you have the /var/snd on the end? 
> Are you trying to  
> import from /var/snd? As that would start a loop, however
> you did not give  
> a file spec for the /var/snd path.  You do not need to
> tell rdimport where  
> the files need to go. It knows by default or it can be
> change in  
> /etc/rd.conf
> 
> Not sure why you need to use commas as even the example
> given in the  
> RDImport help if you run:
> 
> rdimport --help
> 
> states:
> 
> "For example, the pattern '%t_%a_%g_%n.', when processing a
> filename of  
> 'My Song_My Artist_TEMP_123456.mp3', would extract 'My
> Song' as the title  
> and 'My Artist' as the artist, while importing it into cart
> 123456 in the  
> TEMP group."
> 
> So that leads me to ask which version of Rivendell are your
> running? Is  
> this one of the two BETA versions?  If so then this is
> most likely a issue  
> than needs take care of.
> 
> 
> >
> > Do chown so that the -R recursive owner:group of
> /var/music and
> > /var/snd  are  chown -R currentloggedinLinux
> user:rivendell /var/music
> > and  chown -R currentloggedinLinux user:rivendell
> /var/snd do the batch
> > import
> > as above then chown them back recursively to
> rduser:rivendell for both.
> >
> > If you want to avoid chowning, you can do an su to
> rduser, but then
> > can't su back out when done.
> 
> Sorry, but if you need to do all this it sounds like you
> are trying to  
> import files as a different user and group that is setup in
> /etc/rd.conf  
> by AudioOwner= and AudioGroup= .  If you are using a
> version 1.* series of  
> Rivendell the question is why? You should be running as the
> user in rd.conf
> 
> However, if you are using the BETA 2.* versions then you
> should never log  
> in as the user and nor the group set up in /etc/rd.conf and
> any linux user  
> should be able to import audio using rdimport. The user and
> group setup in  
> /etc/rd.conf should be a system user that is not used by
> anything but  
> Rivendell. And by the way it can not be root. I saw this in
> the code,  
> smart programmer.
> 
> Greetings,
> 
> Frederick Henderson
> Rivendell has an irc channel for help, question and
> discussion too.  
> #rivendell on irc.freenode.net
> ==================================================================================================
> 
> 
> >
> > Thanks for the tips fellows and sorry to be such a
> pest. Maybe next wrk
> > update on manual can clarify the wording a bit for
> rdimport.
> >
> >
> > aw
> >
> >
> > VE4PER/Andy wrote:
> >> was when this one was used:
> >>
> >> rdimport --verbose --fix-broken-formats
> --normalization-level=-16
> >> --autotrim-level=-13 -metadata-pattern=%a-%t-%l-%u
> MUSIC,*.wav
> >> rdimport: invalid group specified
> >>
> >>
> >>
> >>
> >>
> >> walter pope wrote:
> >>
> >>> No Comma between group and file
> >>>
> >>> --- On Thu, 11/11/10, VE4PER/Andy<ve4per at aim.com>   wrote:
> >>>
> >>>
> >>>
> >>>> From: VE4PER/Andy<ve4per at aim.com>
> >>>> Subject: Re: [RDD] rdimport constant
> import error
> >>>> To: "User discussion about the Rivendell
> Radio Automation  
> >>>> System"<rivendell-dev at lists.rivendellaudio.org>
> >>>> Received: Thursday, November 11, 2010,
> 5:56 PM
> >>>> rdimport --verbose
> >>>> --fix-broken-formats
> --normalization-level=-16
> >>>> --autotrim-level=-13
> -metadata-pattern=%a-%t-%l-%u
> >>>> MUSIC,*.wav
> >>>> rdimport: invalid group specified
> >>>>
> >>>>
> >>>> sjm wrote:
> >>>>
> >>>>
> >>>>>>> rdimport --verbose
> --fix-broken-formats
> >>>>>>>
> >>>>>>>
> >>>> --normalization-level= -16
> >>>>
> >>>>
> >>>>>>> --autotrim-level=-13
> -metadata-pattern=
> >>>>>>>
> >>>>>>>
> >>>> %a-%t-%l-%u MUSIC *.wav
> >>>>
> >>>>
> >>>>>>> rdimport: invalid group
> specified
> >>>>>>>
> >>>>>>>
> >>>>>>>
> >>>>> Two guesses:
> >>>>>
> >>>>> 1. If you really do have a space
> between the
> >>>>>
> >>>>>
> >>>> normalization-level and the
> >>>>
> >>>>
> >>>>> "-16" that is probably throwing off
> the parser.
> >>>>>
> >>>>> 2. The spaces in the file names might
> be throwing off
> >>>>>
> >>>>>
> >>>> the parser.  Try
> >>>>
> >>>>
> >>>>> single quotes rather than double
> quotes.
> >>>>>
> >>>>>
> _______________________________________________
> >>>>> Rivendell-dev mailing list
> >>>>> Rivendell-dev at lists.rivendellaudio.org
> >>>>> http://lists.rivendellaudio.org/mailman/listinfo/rivendell-dev
> >>>>>
> >>>>>
> >>>>>
> >>>>
> _______________________________________________
> >>>> Rivendell-dev mailing list
> >>>> Rivendell-dev at lists.rivendellaudio.org
> >>>> http://lists.rivendellaudio.org/mailman/listinfo/rivendell-dev
> >>>>
> >>>>
> >>>>
> >>>
> _______________________________________________
> >>> Rivendell-dev mailing list
> >>> Rivendell-dev at lists.rivendellaudio.org
> >>> http://lists.rivendellaudio.org/mailman/listinfo/rivendell-dev
> >>>
> >>>
> >> _______________________________________________
> >> Rivendell-dev mailing list
> >> Rivendell-dev at lists.rivendellaudio.org
> >> http://lists.rivendellaudio.org/mailman/listinfo/rivendell-dev
> >>
> >
> 
> 
> -- 
> Frederick Henderson
> 
> 
> Take the pledge!
> http://www.emailetiquettepledge.com/take-the-pledge
> 
> This email sent from Opera's revolutionary e-mail
> client,  
> http://www.opera.com/mail/
> and typed on the Dvorak keyboard. http://dvzine.org
> 
> Want to learn a new language the way you learned your
> first?
> Try LingQ for free!   ==>   
>    http://www.lingq.com/?referral=frederickjh
> _______________________________________________
> Rivendell-dev mailing list
> Rivendell-dev at lists.rivendellaudio.org
> http://lists.rivendellaudio.org/mailman/listinfo/rivendell-dev
> 




More information about the Rivendell-dev mailing list