pemre / iptv-cli Goto Github PK
View Code? Open in Web Editor NEWiptv-cli is a command line tool to parse, filter iptv lists (m3u/m3u8 files).
License: GNU General Public License v3.0
iptv-cli is a command line tool to parse, filter iptv lists (m3u/m3u8 files).
License: GNU General Public License v3.0
Hi,
Brand new install, of npm, then of your scripts; seems very promising, but even copying the basic examples you document, it does not detect the --allowed-categories in filter mode and complains that at least one argument is required.
I would say this is to blame (in the filter command):
if (!args['allowed-channels'] && !args['allowed-channels']) {
console.error(Error: Missing arguments. At least one allowed argument must be used.
);
return;
}
Hi, brand new install and attempting to parse a local m3u file is giving me the following error when getting categories:
/usr/local/lib/node_modules/iptv-cli/node_modules/m3u8-file-parser/src/parser/extinf.js:55
token = str.slice(pos + 1, match.index);
^
TypeError: Cannot read property 'index' of null
at Object.extinf [as parser] (/usr/local/lib/node_modules/iptv-cli/node_modules/m3u8-file-parser/src/parser/extinf.js:55:42)
at M3U8FileParser.invokeParser (/usr/local/lib/node_modules/iptv-cli/node_modules/m3u8-file-parser/src/reader.js:77:46)
at M3U8FileParser.read (/usr/local/lib/node_modules/iptv-cli/node_modules/m3u8-file-parser/src/reader.js:59:12)
at getChannelsFromFile (/usr/local/lib/node_modules/iptv-cli/src/lib/helpers.js:14:10)
at getCategories (/usr/local/lib/node_modules/iptv-cli/src/commands/get-categories.js:7:16)
at Proxy.cli (/usr/local/lib/node_modules/iptv-cli/src/cli.js:31:7)
at Object.<anonymous> (/usr/local/lib/node_modules/iptv-cli/index.js:3:25)
at Module._compile (internal/modules/cjs/loader.js:1063:30)
at Object.Module._extensions..js (internal/modules/cjs/loader.js:1092:10)
at Module.load (internal/modules/cjs/loader.js:928:32)
An idea what's going wrong? Thanks.
when i use the tool i get this error with large list more than 160M
TypeError: Cannot read property 'trim' of undefined
at channels.map (/usr/local/lib/node_modules/iptv-cli/src/commands/get-categories.js:13:74)
at Array.map ()
at getCategories (/usr/local/lib/node_modules/iptv-cli/src/commands/get-categories.js:13:34)
at Proxy.cli (/usr/local/lib/node_modules/iptv-cli/src/cli.js:31:7)
at Object. (/usr/local/lib/node_modules/iptv-cli/index.js:3:25)
at Module._compile (module.js:652:30)
at Object.Module._extensions..js (module.js:663:10)
at Module.load (module.js:565:32)
at tryModuleLoad (module.js:505:12)
at Function.Module._load (module.js:497:3)
could you help to solve this issue plz
thanx
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.