mirror of
https://github.com/iptv-org/epg
synced 2025-12-19 03:46:41 -05:00
Update tests/__data__
This commit is contained in:
16
tests/__data__/expected/sites_init/example.com.config.js
Normal file
16
tests/__data__/expected/sites_init/example.com.config.js
Normal file
@@ -0,0 +1,16 @@
|
||||
module.exports = {
|
||||
site: 'example.com',
|
||||
url({ channel, date }) {
|
||||
return `https://example.com/api/${channel.site_id}/${date.format('YYYY-MM-DD')}`
|
||||
},
|
||||
parser({ content }) {
|
||||
try {
|
||||
return JSON.parse(content)
|
||||
} catch {
|
||||
return []
|
||||
}
|
||||
},
|
||||
channels() {
|
||||
return []
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user