fix(rutracker): encoding fix

This commit is contained in:
Alexey Kasyanchuk
2018-08-16 07:58:37 +03:00
parent 42fce4e720
commit 266c103321
4 changed files with 5 additions and 4 deletions

View File

@ -22,7 +22,7 @@ module.exports = class Nyaa
}
if(!html)
return
html = await html.text()
html = await html.textConverted()
const $ = cheerio.load(html)
let topicTitle = $('.panel-title').first().text()
if(!topicTitle)

View File

@ -22,7 +22,7 @@ module.exports = class Rutracker
}
if(!html)
return
html = await html.text()
html = await html.textConverted()
const $ = cheerio.load(html)
const topicTitle = $('#topic-title').text()
if(!topicTitle)