mirror of
https://github.com/ElvishArtisan/rivendell.git
synced 2025-04-10 06:48:22 +02:00
2022-08-31 Fred Gleason <fredg@paravelsystems.com>
* Modified the per-track ripper in rdlibrary(1) to use CD-Text. Signed-off-by: Fred Gleason <fredg@paravelsystems.com>
This commit is contained in:
parent
e7a03c8b52
commit
c6a6a69da5
@ -20914,3 +20914,5 @@
|
|||||||
started with a previous instance running.
|
started with a previous instance running.
|
||||||
2022-08-30 Fred Gleason <fredg@paravelsystems.com>
|
2022-08-30 Fred Gleason <fredg@paravelsystems.com>
|
||||||
* Modified the full disc ripper in rdlibrary(1) to use CD-Text.
|
* Modified the full disc ripper in rdlibrary(1) to use CD-Text.
|
||||||
|
2022-08-31 Fred Gleason <fredg@paravelsystems.com>
|
||||||
|
* Modified the per-track ripper in rdlibrary(1) to use CD-Text.
|
||||||
|
@ -30,13 +30,17 @@ RDDiscRecord::RDDiscRecord()
|
|||||||
|
|
||||||
void RDDiscRecord::clear()
|
void RDDiscRecord::clear()
|
||||||
{
|
{
|
||||||
|
for(int i=0;i<CDROM_LEADOUT;i++) {
|
||||||
|
disc_track_title[RDDiscRecord::LocalSource][i]=
|
||||||
|
QObject::tr("Track")+QString().sprintf(" %d",i+1);
|
||||||
|
disc_track_title[RDDiscRecord::RemoteSource][i]="";
|
||||||
|
}
|
||||||
for(int i=0;i<RDDiscRecord::LastSource;i++) {
|
for(int i=0;i<RDDiscRecord::LastSource;i++) {
|
||||||
disc_has_data[i]=false;
|
disc_has_data[i]=false;
|
||||||
disc_disc_title[i]="";
|
disc_disc_title[i]="";
|
||||||
disc_disc_artist[i]="";
|
disc_disc_artist[i]="";
|
||||||
disc_disc_album[i]="";
|
disc_disc_album[i]="";
|
||||||
for(int j=0;j<CDROM_LEADOUT;j++) {
|
for(int j=0;j<CDROM_LEADOUT;j++) {
|
||||||
disc_track_title[i][j]="";
|
|
||||||
disc_track_artist[i][j]="";
|
disc_track_artist[i][j]="";
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@ -2,7 +2,7 @@
|
|||||||
//
|
//
|
||||||
// CD Track Ripper Dialog for Rivendell.
|
// CD Track Ripper Dialog for Rivendell.
|
||||||
//
|
//
|
||||||
// (C) Copyright 2002-2020 Fred Gleason <fredg@paravelsystems.com>
|
// (C) Copyright 2002-2022 Fred Gleason <fredg@paravelsystems.com>
|
||||||
//
|
//
|
||||||
// This program is free software; you can redistribute it and/or modify
|
// This program is free software; you can redistribute it and/or modify
|
||||||
// it under the terms of the GNU General Public License version 2 as
|
// it under the terms of the GNU General Public License version 2 as
|
||||||
@ -138,7 +138,7 @@ CdRipper::CdRipper(QString cutname,RDDiscRecord *rec,RDLibraryConf *conf,
|
|||||||
rip_apply_box->setChecked(true);
|
rip_apply_box->setChecked(true);
|
||||||
rip_apply_box->setDisabled(true);
|
rip_apply_box->setDisabled(true);
|
||||||
rip_apply_label=new QLabel(rip_apply_box,tr("Apply")+" "+
|
rip_apply_label=new QLabel(rip_apply_box,tr("Apply")+" "+
|
||||||
rip_disc_lookup->sourceName()+" "+
|
tr("Metadata")+" "+
|
||||||
tr("Values to Cart"),this);
|
tr("Values to Cart"),this);
|
||||||
rip_apply_label->setFont(labelFont());
|
rip_apply_label->setFont(labelFont());
|
||||||
rip_apply_label->setAlignment(Qt::AlignLeft);
|
rip_apply_label->setAlignment(Qt::AlignLeft);
|
||||||
@ -576,6 +576,7 @@ void CdRipper::mediaChangedData()
|
|||||||
l->setText(4,tr("Data Track"));
|
l->setText(4,tr("Data Track"));
|
||||||
}
|
}
|
||||||
l->setText(1,RDGetTimeLength(rip_cdrom->trackLength(i)));
|
l->setText(1,RDGetTimeLength(rip_cdrom->trackLength(i)));
|
||||||
|
l->setText(2,tr("Track")+QString().sprintf(" %d",i));
|
||||||
}
|
}
|
||||||
rip_disc_record->clear();
|
rip_disc_record->clear();
|
||||||
rip_cdrom->setCddbRecord(rip_disc_record);
|
rip_cdrom->setCddbRecord(rip_disc_record);
|
||||||
@ -602,23 +603,37 @@ void CdRipper::stoppedData()
|
|||||||
|
|
||||||
void CdRipper::lookupDoneData(RDDiscLookup::Result result,const QString &err_msg)
|
void CdRipper::lookupDoneData(RDDiscLookup::Result result,const QString &err_msg)
|
||||||
{
|
{
|
||||||
RDDiscRecord::DataSource src=RDDiscRecord::RemoteSource;
|
RDDiscRecord::DataSource src=RDDiscRecord::LastSource;
|
||||||
|
if(rip_disc_record->hasData(RDDiscRecord::LocalSource)) {
|
||||||
|
src=RDDiscRecord::LocalSource;
|
||||||
|
}
|
||||||
|
else {
|
||||||
|
if(rip_disc_record->hasData(RDDiscRecord::RemoteSource)) {
|
||||||
|
src=RDDiscRecord::RemoteSource;
|
||||||
|
}
|
||||||
|
else {
|
||||||
|
rip_apply_box->hide();
|
||||||
|
rip_apply_label->hide();
|
||||||
|
rip_track[0]=-1;
|
||||||
|
rip_track[1]=-1;
|
||||||
|
return; // Apply no metadata
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
switch(result) {
|
switch(result) {
|
||||||
case RDDiscLookup::ExactMatch:
|
case RDDiscLookup::ExactMatch:
|
||||||
if(rip_cdrom->status()!=RDCdPlayer::Ok) {
|
if(rip_cdrom->status()!=RDCdPlayer::Ok) {
|
||||||
|
rip_track[0]=-1;
|
||||||
|
rip_track[1]=-1;
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
//
|
|
||||||
// FIXME: What do we do if we get BOTH local and remote data?
|
|
||||||
//
|
|
||||||
rip_artist_edit->setText(rip_disc_record->discArtist(src));
|
rip_artist_edit->setText(rip_disc_record->discArtist(src));
|
||||||
rip_album_edit->setText(rip_disc_record->discAlbum(src));
|
rip_album_edit->setText(rip_disc_record->discAlbum(src));
|
||||||
rip_label_edit->setText(rip_disc_record->discLabel());
|
rip_label_edit->setText(rip_disc_record->discLabel());
|
||||||
rip_other_edit->setText(rip_disc_record->discExtended());
|
rip_other_edit->setText(rip_disc_record->discExtended());
|
||||||
for(int i=0;i<rip_disc_record->tracks();i++) {
|
for(int i=0;i<rip_disc_record->tracks();i++) {
|
||||||
rip_track_list->findItem(QString().sprintf("%d",i+1),0)->
|
rip_track_list->findItem(QString().sprintf("%d",i+1),0)->
|
||||||
setText(2,rip_disc_record->trackTitle(src,i));
|
setText(2,rip_disc_record->trackTitle(src,i));
|
||||||
rip_track_list->findItem(QString().sprintf("%d",i+1),0)->
|
rip_track_list->findItem(QString().sprintf("%d",i+1),0)->
|
||||||
setText(3,rip_disc_record->trackExtended(i));
|
setText(3,rip_disc_record->trackExtended(i));
|
||||||
}
|
}
|
||||||
@ -627,10 +642,14 @@ void CdRipper::lookupDoneData(RDDiscLookup::Result result,const QString &err_msg
|
|||||||
rip_apply_label->setEnabled(true);
|
rip_apply_label->setEnabled(true);
|
||||||
rip_browser_button->setDisabled(rip_disc_lookup->sourceUrl().isNull());
|
rip_browser_button->setDisabled(rip_disc_lookup->sourceUrl().isNull());
|
||||||
rip_browser_label->setDisabled(rip_disc_lookup->sourceUrl().isNull());
|
rip_browser_label->setDisabled(rip_disc_lookup->sourceUrl().isNull());
|
||||||
|
rip_apply_box->show();
|
||||||
|
rip_apply_label->show();
|
||||||
trackSelectionChangedData();
|
trackSelectionChangedData();
|
||||||
break;
|
break;
|
||||||
|
|
||||||
case RDDiscLookup::NoMatch:
|
case RDDiscLookup::NoMatch:
|
||||||
|
rip_apply_box->hide();
|
||||||
|
rip_apply_label->hide();
|
||||||
rip_track[0]=-1;
|
rip_track[0]=-1;
|
||||||
rip_track[1]=-1;
|
rip_track[1]=-1;
|
||||||
break;
|
break;
|
||||||
@ -638,6 +657,8 @@ void CdRipper::lookupDoneData(RDDiscLookup::Result result,const QString &err_msg
|
|||||||
case RDDiscLookup::LookupError:
|
case RDDiscLookup::LookupError:
|
||||||
QMessageBox::warning(this,"RDLibrary - "+rip_disc_lookup->sourceName()+
|
QMessageBox::warning(this,"RDLibrary - "+rip_disc_lookup->sourceName()+
|
||||||
" "+tr("Lookup Error"),err_msg);
|
" "+tr("Lookup Error"),err_msg);
|
||||||
|
rip_apply_box->hide();
|
||||||
|
rip_apply_label->hide();
|
||||||
rip_track[0]=-1;
|
rip_track[0]=-1;
|
||||||
rip_track[1]=-1;
|
rip_track[1]=-1;
|
||||||
break;
|
break;
|
||||||
|
@ -476,6 +476,14 @@ Track</source>
|
|||||||
<source>Label:</source>
|
<source>Label:</source>
|
||||||
<translation type="unfinished"></translation>
|
<translation type="unfinished"></translation>
|
||||||
</message>
|
</message>
|
||||||
|
<message>
|
||||||
|
<source>Metadata</source>
|
||||||
|
<translation type="unfinished"></translation>
|
||||||
|
</message>
|
||||||
|
<message>
|
||||||
|
<source>Track</source>
|
||||||
|
<translation type="unfinished"></translation>
|
||||||
|
</message>
|
||||||
</context>
|
</context>
|
||||||
<context>
|
<context>
|
||||||
<name>DiskGauge</name>
|
<name>DiskGauge</name>
|
||||||
|
@ -476,6 +476,14 @@ Track</source>
|
|||||||
<source>Label:</source>
|
<source>Label:</source>
|
||||||
<translation type="unfinished"></translation>
|
<translation type="unfinished"></translation>
|
||||||
</message>
|
</message>
|
||||||
|
<message>
|
||||||
|
<source>Metadata</source>
|
||||||
|
<translation type="unfinished"></translation>
|
||||||
|
</message>
|
||||||
|
<message>
|
||||||
|
<source>Track</source>
|
||||||
|
<translation type="unfinished"></translation>
|
||||||
|
</message>
|
||||||
</context>
|
</context>
|
||||||
<context>
|
<context>
|
||||||
<name>DiskGauge</name>
|
<name>DiskGauge</name>
|
||||||
|
@ -476,6 +476,14 @@ Track</source>
|
|||||||
<source>Label:</source>
|
<source>Label:</source>
|
||||||
<translation type="unfinished"></translation>
|
<translation type="unfinished"></translation>
|
||||||
</message>
|
</message>
|
||||||
|
<message>
|
||||||
|
<source>Metadata</source>
|
||||||
|
<translation type="unfinished"></translation>
|
||||||
|
</message>
|
||||||
|
<message>
|
||||||
|
<source>Track</source>
|
||||||
|
<translation type="unfinished"></translation>
|
||||||
|
</message>
|
||||||
</context>
|
</context>
|
||||||
<context>
|
<context>
|
||||||
<name>DiskGauge</name>
|
<name>DiskGauge</name>
|
||||||
|
@ -364,6 +364,14 @@ Track</source>
|
|||||||
<source>Label:</source>
|
<source>Label:</source>
|
||||||
<translation type="unfinished"></translation>
|
<translation type="unfinished"></translation>
|
||||||
</message>
|
</message>
|
||||||
|
<message>
|
||||||
|
<source>Metadata</source>
|
||||||
|
<translation type="unfinished"></translation>
|
||||||
|
</message>
|
||||||
|
<message>
|
||||||
|
<source>Track</source>
|
||||||
|
<translation type="unfinished"></translation>
|
||||||
|
</message>
|
||||||
</context>
|
</context>
|
||||||
<context>
|
<context>
|
||||||
<name>DiskGauge</name>
|
<name>DiskGauge</name>
|
||||||
|
@ -466,6 +466,14 @@ Track</source>
|
|||||||
<source>Label:</source>
|
<source>Label:</source>
|
||||||
<translation type="unfinished"></translation>
|
<translation type="unfinished"></translation>
|
||||||
</message>
|
</message>
|
||||||
|
<message>
|
||||||
|
<source>Metadata</source>
|
||||||
|
<translation type="unfinished"></translation>
|
||||||
|
</message>
|
||||||
|
<message>
|
||||||
|
<source>Track</source>
|
||||||
|
<translation type="unfinished"></translation>
|
||||||
|
</message>
|
||||||
</context>
|
</context>
|
||||||
<context>
|
<context>
|
||||||
<name>DiskGauge</name>
|
<name>DiskGauge</name>
|
||||||
|
@ -466,6 +466,14 @@ Track</source>
|
|||||||
<source>Label:</source>
|
<source>Label:</source>
|
||||||
<translation type="unfinished"></translation>
|
<translation type="unfinished"></translation>
|
||||||
</message>
|
</message>
|
||||||
|
<message>
|
||||||
|
<source>Metadata</source>
|
||||||
|
<translation type="unfinished"></translation>
|
||||||
|
</message>
|
||||||
|
<message>
|
||||||
|
<source>Track</source>
|
||||||
|
<translation type="unfinished"></translation>
|
||||||
|
</message>
|
||||||
</context>
|
</context>
|
||||||
<context>
|
<context>
|
||||||
<name>DiskGauge</name>
|
<name>DiskGauge</name>
|
||||||
|
@ -467,6 +467,14 @@ Track</source>
|
|||||||
<source>Label:</source>
|
<source>Label:</source>
|
||||||
<translation type="unfinished"></translation>
|
<translation type="unfinished"></translation>
|
||||||
</message>
|
</message>
|
||||||
|
<message>
|
||||||
|
<source>Metadata</source>
|
||||||
|
<translation type="unfinished"></translation>
|
||||||
|
</message>
|
||||||
|
<message>
|
||||||
|
<source>Track</source>
|
||||||
|
<translation type="unfinished"></translation>
|
||||||
|
</message>
|
||||||
</context>
|
</context>
|
||||||
<context>
|
<context>
|
||||||
<name>DiskGauge</name>
|
<name>DiskGauge</name>
|
||||||
|
Loading…
x
Reference in New Issue
Block a user