Skip to content

Commit

Permalink
Pull show summary/synopsis
Browse files Browse the repository at this point in the history
  • Loading branch information
pekempy committed Sep 21, 2024
1 parent ef12c55 commit e4ba8fb
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion mainwindow.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -676,12 +676,15 @@ void MainWindow::on_encoraLookupButton_clicked()
QString APIShowName = obj["show"].toString();
QString APIShowTour = obj["tour"].toString();
QString recordingMaster = obj["master"].toString();
QString APIShowDescription = obj.value("metadata").toObject().value("show_description").toString();
showName = APIShowName.toStdString();
showLocation = APIShowTour.toStdString();
showDirector = recordingMaster.toStdString();
showPlot = APIShowDescription.toStdString();
ui->showNameInput->setText(APIShowName);
ui->showMasterInput->setText(recordingMaster);
ui->showLocationInput->setText(APIShowTour);
ui->showSynopsisInput->setText(APIShowDescription);

// Extract date details
QJsonObject apiDate = obj["date"].toObject();
Expand Down Expand Up @@ -743,7 +746,10 @@ void MainWindow::on_encoraLookupButton_clicked()
ui->checkbox_musical->setStyleSheet("border: 1px solid red");
ui->checkbox_play->setStyleSheet("border: 1px solid red");
ui->checkbox_ballet->setStyleSheet("border: 1px solid red");
ui->showSynopsisInput->setStyleSheet("border: 1px solid red");

if (ui->showSynopsisInput->toPlainText() == "") {
ui->showSynopsisInput->setStyleSheet("border: 1px solid red");
}

// Extract recording type and update checkboxes
QJsonObject metadata = obj["metadata"].toObject();
Expand Down

0 comments on commit e4ba8fb

Please sign in to comment.