We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 1cee26c commit 54ba41eCopy full SHA for 54ba41e
lib/plugins/leetcode.js
@@ -137,6 +137,7 @@ plugin.getProblem = function(problem, cb) {
137
' sampleTestCase',
138
' enableRunCode',
139
' metaData',
140
+ ' translatedContent',
141
' discussCategoryId',
142
' }',
143
'}'
@@ -156,7 +157,11 @@ plugin.getProblem = function(problem, cb) {
156
157
158
problem.totalAC = JSON.parse(q.stats).totalAccepted;
159
problem.totalSubmit = JSON.parse(q.stats).totalSubmission;
- problem.desc = he.decode(cheerio.load(q.content).root().text());
160
+ if (!q.translatedContent) {
161
+ problem.desc = he.decode(cheerio.load(q.content).root().text());
162
+ }else{
163
+ problem.desc = he.decode(cheerio.load(q.translatedContent).root().text());
164
+ }
165
problem.templates = JSON.parse(q.codeDefinition);
166
problem.testcase = q.sampleTestCase;
167
problem.testable = q.enableRunCode;
AltStyle によって変換されたページ (->オリジナル) / アドレス: モード: デフォルト 音声ブラウザ ルビ付き 配色反転 文字拡大 モバイル
0 commit comments