mirror of
https://github.com/iptv-org/epg
synced 2025-12-21 21:07:04 -05:00
Update tests/__data__
This commit is contained in:
@@ -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