| 121 | } |
| 122 | |
| 123 | const PostProcessingConfig ConfigReader::readPostProcessingConfig( |
| 124 | const QSettings& settings) const { |
| 125 | return PostProcessingConfig( |
| 126 | settings.value("qnapi/post_processing", true).toBool(), |
| 127 | static_cast<EncodingChangeMethod>( |
| 128 | settings.value("qnapi/encoding_method", ECM_CHANGE).toInt()), |
| 129 | settings.value("qnapi/enc_from", "windows-1250").toString(), |
| 130 | settings.value("qnapi/auto_detect_encoding", true).toBool(), |
| 131 | settings.value("qnapi/enc_to", "UTF-8").toString(), |
| 132 | settings.value("qnapi/show_all_encodings", false).toBool(), |
| 133 | settings.value("qnapi/sub_format", "srt").toString(), |
| 134 | settings.value("qnapi/sub_ext", "").toString(), |
| 135 | settings.value("qnapi/skip_convert_ads", false).toBool(), |
| 136 | settings.value("qnapi/remove_lines", false).toBool(), |
| 137 | settings |
| 138 | .value("qnapi/remove_words", QStringList() << "movie info" |
| 139 | << "synchro") |
| 140 | .toStringList()); |
| 141 | } |
| 142 | |
| 143 | const ScanConfig ConfigReader::readScanConfig(const QSettings& settings) const { |
| 144 | return ScanConfig( |
nothing calls this directly
no test coverage detected