iptv-org / epg

Utilities for downloading the EPG (Electronic Program Guide) for thousands of TV channels from hundreds of sources.
https://iptv-org.github.io/
The Unlicense
1.8k stars 200 forks source link

Guide Error #2139

Closed DumberSoft closed 1 year ago

DumberSoft commented 1 year ago

Site

tv.movistar.com.pe

Description

Starting... Loading 'sites/tv.movistar.com.pe/tv.movistar.com.pe.config.js'... (node:16718) UnhandledPromiseRejectionWarning: /var/www/html/epg/sites/tv.movistar.com.pe/tv.movistar.com.pe.config.js:46 return item.Images?.VideoFrame?.[0]?.Url ^

SyntaxError: Unexpected token . at Module._compile (internal/modules/cjs/loader.js:723:23) at Object.Module._extensions..js (internal/modules/cjs/loader.js:789:10) at Module.load (internal/modules/cjs/loader.js:653:32) at tryModuleLoad (internal/modules/cjs/loader.js:593:12) at Function.Module._load (internal/modules/cjs/loader.js:585:3) at Module.require (internal/modules/cjs/loader.js:692:17) at require (internal/modules/cjs/helpers.js:25:18) at main (/var/www/html/epg/node_modules/epg-grabber/bin/epg-grabber.js:54:16) at Object. (/var/www/html/epg/node_modules/epg-grabber/bin/epg-grabber.js:157:1) at Module._compile (internal/modules/cjs/loader.js:778:30) (node:16718) UnhandledPromiseRejectionWarning: Unhandled promise rejection. This error originated either by throwing inside of an async function without a catch block, or by rejecting a promise which was not handled with .catch(). (rejection id: 1) (node:16718) [DEP0018] DeprecationWarning: Unhandled promise rejections are deprecated. In the future, promise rejections that are not handled will terminate the Node.js process with a non-zero exit code.

PopeyeTheSai10r commented 1 year ago

The config still working for me.

Can you please share what command you are using to start the grabber?

DumberSoft commented 1 year ago

Linux

SITE=tv.movistar.com.pe npm run grab

DumberSoft commented 1 year ago

root@vmi1354233:~/epg# SITE=tv.movistar.com.pe npm run grab

epg@ grab /root/epg cross-var epg-grabber --config=sites/$SITE/$SITE.config.js --channels=sites/$SITE/$SITE.channels.xml --output=guides/{lang}/{site}.xml

Starting... Loading 'sites/tv.movistar.com.pe/tv.movistar.com.pe.config.js'... (node:188345) UnhandledPromiseRejectionWarning: /root/epg/sites/tv.movistar.com.pe/tv.movistar.com.pe.config.js:46 return item.Images?.VideoFrame?.[0]?.Url ^

SyntaxError: Unexpected token . at Module._compile (internal/modules/cjs/loader.js:723:23) at Object.Module._extensions..js (internal/modules/cjs/loader.js:789:10) at Module.load (internal/modules/cjs/loader.js:653:32) at tryModuleLoad (internal/modules/cjs/loader.js:593:12) at Function.Module._load (internal/modules/cjs/loader.js:585:3) at Module.require (internal/modules/cjs/loader.js:692:17) at require (internal/modules/cjs/helpers.js:25:18) at main (/root/epg/node_modules/epg-grabber/bin/epg-grabber.js:54:16) at Object. (/root/epg/node_modules/epg-grabber/bin/epg-grabber.js:157:1) at Module._compile (internal/modules/cjs/loader.js:778:30) (node:188345) UnhandledPromiseRejectionWarning: Unhandled promise rejection. This error originated either by throwing inside of an async function without a catch block, or by rejecting a promise which was not handled with .catch(). (rejection id: 1) (node:188345) [DEP0018] DeprecationWarning: Unhandled promise rejections are deprecated. In the future, promise rejections that are not handled will terminate the Node.js process with a non-zero exit code. root@vmi1354233:~/epg#

PopeyeTheSai10r commented 1 year ago

Try running npx epg-grabber --config=sites/tv.movistar.com.pe/tv.movistar.com.pe.config.js --channels=sites/tv.movistar.com.pe/tv.movistar.com.pe.channels.xml --output=guide.xml --days=1

Hoang797 commented 1 year ago

npx epg-grabber --config=sites/tv.movistar.com.pe/tv.movistar.com.pe.config.js --channels=sites/tv.movistar.com.pe/tv.movistar.com.pe.channels.xml --output=guide.xml --days=1

PopeyeTheSai10r commented 1 year ago

Did the output change?

freearhey commented 1 year ago

This config works fine for me too.

If the problem is still there try to run the "grabber" using the new command:

npm run grab -- --site=tv.movistar.com.pe