MCPcopy Create free account
hub / github.com/QNapi/qnapi / selectTargetExtension

Method selectTargetExtension

libqnapi/src/subtitlematcher.cpp:64–78  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

62}
63
64QString 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
80QString SubtitleMatcher::constructSubtitlePath(QString targetMovieFilePath,
81 QString targetExtension,

Callers

nothing calls this directly

Calls 2

selectMethod · 0.80
defaultExtensionMethod · 0.45

Tested by

no test coverage detected