mirror of
https://github.com/iptv-org/epg
synced 2026-05-08 10:27:06 -04:00
Fix linter issues in sites/
This commit is contained in:
@@ -132,7 +132,7 @@ module.exports = {
|
||||
const $ = cheerio.load(data)
|
||||
$('.channelname').each((i, el) => {
|
||||
let name = $(el).find('center > a:eq(1)').text()
|
||||
name = name.replace(/\-\-/gi, '-')
|
||||
name = name.replace(/--/gi, '-')
|
||||
const url = $(el).find('center > a:eq(1)').attr('href')
|
||||
if (!url) return
|
||||
const [, number, slug] = url.match(/\/(\d+)\/(.*)\.html$/)
|
||||
|
||||
Reference in New Issue
Block a user