Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

RangeError: Invalid string length #2349

Open
SSKWhiteShadow opened this issue Apr 7, 2024 · 1 comment
Open

RangeError: Invalid string length #2349

SSKWhiteShadow opened this issue Apr 7, 2024 · 1 comment
Labels
broken guide Error in the EPG

Comments

@SSKWhiteShadow
Copy link

Describe your issue

When i run the following command:
npm run grab -- --site=tvpassport.com --maxConnections=100

I get error during saving stage:

[37178/37179] tvpassport.com (fr) - CBAFTDT.ca - Apr 6, 2024 (60 programs)
[37179/37179] tvpassport.com (en) - youtoo-america-wlpd-cd-plano-il/15292 - Apr 8, 2024 (55 programs)
saving to "guide.xml"...

C:\Users\whiteshadow\epg\node_modules\epg-grabber\src\xmltv.js:136
elem.children.forEach(childElem => {
^
RangeError: Invalid string length
at C:\Users\whiteshadow\epg\node_modules\epg-grabber\src\xmltv.js:137:19
at Array.forEach ()
at toString (C:\Users\whiteshadow\epg\node_modules\epg-grabber\src\xmltv.js:136:19)
at createElement (C:\Users\whiteshadow\epg\node_modules\epg-grabber\src\xmltv.js:120:10)
at createElements (C:\Users\whiteshadow\epg\node_modules\epg-grabber\src\xmltv.js:28:10)
at generate (C:\Users\whiteshadow\epg\node_modules\epg-grabber\src\xmltv.js:22:13)
at XMLTV.toString (C:\Users\whiteshadow\epg\scripts\core\xmltv.ts:22:12)
at Guide.save (C:\Users\whiteshadow\epg\scripts\core\guide.ts:47:48)
at GuideManager.createGuides (C:\Users\whiteshadow\epg\scripts\core\guideManager.ts:58:19)
at Job.run (C:\Users\whiteshadow\epg\scripts\core\job.ts:32:19)

@SSKWhiteShadow SSKWhiteShadow added the bug Something isn't working label Apr 7, 2024
@freearhey freearhey added broken guide Error in the EPG and removed bug Something isn't working labels Sep 7, 2024
@CringeArab
Copy link
Contributor

works great for me

Screenshot_20240908-101559_Chrome

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
broken guide Error in the EPG
Development

No branches or pull requests

3 participants