mirror of
https://github.com/iptv-org/epg
synced 2025-12-18 03:16:53 -05:00
Update m.tv.sms.cz
This commit is contained in:
@@ -34,6 +34,28 @@ module.exports = {
|
||||
})
|
||||
|
||||
return programs
|
||||
},
|
||||
async channels() {
|
||||
const axios = require('axios')
|
||||
const data = await axios
|
||||
.get(`https://m.tv.sms.cz/?zmen_stanice=true`)
|
||||
.then(r => r.data)
|
||||
.catch(console.log)
|
||||
|
||||
let channels = []
|
||||
const $ = cheerio.load(data)
|
||||
$('.stanice').each((i, el) => {
|
||||
const name = $(el).attr('title')
|
||||
const site_id = $(el).find('input').attr('value')
|
||||
|
||||
channels.push({
|
||||
lang: 'cs',
|
||||
site_id,
|
||||
name
|
||||
})
|
||||
})
|
||||
|
||||
return channels
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
@@ -1,3 +1,4 @@
|
||||
// npm run channels:parse -- --config=./sites/m.tv.sms.cz/m.tv.sms.cz.config.js --output=./sites/m.tv.sms.cz/m.tv.sms.cz.channels.xml
|
||||
// npm run grab -- --site=m.tv.sms.cz
|
||||
|
||||
const { parser, url } = require('./m.tv.sms.cz.config.js')
|
||||
|
||||
Reference in New Issue
Block a user