Commit fb2b0b99 authored by Tony Mancill's avatar Tony Mancill

Imported Upstream version 2.6.5

parent 8fde93f5
......@@ -424,3 +424,12 @@ Version 2.6.4 2004-11-21
2 files). This is done purposefully to not confuse the issue for
folks, as I think that most audio players out there today recognize
MPEG layer 2 formatted files without issue.
-------------------------------------------------------------------------
Version 2.6.5 2005-06-01
* fixed IDv3 problem with vorbis tags in OGG files where song titles are
longer than 30 characters
* added basic m3u playlist support (unqualified filenames in target dir);
the config dialog option is in "Files"
* modified df check in misc_utils.c to use -P (POSIX output), to ignore
stderr, and to tail only the last line returned
ripperx (2.6.5-1) unstable; urgency=low
* new upstream release
- added playlist support (closes: #80743)
- fixed vorbis tag problem with song titles > 30 characters.
Thanks to Tobias Pfeiffer. (closes: #309129)
* corrected typo in manpage; thanks to A Costa (closes: #302665)
-- tony mancill <tmancill@debian.org> Wed, 1 Jun 2005 22:41:35 -0700
ripperx (2.6.4-2) unstable; urgency=low
* added icon file (closes: #299347)
-- tony mancill <tmancill@debian.org> Mon, 14 Mar 2005 21:21:40 -0800
ripperx (2.6.4-1) unstable; urgency=low
* new upstream release
......
usr/bin
usr/lib/ripperx
usr/share/pixmaps
?package(ripperx):needs="X11" section="Apps/Sound"\
title="ripperX" command="/usr/bin/ripperX"
?package(ripperx):\
needs="X11"\
section="Apps/Sound"\
title="ripperX"\
icon="/usr/share/pixmaps/ripperx.xpm"\
command="/usr/bin/ripperX"
......@@ -4,7 +4,7 @@
<!ENTITY dhfirstname "<firstname>tony</firstname>">
<!ENTITY dhsurname "<surname>mancill</surname>">
<!-- Please adjust the date whenever revising the manpage. -->
<!ENTITY dhdate "<date>December 17, 2000</date>">
<!ENTITY dhdate "<date>June 01, 2005</date>">
<!-- SECTION should be 1-8, maybe w/ subsection other parameters are
allowed: see man(7), man(1). -->
<!ENTITY dhsection "<manvolnum>1</manvolnum>">
......@@ -12,7 +12,6 @@
<!ENTITY dhusername "tony mancill">
<!ENTITY dhucpackage "<refentrytitle>RIPPERX</refentrytitle>">
<!ENTITY dhpackage "ripperX">
<!ENTITY debian "<productname>Debian GNU/Linux</productname>">
<!ENTITY gnu "<acronym>GNU</acronym>">
]>
......@@ -27,7 +26,7 @@
&dhsurname;
</author>
<copyright>
<year>2002</year>
<year>2005</year>
<holder>&dhusername;</holder>
</copyright>
&dhdate;
......@@ -61,15 +60,14 @@
<command>cdparanoia</command> to convert (i.e. "rip") CD audio tracks to
WAV files, and then calls the Vorbis/Ogg encoder
<command>oggenc</command> to convert the WAV to an OGG file.
It can also call <command>flac</command> to perform loss-less compression on the WAV file,
resulting in a FLAC file.
It can also call <command>flac</command> to perform loss-less compression
on the WAV file, resulting in a FLAC file.
Alternately,
if you have an MP3 encoder installed such as <command>lame</command> or
<command>bladeenc</command>, it can then convert the WAV into a MP3
file.</para>
Alternately, if you have an MP3 encoder installed such as <command>toolame</command>
<command>lame</command> or <command>bladeenc</command>, it can then
convert the WAV into a MP3 file.</para>
<para>Besiding a nice GUI interface, <command>&dhpackage</command> also
<para>Besides a nice GUI interface, <command>&dhpackage</command> also
supports CDDB queries to retrieve song and album information, progress
meters, and pausing while ripping.</para>
......@@ -77,7 +75,10 @@
<refsect1>
<title>OPTIONS</title>
<para>This program takes no command line arguments.</para>
<para>This program takes no command line arguments. After starting the
application, select the <emphasis>Config</emphasis> button and cycle through
the tabs to learn what options are configurable.
</para>
<para>Because Vorbis/Ogg uses variable bit rates, there is not a direct
correlation between the bitrate selected for encoding and the rate used by
......@@ -98,29 +99,18 @@
<para>cdparanoia (1).</para>
<para>oggenc (1).</para>
<para>flac (1).</para>
<para>toolame (1).</para>
<para>Documentation in /usr/share/doc/ripperx/</para>
</refsect1>
<refsect1>
<title>BUGS</title>
<para>The Vorbis/Ogg hack currently has a few quirks that make it different
from the working with the MP3 encoders. These will be fixed once Ogg
supported is integrated into the upstream code. Namely:</para>
<title>BUGS</title>
<para>Many, I'm sure... Please report them as you find them!</para>
<para>When encoding multiple OGG tracks, the "tracks remaining"
counter is a bit whacked. Pay no attention to this.</para>
<para>When encoding .ogg tracks, <command>ripperX</command> doesn't
correctly check to see if the .ogg already exists, and therefore will
encode the file again (needlessly). Furthermore, the second time around,
you will get a file without a .ogg extension. The work around for now is
not to do this! ;)</para>
<para>Everything that applies to the Ogg hack also applies to
the FLAC support.</para>
<para>Currently, only ID3v1 tags are supported.</para>
</refsect1>
......
/* XPM */
static char * ripperX_xpm[] = {
"32 32 259 2",
" c None",
". c #020204",
"+ c #18325C",
"@ c #22427C",
"# c #223F7C",
"$ c #1D3564",
"% c #070C17",
"& c #101C3A",
"* c #1C366F",
"= c #1A336C",
"- c #1A326C",
"; c #182D66",
"> c #0A1027",
", c #0B1324",
"' c #315BAA",
") c #3462B4",
"! c #325FB4",
"~ c #3059AC",
"{ c #182B56",
"] c #0F1A37",
"^ c #274897",
"/ c #2A4EA4",
"( c #264AA4",
"_ c #2648A4",
": c #101D44",
"< c #080C17",
"[ c #284884",
"} c #3460B4",
"| c #325EB4",
"1 c #325DB4",
"2 c #203A74",
"3 c #04050A",
"4 c #080C1A",
"5 c #234087",
"6 c #203C84",
"7 c #0A1024",
"8 c #04060C",
"9 c #1C3462",
"0 c #325AB4",
"a c #27458A",
"b c #0A1021",
"c c #142552",
"d c #2A50A9",
"e c #2A4BA4",
"f c #244599",
"g c #101F42",
"h c #142444",
"i c #305BAE",
"j c #315AB4",
"k c #2950A1",
"l c #0F1C37",
"m c #050811",
"n c #2A52AC",
"o c #1C3571",
"p c #0A1224",
"q c #27498E",
"r c #315AB2",
"s c #2E58AC",
"t c #182D5A",
"u c #203F7E",
"v c #244497",
"w c #060A14",
"x c #203C74",
"y c #294FA2",
"z c #2C50A9",
"A c #2A51AA",
"B c #101E3E",
"C c #0D1727",
"D c #345F9F",
"E c #427ACC",
"F c #4176CC",
"G c #3666AF",
"H c #1E365E",
"I c #305997",
"J c #3D6EC4",
"K c #3A6EC1",
"L c #3A6CBC",
"M c #1A3056",
"N c #182D56",
"O c #3057AC",
"P c #2E5AB2",
"Q c #2E56AC",
"R c #2E53AC",
"S c #192F61",
"T c #04070E",
"U c #4176CA",
"V c #3E74C4",
"W c #396BB6",
"X c #3C70BF",
"Y c #3A6EC4",
"Z c #3A6CC1",
"` c #3A6ABC",
" . c #101D36",
".. c #0E1A2F",
"+. c #2C509F",
"@. c #2E59AC",
"#. c #2E54AC",
"$. c #2B52AC",
"%. c #24438E",
"&. c #0C152E",
"*. c #14223A",
"=. c #3A6AB2",
"-. c #3E76CA",
";. c #3E72C4",
">. c #3E6FC4",
",. c #3563AE",
"'. c #0C1424",
"). c #284891",
"!. c #274999",
"~. c #102142",
"{. c #182D4A",
"]. c #3F75C2",
"^. c #4277CC",
"/. c #3E75C4",
"(. c #3B6FC4",
"_. c #3A6DC2",
":. c #3765B6",
"<. c #1F3A69",
"[. c #05080F",
"}. c #182F5E",
"|. c #203A7A",
"1. c #030407",
"2. c #1E395E",
"3. c #4278CC",
"4. c #3F76CC",
"5. c #2E5491",
"6. c #0A101E",
"7. c #1F386A",
"8. c #2C52AC",
"9. c #0C152A",
"0. c #060A11",
"a. c #284A7A",
"b. c #3F76C6",
"c. c #3B6DBC",
"d. c #1C375F",
"e. c #152447",
"f. c #2C54A1",
"g. c #2A4FA6",
"h. c #152C57",
"i. c #0A121E",
"j. c #3460A1",
"k. c #4076CC",
"l. c #3E76C6",
"m. c #3868B2",
"n. c #152642",
"o. c #244586",
"p. c #2E57AC",
"q. c #2C54AC",
"r. c #223F84",
"s. c #3C6FBE",
"t. c #3E76C7",
"u. c #3E73C4",
"v. c #3663AA",
"w. c #0E182A",
"x. c #1F366C",
"y. c #305AAF",
"z. c #2E55AC",
"A. c #2A52A7",
"B. c #2A4FA4",
"C. c #24448E",
"D. c #091021",
"E. c #0E192C",
"F. c #3E76C9",
"G. c #325C9E",
"H. c #0F1A34",
"I. c #305AB1",
"J. c #2D55AC",
"K. c #2A50A7",
"L. c #274599",
"M. c #254577",
"N. c #2B54A1",
"O. c #2E5AB1",
"P. c #234489",
"Q. c #1E3C79",
"R. c #2A50A4",
"S. c #182D64",
"T. c #284C7E",
"U. c #1F3C6A",
"V. c #1F3871",
"W. c #284C99",
"X. c #14254E",
"Y. c #1E387E",
"Z. c #080D1E",
"`. c #345FA4",
" + c #0F1F37",
".+ c #152647",
"++ c #2F54A7",
"@+ c #142652",
"#+ c #0D1A37",
"$+ c #254897",
"%+ c #274BA4",
"&+ c #2649A4",
"*+ c #234094",
"=+ c #0D1734",
"-+ c #3C70C4",
";+ c #0A1221",
">+ c #27478A",
",+ c #1B3269",
"'+ c #04070F",
")+ c #080F21",
"!+ c #203A81",
"~+ c #274AA4",
"{+ c #2646A1",
"]+ c #10204A",
"^+ c #121F37",
"/+ c #3461B1",
"(+ c #2F5AAE",
"_+ c #284B96",
":+ c #0D1831",
"<+ c #19306A",
"[+ c #2646A2",
"}+ c #26469C",
"|+ c #182E67",
"1+ c #040811",
"2+ c #152844",
"3+ c #3D71C4",
"4+ c #2A4E8A",
"5+ c #0F1B34",
"6+ c #325CB4",
"7+ c #2C52A4",
"8+ c #152851",
"9+ c #13244C",
"0+ c #24479C",
"a+ c #24449C",
"b+ c #1D3889",
"c+ c #070C1C",
"d+ c #223C6A",
"e+ c #3A6CBF",
"f+ c #305AB4",
"g+ c #2E5AAF",
"h+ c #203D81",
"i+ c #223F91",
"j+ c #22429C",
"k+ c #0C183C",
"l+ c #2F589E",
"m+ c #172749",
"n+ c #121E3C",
"o+ c #1F3C77",
"p+ c #060614",
"q+ c #203981",
"r+ c #25459C",
"s+ c #182F6F",
"t+ c #0E1A2C",
"u+ c #315DA6",
"v+ c #3A6DBC",
"w+ c #0D1729",
"x+ c #0B1429",
"y+ c #0E1E3C",
"z+ c #0C1734",
"A+ c #020614",
"B+ c #0D1634",
"C+ c #0A1634",
"D+ c #060E24",
"E+ c #0E162C",
"F+ c #31599F",
"G+ c #3560AE",
"H+ c #0F1C31",
"I+ c #12223C",
"J+ c #080F1C",
" ",
" ",
" ",
" . . . . . . . . . . ",
" + @ @ # $ % & * = - ; > ",
" , ' ) ! ~ { ] ^ / ( _ : ",
" < [ } | 1 2 3 4 5 / / ( 6 7 ",
" 8 9 } | 0 a b . c d / e f g ",
" h i | j k l m n d / e o . ",
" p q | r s t u n d / v w ",
" . . . . . . . . . 3 x | r s y z A / / B . ",
" C D E F G H I J K L M . N O P s Q R A / S T ",
" C D E U V W X Y Z ` .. ..+.@.Q #.$.A %.&. ",
" *.=.E -.V ;.>.Y Z ,.'. . ).@.Q #.$.!.~. ",
" {.].^./.;.;.(._.:.<.[. . }.Q Q #.$.|.w ",
" 1.2.3.4./.5.6.. . . . . 7.Q #.8.n 9.. ",
" 0.a.3.b.c.d. e.f.Q #.8.g.h.. ",
" i.j.k.l.m.n. b o.p.Q q.n g.r.. ",
" C s.t.u.v.w. [.x.y.p.z.8.A.B.C.D. ",
" E.F.V ;.G.. . H.I.s Q J.n K./ L.g ",
" . H V ;.;.M.. . m N.O.s Q P.Q.R./ ( S. ",
" . T.V ;.>.U.. . V.r s Q W.w X./ / ( Y.Z. ",
" . `.;.;.(. +. .+++@.Q Q @+. #+$+%+&+*+=+ ",
" . ;.;.-+Y m . ;+>+0 @.Q ,+'+ )+!+~+&+{+]+ ",
" . ^+;.-+Y /+. [.x.0 (+Q _+:+ <+( [+}+|+1+ ",
" . 2+3+Y Y 4+. . 5+6+y.p.7+8+ 9+0+[+a+b+c+ ",
" . d+Y Y e+M . . f.f+g+p.h+w 9.i+}+a+j+k+. ",
" . l+Y Z ` m+. n+0 I.s Q o+. p+q+r+j+j+s+. ",
" t+u+v+` ` w+ . x+y+y+y+z+w A+B+C+C+C+D+ ",
" E+F+` ` G+'. . . . . . . . . . . ",
" . H+I+I+I+J+ ",
" . . . . . "};
......@@ -49,6 +49,8 @@ install: build
# usr/lib/ripperx (policy)
mv `pwd`/debian/ripperx/usr/bin/ripperX_plugin-* `pwd`/debian/ripperx/usr/lib/ripperx
cp -p `pwd`/debian/ripperx.xpm `pwd`/debian/ripperx/usr/share/pixmaps/
# Build architecture-independent files here.
binary-indep: build install
......
......@@ -4,7 +4,7 @@
# Created: 1993-05-16
# Public domain
# $Id: mkinstalldirs,v 1.1.1.1 2000/11/19 13:34:41 nph Exp $
# $Id: mkinstalldirs,v 1.1.1.1 2004/11/22 17:53:29 tmancill Exp $
errstatus=0
......
.\" $Header: /aolnet/dev/src/CVS/sgml/docbook-to-man/cmd/docbook-to-man.sh,v 1.1.1.1 1998/11/13 21:31:59 db3l Exp $
.\" $Header: /cvsroot/ripperx/ripperx/ripperX.1,v 1.1.1.1 2004/11/22 17:53:26 tmancill Exp $
.\"
.\" transcript compatibility for postscript use.
.\"
......@@ -128,4 +128,4 @@ the FLAC support.
.PP
This manual page was written by tony mancill tmancill@debian.org for
the \fBDebian GNU/Linux\fP system (but may be used by others).
.\" created by instant / docbook-to-man, Sun 21 Nov 2004, 21:59
.\" created by instant / docbook-to-man, Sun 21 Nov 2004, 22:16
%define ver 2.6.2
%define ver 2.6.5
%define prefix /usr
%define rel 1
......@@ -10,7 +10,7 @@ Release: %rel
Copyright: GPL
Group: X11/Applications
Requires: cdparanoia
Source: http://www.digitallabyrinth.com/linux/ripperX/ripperX-%{ver}.tar.gz
Source: ftp://ftp.sf.net/pub/sourceforge/r/ri/ripperX/ripperX-%{ver}.tar.gz
URL: ripperx.sourceforge.net
Packager: Jos Dehaes <jos.dehaes@bigfoot.com>
BuildRoot: /var/tmp/ripperX-%{PACKAGE_VERSION}-root
......@@ -50,6 +50,7 @@ rm -rf $RPM_BUILD_ROOT
%{prefix}/bin/ripperX_plugin-lame
%{prefix}/bin/ripperX_plugin-gogo
%{prefix}/bin/ripperX_plugin-oggenc
%{prefix}/bin/ripperX_plugin-toolame
%{prefix}/bin/ripperX_plugin-bladeenc
%{prefix}/bin/ripperX_plugin-xingmp3enc
%{prefix}/bin/ripperX_plugin-l3enc
......@@ -58,6 +59,8 @@ rm -rf $RPM_BUILD_ROOT
%{prefix}/share/gnome/apps/Multimedia/ripperX.desktop
%changelog
* Wed Jun 01 2005 tony mancill <tony@mancill.com>
- version 2.6.5
* Sun Jan 04 2004 tony mancill <tony@mancill.com>
- version 2.6.1
* Thu Sep 25 2003 tony mancill <tony@mancill.com>
......
......@@ -13,12 +13,10 @@
#define COMMON_H
#include "config.h"
#include <sys/types.h>
#include "err_dialog_handler.h"
#define VERSION "2.6.4"
#define VERSION "2.6.5"
#ifndef TRUE
#define TRUE 1
......@@ -32,32 +30,33 @@
* ===================================================*/
/* Global constants */
#define MAX_OPTIONS_LENGTH 300
#define MAX_SINGLE_OPTION_LENGTH 50
#define MAX_OPTIONS_LENGTH 300
#define MAX_SINGLE_OPTION_LENGTH 50
#define MAX_COMMAND_LENGTH 2048
#define MAX_COMMAND_LENGTH 2048
#define MAX_ARGS 50
#define MAX_ARGS 50
#define MAX_FILE_PER_DIR 1024
#define MAX_FILE_NAME_LENGTH 512
#define MAX_FILE_PATH_LENGTH 512
#define MAX_TOTAL_PATH_LENGTH (MAX_FILE_PATH_LENGTH+MAX_FILE_NAME_LENGTH)
#define MAX_NUM_TRACK 100
#define MAX_TITLE_LENGTH 1024
#define MAX_ARTIST_LENGTH 1024
#define MAX_FILE_PER_DIR 1024
#define MAX_FILE_NAME_LENGTH 512
#define MAX_FILE_PATH_LENGTH 512
#define MAX_TOTAL_PATH_LENGTH (MAX_FILE_PATH_LENGTH+MAX_FILE_NAME_LENGTH)
#define MAX_NUM_TRACK 100
#define MAX_TITLE_LENGTH 1024
#define MAX_ARTIST_LENGTH 1024
#define MAX_YEAR_LENGTH 30
#define CD_SECTORS_PER_SEC (float)75.018
#define CD_SECTORS_PER_FRAME (float)1.959
#define CD_SECTORS_PER_SEC (float)75.018
#define CD_SECTORS_PER_FRAME (float)1.959
#define CD 0
#define WAV 1
#define MP3 2
#define OGG 3
#define FLAC 4
#define CD 0
#define WAV 1
#define MP3 2
#define OGG 3
#define FLAC 4
#define MIN_NICE_LEVEL 19
#define MAX_NICE_LEVEL 0
#define MIN_NICE_LEVEL 19
#define MAX_NICE_LEVEL 0
/* =====================================================
......@@ -113,6 +112,7 @@ typedef struct {
int convert_spaces;
int make_directories;
int create_id3;
int create_playlist;
int auto_lookup;
char format_string[ MAX_ARTIST_LENGTH ];
char dir_format_string[ MAX_ARTIST_LENGTH ];
......@@ -128,6 +128,7 @@ typedef struct {
int total_length;
char disc_artist[ MAX_ARTIST_LENGTH ];
char disc_title[ MAX_ARTIST_LENGTH ];
// char disc_year[ MAX_YEAR_LENGTH ]; // Putting this after category upsets text for Track1 - M.Tyler 6-3-2005
char disc_category[ MAX_ARTIST_LENGTH ];
struct _track {
char title[ MAX_FILE_NAME_LENGTH ];
......
......@@ -33,86 +33,88 @@ static struct {
int flag; /* Flag is for error checking when reading config file */
char *default_value;
} config_rw_data[] = {
{ "General::WavRatio", &config.wav_ratio,
FLOAT, 0, "0.006"},
{ "General::Mp3Ratio", &config.mp3_ratio,
FLOAT, 0, "0.08" },
{ "General::ShellForExecution", config.shell_for_execution,
STRING, 0, "/bin/sh" },
{ "General::WavPath", config.wav_path,
STRING, 0, "./" },
{ "General::Mp3Path", config.mp3_path,
STRING, 0, "./" },
{ "General::CDDBPath", config.cddb_path,
STRING, 0, "./.cddbslave" },
{ "General::WavFileNameFormat", config.wav_file_name_format,
STRING, 0, "track%" },
{ "General::Mp3FileNameFormat", config.mp3_file_name_format,
STRING, 0, "track%" },
{ "General::PrependChar", &config.prepend_char,
CHAR, 0, "_" },
{ "General::MakeMp3FromExistingWav", &config.make_mp3_from_existing_wav,
INT, 0, "0" },
{ "General::AskWhenFileExists", &config.ask_when_file_exists ,
INT, 0, "1" },
{ "General::AutoAppendExtension", &config.auto_append_extension,
INT, 0, "1" },
{ "General::KeepWav", &config.keep_wav,
INT, 0, "0" },
{ "Ripper::Ripper", config.ripper.ripper,
STRING, 0, "cdparanoia " },
{ "Ripper::Plugin", config.ripper.plugin,
STRING, 0, "ripperX_plugin-cdparanoia" },
{ "Encoder::Encoder", config.encoder.encoder,
STRING, 0, "lame" },
{ "Encoder::Bitrate", &config.encoder.bitrate,
INT, 0, "128" },
{ "Encoder::VarBitrate", &config.encoder.use_varbitrate,
INT, 0, "1" },
{ "Encoder::VBRQual", &config.encoder.vbr_qual,
INT, 0, "4" },
{ "General::WavRatio", &config.wav_ratio,
FLOAT, 0, "0.006"},
{ "General::Mp3Ratio", &config.mp3_ratio,
FLOAT, 0, "0.08" },
{ "General::ShellForExecution", config.shell_for_execution,
STRING, 0, "/bin/sh" },
{ "General::WavPath", config.wav_path,
STRING, 0, "./" },
{ "General::Mp3Path", config.mp3_path,
STRING, 0, "./" },
{ "General::CDDBPath", config.cddb_path,
STRING, 0, "./.cddbslave" },
{ "General::WavFileNameFormat", config.wav_file_name_format,
STRING, 0, "track%" },
{ "General::Mp3FileNameFormat", config.mp3_file_name_format,
STRING, 0, "track%" },
{ "General::PrependChar", &config.prepend_char,
CHAR, 0, "_" },
{ "General::MakeMp3FromExistingWav", &config.make_mp3_from_existing_wav,
INT, 0, "0" },
{ "General::AskWhenFileExists", &config.ask_when_file_exists ,
INT, 0, "1" },
{ "General::AutoAppendExtension", &config.auto_append_extension,
INT, 0, "1" },
{ "General::KeepWav", &config.keep_wav,
INT, 0, "0" },
{ "Ripper::Ripper", config.ripper.ripper,
STRING, 0, "cdparanoia " },
{ "Ripper::Plugin", config.ripper.plugin,
STRING, 0, "ripperX_plugin-cdparanoia" },
{ "Encoder::Encoder", config.encoder.encoder,
STRING, 0, "lame" },
{ "Encoder::Bitrate", &config.encoder.bitrate,
INT, 0, "128" },
{ "Encoder::VarBitrate", &config.encoder.use_varbitrate,
INT, 0, "1" },
{ "Encoder::VBRQual", &config.encoder.vbr_qual,
INT, 0, "4" },
{ "Encoder::Priority", &config.encoder.priority,
INT, 0, "10" },
{ "Encoder::HighQual", &config.encoder.use_high_qual,
INT, 0, "1" },
{ "Encoder::useCRC", &config.encoder.use_crc,
INT, 0, "0" },
{ "Encoder::extraOptions", config.encoder.extra_options,
STRING, 0, "" },
{ "Encoder::fullCommand", config.encoder.full_command,
STRING, 0, "lame -b 128" },
{ "Encoder::Plugin", config.encoder.plugin,
STRING, 0, "ripperX_plugin-lame" },
{ "CdPlayer::Play_command", config.cd_player.play_command,
STRING, 0, "cdplay play %" },
{ "CdPlayer::Stop_command", config.cd_player.stop_command,
STRING, 0, "cdplay stop" },
{ "WavPlayer::Command", config.wav_player.command,
STRING, 0, "splay %" },
{ "Mp3Player::Command", config.mp3_player.command,
STRING, 0, "mpg123 %" },
{ "CDDBConfig::Server", config.cddb_config.server,
STRING, 0, "www.freedb.org/cgi-bin/cddb.cgi" },
{ "CDDBConfig::Port", &config.cddb_config.port,
INT, 0, "80" },
{ "CDDBConfig::UseHttp", &config.cddb_config.use_http,
INT, 0, "1" },
{ "CDDBConfig::ProxyServer", &config.cddb_config.proxy_server,
STRING, 0, "" },
{ "CDDBConfig::ProxyPort", &config.cddb_config.proxy_port,
INT, 0, "8080" },
{ "CDDBConfig::ConvertSpaces", &config.cddb_config.convert_spaces,
INT, 0, "0" },
{ "CDDBConfig::MakeDirectories", &config.cddb_config.make_directories,
INT, 0, "1" },
{ "CDDBConfig::CreateID3", &config.cddb_config.create_id3,
INT, 0, "1" },
{ "CDDBConfig::AutoLookup", &config.cddb_config.auto_lookup,
INT, 0, "0" },
{ "CDDBConfig::FormatString", &config.cddb_config.format_string,
STRING, 0, "%a - %s" },
{ "CDDBConfig::DirFormatString", &config.cddb_config.dir_format_string,
STRING, 0, "%a - %v" }
INT, 0, "10" },
{ "Encoder::HighQual", &config.encoder.use_high_qual,
INT, 0, "1" },
{ "Encoder::useCRC", &config.encoder.use_crc,
INT, 0, "0" },
{ "Encoder::extraOptions", config.encoder.extra_options,
STRING, 0, "" },
{ "Encoder::fullCommand", config.encoder.full_command,
STRING, 0, "lame -b 128" },
{ "Encoder::Plugin", config.encoder.plugin,
STRING, 0, "ripperX_plugin-lame" },
{ "CdPlayer::Play_command", config.cd_player.play_command,
STRING, 0, "cdplay play %" },
{ "CdPlayer::Stop_command", config.cd_player.stop_command,
STRING, 0, "cdplay stop" },
{ "WavPlayer::Command", config.wav_player.command,
STRING, 0, "splay %" },
{ "Mp3Player::Command", config.mp3_player.command,
STRING, 0, "mpg123 %" },
{ "CDDBConfig::Server", config.cddb_config.server,
STRING, 0, "www.freedb.org/cgi-bin/cddb.cgi" },
{ "CDDBConfig::Port", &config.cddb_config.port,
INT, 0, "80" },
{ "CDDBConfig::UseHttp", &config.cddb_config.use_http,
INT, 0, "1" },
{ "CDDBConfig::ProxyServer", &config.cddb_config.proxy_server,
STRING, 0, "" },
{ "CDDBConfig::ProxyPort", &config.cddb_config.proxy_port,
INT, 0, "8080" },
{ "CDDBConfig::ConvertSpaces", &config.cddb_config.convert_spaces,
INT, 0, "0" },
{ "CDDBConfig::MakeDirectories", &config.cddb_config.make_directories,
INT, 0, "1" },
{ "CDDBConfig::CreateID3", &config.cddb_config.create_id3,
INT, 0, "1" },
{ "CDDBConfig::CreatePlaylist", &config.cddb_config.create_playlist,
INT, 0, "1" },
{ "CDDBConfig::AutoLookup", &config.cddb_config.auto_lookup,
INT, 0, "0" },
{ "CDDBConfig::FormatString", &config.cddb_config.format_string,
STRING, 0, "%a - %s" },
{ "CDDBConfig::DirFormatString", &config.cddb_config.dir_format_string,
STRING, 0, "%a - %v" }
};
static int num_entry = sizeof( config_rw_data ) / sizeof( config_rw_data[ 0 ] );
......@@ -198,16 +200,18 @@ void write_config( void )
}
if ( ( file = fdopen( fd, "w" ) ) == NULL ) {
err_handler( FDOPEN_ERR, "Cannot reopen config file as a stream" );
err_handler( FDOPEN_ERR, "Cannot re-open config file as a stream" );
close( fd );
return;
}
fputs( "//\n", file );
fputs( "// ~/.ripperXrc\n", file );
fputs( "// This is resource file for ripperX.\n", file );
fputs( "// Do not edit this file with editors. You can configure\n", file );
fputs( "// everything in the config menu.\n", file );
fputs( "// This is the resource file for ripperX.\n", file );
fputs( "// If you edit this file with an editor, you must leave all\n", file);
fputs( "// parameters in the order in which they appear. Also note\n", file);
fputs( "// that this file is overwritten each time ripperX is run.\n", file);
fputs( "//\n// You can configure everything in the config menu within ripperX.\n", file);
fputs( "//\n\n", file );