MrC;444014 Wrote:
> yes, that's exactly what the problem is.
>
>
>
> So, the correct thing is to properly escape any backquotes in the
> variable quotedsrc, and then those would be protected.
>
> Adding the two lines below should do the trick:
>
> >
Code:
--------------------
> >
> $quotedsrc =~ s/`/\\`/g;
> $quoteddest =~ s/`/\\`/g;
>
> my $convert_command =
> "$flaccmd @flacargs \"$quotedsrc\""
> . "| $lamecmd @lameargs - \"$quoteddest\"";
>
--------------------
> >
>
>
Well the part of the script I found doesn't exactly match what you
show, but adding the two lines you suggest does not seem to work. Please
forgive my ignorance of coding, I don't have an understanding of the
changes I'm making, just trying to find the code best matching what you
show and modifying as instructed. I added
Code:
--------------------
$quotedsrc =~ s/`/\\`/g;
$quoteddest =~ s/`/\\`/g;
--------------------
above
Code:
--------------------
my $convert_command =
"\"$flaccmd\" @flacargs \"$quotedsrc\""
. "| \"$lamecmd\" @lameargs - \"$tmpfilename\"";
--------------------
and I get the following error when it encounters the backtick in these
Hawai`ian track file names:
Transcoding "Various/Hawaiian Slack Key Kings/01 - Na Po`o Ka Ia.flac"
Use of uninitialized value in substitution (s///) at
/Users/BradG4iB/Desktop/flac2mp3-0.3.0rc1/flac2mp3.pl line 502.
Use of uninitialized value in substitution (s///) at
/Users/BradG4iB/Desktop/flac2mp3-0.3.0rc1/flac2mp3.pl line 503.
0: ERROR initializing decoder
init status = FLAC__STREAM_DECODER_INIT_STATUS_ERROR_OPENING_FILE
An error occurred opening the input file; it is likely that it does not
exist
or is not readable.
Writing tags to "0"
I'm grateful for any help in resolving this. Thanks for your patience.
--
bephillips
More than 40,296 songs on 2,789 albums by 2,126 artists.
Mostly flac, some mp3 and aac.
Version: 7.3.3 - 24799 @ Thu Jan 29 03:01:48 PST 2009
Operating system: Mac OS X 10.5.5 (9F33) - EN - utf8
Platform Architecture: ppc
Perl Version: 5.8.8 - darwin-thread-multi-2level
MySQL Version: 5.0.22-standard
On a 1.2GHz G4 Mac iBook with 768MB RAM
http://db.etree.org/bephillips
http://www.last.fm/user/bephillips
------------------------------------------------------------------------
bephillips's Profile: http://forums.slimdevices.com/member.php?userid=2588
View this thread: http://forums.slimdevices.com/showthread.php?t=14697
_______________________________________________
ripping mailing list
[email protected]
http://lists.slimdevices.com/mailman/listinfo/ripping