| 62 | } |
| 63 | |
| 64 | QString SubtitleMatcher::selectTargetExtension( |
| 65 | QFileInfo subtitlesTmpFileInfo) const { |
| 66 | QString targetExtension = subtitlesTmpFileInfo.suffix(); |
| 67 | |
| 68 | if (isPostProcessingEnabled) { |
| 69 | if (!ppSubFormat.isEmpty() && ppSubExtension.isEmpty()) { |
| 70 | targetExtension = |
| 71 | subtitleFormatsRegistry->select(ppSubFormat)->defaultExtension(); |
| 72 | } else if (!ppSubExtension.isEmpty()) { |
| 73 | targetExtension = ppSubExtension; |
| 74 | } |
| 75 | } |
| 76 | |
| 77 | return targetExtension; |
| 78 | } |
| 79 | |
| 80 | QString SubtitleMatcher::constructSubtitlePath(QString targetMovieFilePath, |
| 81 | QString targetExtension, |
nothing calls this directly
no test coverage detected