mirror of
https://github.com/arthur-pbty/xiao.git
synced 2026-06-07 14:55:40 +02:00
Fix Final Jeopardy not scraping
This commit is contained in:
@@ -49,12 +49,12 @@ module.exports = class JeopardyScrape {
|
||||
const value = $(elem).find('td[class="clue_value"]').text();
|
||||
const question = $(elem).find('td[class="clue_text"]').first().text();
|
||||
const answer = $(elem).find('em[class="correct_response"]').text();
|
||||
if (!question || !answer || !value) return;
|
||||
if (!question || !answer) return;
|
||||
clues.push({
|
||||
question,
|
||||
answer,
|
||||
category: categoryArr[i % 6],
|
||||
value: value.match(/[0-9]+/)[0],
|
||||
value: value ? value.match(/[0-9]+/)[0] : '0',
|
||||
gameID: id
|
||||
});
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user