simple-yet-powerful-srt-subtitle-parser-cpp icon indicating copy to clipboard operation
simple-yet-powerful-srt-subtitle-parser-cpp copied to clipboard

can not get correct subtitle text according to parameters by calling getDialogue

Open xkening opened this issue 5 years ago • 0 comments

I find that subtitle text returned frome getDialogue(0,1,1) does not have speaker names.

`inline std::string SubtitleItem::getDialogue(bool keepHTML, bool doNotIgnoreNonDialogues, bool doNotRemoveSpeakerNames) { if(_justDialogue.empty()) extractInfo(keepHTML, doNotIgnoreNonDialogues, doNotRemoveSpeakerNames);

return _justDialogue;

}`

why check empty in this function?

xkening avatar Apr 03 '20 10:04 xkening