Merge pull request #2565 from iptv-org/(Fix)-elcinema.com

fix elcinema.com
This commit is contained in:
Ismaël Moret 2025-01-03 11:27:41 +01:00 committed by GitHub
commit c9bfb3ddfa
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -9,9 +9,14 @@ dayjs.extend(customParseFormat)
dayjs.extend(timezone) dayjs.extend(timezone)
dayjs.extend(utc) dayjs.extend(utc)
const headers = {
'User-Agent':
'Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/130.0.0.0 Safari/537.36 OPR/115.0.0.0' }
module.exports = { module.exports = {
site: 'elcinema.com', site: 'elcinema.com',
days: 2, days: 2,
request: { headers },
url({ channel }) { url({ channel }) {
const lang = channel.lang === 'en' ? 'en/' : '/' const lang = channel.lang === 'en' ? 'en/' : '/'