mirror of
https://github.com/iptv-org/epg
synced 2026-05-27 11:39:27 -04:00
Fix linter issues in sites/
This commit is contained in:
@@ -3,7 +3,7 @@ const dayjs = require('dayjs')
|
||||
|
||||
const API_STATIC_ENDPOINT = 'https://static.spark.telenet.tv/eng/web/epg-service-lite/be'
|
||||
const API_PROD_ENDPOINT = 'https://spark-prod-be.gnp.cloud.telenet.tv/eng/web/linear-service/v2'
|
||||
const API_IMAGE_ENDPOINT = 'https://staticqbr-prod-be.gnp.cloud.telenet.tv/image-service';
|
||||
const API_IMAGE_ENDPOINT = 'https://staticqbr-prod-be.gnp.cloud.telenet.tv/image-service'
|
||||
|
||||
module.exports = {
|
||||
site: 'telenet.tv',
|
||||
@@ -94,7 +94,7 @@ module.exports = {
|
||||
|
||||
async function loadProgramDetails(item, channel) {
|
||||
if (!item.id) return {}
|
||||
const url = `${API_PROD_ENDPOINT}/replayEvent/${item.id}?returnLinearContent=true&language=${channel.lang}`
|
||||
const url = `${API_PROD_ENDPOINT}/replayEvent/${item.id}?returnLinearContent=true&language=${channel.lang}`
|
||||
const data = await axios
|
||||
.get(url)
|
||||
.then(r => r.data)
|
||||
@@ -134,5 +134,5 @@ function parseEpisode(detail) {
|
||||
}
|
||||
|
||||
function parseIcon(item) {
|
||||
return `${API_IMAGE_ENDPOINT}/intent/${item.id}/posterTile`;
|
||||
}
|
||||
return `${API_IMAGE_ENDPOINT}/intent/${item.id}/posterTile`
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user