MCPcopy Index your code
hub / github.com/MALSync/MALSync / getAutoText

Method getAutoText

src/utils/progress.ts:96–108  ·  view source on GitHub ↗
(sourceInfo = false)

Source from the content-addressed store, hash-verified

94 }
95
96 getAutoText(sourceInfo = false) {
97 const textParts = [] as string[];
98 if (this.getPredictionText()) {
99 textParts.push(this.getPredictionText());
100 } else if (this.getLastText()) {
101 textParts.push(this.getLastText());
102 }
103 if (sourceInfo) {
104 const sourceInfoText = this.getSourceInfo();
105 if (sourceInfoText) textParts.push(sourceInfoText);
106 }
107 return textParts.join(' ');
108 }
109
110 getLang() {
111 return this.progressItem?.lang;

Callers 6

injectProgressMethod · 0.80
injectProgressListMethod · 0.80
fullListCallbackMethod · 0.80
fullListCallbackMethod · 0.80
setEpPredictionMethod · 0.80
bookmarksMethod · 0.80

Calls 3

getPredictionTextMethod · 0.95
getLastTextMethod · 0.95
getSourceInfoMethod · 0.95

Tested by

no test coverage detected