Ejemplo n.º 1
0
 def load(self):
     if config.setting["fingerprinting_system"] == "acoustid":
         self.ui.use_acoustid.setChecked(True)
     else:
         self.ui.disable_fingerprinting.setChecked(True)
     self.ui.acoustid_fpcalc.setPlaceholderText(find_fpcalc())
     self.ui.acoustid_fpcalc.setText(config.setting["acoustid_fpcalc"])
     self.ui.acoustid_apikey.setText(config.setting["acoustid_apikey"])
     self.ui.ignore_existing_acoustid_fingerprints.setChecked(
         config.setting["ignore_existing_acoustid_fingerprints"])
     self.update_groupboxes()
Ejemplo n.º 2
0
 def _acoustid_fpcalc_check(self):
     if not self.ui.use_acoustid.isChecked():
         self._acoustid_fpcalc_set_success("")
         return
     fpcalc = self.ui.acoustid_fpcalc.text()
     if not fpcalc:
         fpcalc = find_fpcalc()
     self._fpcalc_valid = False
     process = QtCore.QProcess(self)
     process.finished.connect(self._on_acoustid_fpcalc_check_finished)
     process.error.connect(self._on_acoustid_fpcalc_check_error)
     process.start(fpcalc, ["-v"])