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() ...@@ -505,38 +505,40 @@ void DiscOpenPanel::updateMRL()
else else
discPath = ui.deviceCombo->currentText(); discPath = ui.deviceCombo->currentText();
/* CDDAX and VCDX not implemented. TODO ? No. */ /* MRL scheme */
/* DVD */ /* DVD */
if( ui.dvdRadioButton->isChecked() ) { if( ui.dvdRadioButton->isChecked() ) {
if( !ui.dvdsimple->isChecked() ) if( !ui.dvdsimple->isChecked() )
mrl = "dvd://" LOCALHOST + discPath; mrl = "dvd://" LOCALHOST;
else else
mrl = "dvdsimple://" LOCALHOST + discPath; 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 += discPath;
mrl += QString("@%1").arg( ui.titleSpin->value() );
if ( ui.chapterSpin->value() > 0 ) { /* 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() ); mrl+= QString(":%1").arg( ui.chapterSpin->value() );
} }
} else if ( ui.vcdRadioButton->isChecked() )
} else if ( ui.bdRadioButton->isChecked() ) {
mrl = "bluray://" LOCALHOST + discPath;
/* VCD */
} else if ( ui.vcdRadioButton->isChecked() ) {
mrl = "vcd://" LOCALHOST + discPath;
if( ui.titleSpin->value() > 0 )
mrl += QString("@%1").arg( ui.titleSpin->value() ); mrl += QString("@%1").arg( ui.titleSpin->value() );
/* CDDA */
} else {
mrl = "cdda://" LOCALHOST + discPath;
} }
emit methodChanged( "disc-caching" ); emit methodChanged( "disc-caching" );
fileList << mrl; mrl = ""; fileList << mrl; mrl = "";
/* Input item options */
if ( ui.dvdRadioButton->isChecked() || ui.vcdRadioButton->isChecked() ) if ( ui.dvdRadioButton->isChecked() || ui.vcdRadioButton->isChecked() )
{ {
if ( ui.audioSpin->value() >= 0 ) { 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