Commit 4f75c7f0 authored by Rémi Denis-Courmont's avatar Rémi Denis-Courmont

Qt: update DVD title/chapter syntax, add it for BD

parent f2b4f047
......@@ -505,38 +505,40 @@ void DiscOpenPanel::updateMRL()
else
discPath = ui.deviceCombo->currentText();
/* CDDAX and VCDX not implemented. TODO ? No. */
/* MRL scheme */
/* DVD */
if( ui.dvdRadioButton->isChecked() ) {
if( !ui.dvdsimple->isChecked() )
mrl = "dvd://" LOCALHOST + discPath;
mrl = "dvd://" LOCALHOST;
else
mrl = "dvdsimple://" LOCALHOST + discPath;
} else if ( ui.bdRadioButton->isChecked() )
mrl = "bluray://" LOCALHOST;
/* VCD */
else if ( ui.vcdRadioButton->isChecked() )
mrl = "vcd://" LOCALHOST;
/* CDDA */
else
mrl = "cdda://" LOCALHOST;
if ( ui.titleSpin->value() > 0 ) {
mrl += QString("@%1").arg( ui.titleSpin->value() );
if ( ui.chapterSpin->value() > 0 ) {
mrl += discPath;
/* Title/chapter encoded in MRL */
if( ui.titleSpin->value() > 0 ) {
if( ui.dvdRadioButton->isChecked() || ui.bdRadioButton->isChecked() ) {
mrl += QString("#%1").arg( ui.titleSpin->value() );
if ( ui.chapterSpin->value() > 0 )
mrl+= QString(":%1").arg( ui.chapterSpin->value() );
}
}
} else if ( ui.bdRadioButton->isChecked() ) {
mrl = "bluray://" LOCALHOST + discPath;
/* VCD */
} else if ( ui.vcdRadioButton->isChecked() ) {
mrl = "vcd://" LOCALHOST + discPath;
if( ui.titleSpin->value() > 0 )
else if ( ui.vcdRadioButton->isChecked() )
mrl += QString("@%1").arg( ui.titleSpin->value() );
/* CDDA */
} else {
mrl = "cdda://" LOCALHOST + discPath;
}
emit methodChanged( "disc-caching" );
fileList << mrl; mrl = "";
/* Input item options */
if ( ui.dvdRadioButton->isChecked() || ui.vcdRadioButton->isChecked() )
{
if ( ui.audioSpin->value() >= 0 ) {
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment