{"id":13895292,"url":"https://github.com/pemre/iptv-cli","last_synced_at":"2025-07-17T10:33:30.575Z","repository":{"id":42714660,"uuid":"289697699","full_name":"pemre/iptv-cli","owner":"pemre","description":"iptv-cli is a command line tool to parse, filter iptv lists (m3u/m3u8 files).","archived":true,"fork":false,"pushed_at":"2022-04-03T12:55:04.000Z","size":30,"stargazers_count":10,"open_issues_count":1,"forks_count":4,"subscribers_count":3,"default_branch":"master","last_synced_at":"2024-11-09T04:49:07.700Z","etag":null,"topics":["cli","iptv","iptv-channels","iptv-m3u","iptv-m3u8","iptv-playlist","nodejs"],"latest_commit_sha":null,"homepage":"","language":"JavaScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"gpl-3.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/pemre.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE.md","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2020-08-23T14:02:43.000Z","updated_at":"2024-08-31T08:40:43.000Z","dependencies_parsed_at":"2022-08-23T09:30:32.665Z","dependency_job_id":null,"html_url":"https://github.com/pemre/iptv-cli","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/pemre%2Fiptv-cli","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/pemre%2Fiptv-cli/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/pemre%2Fiptv-cli/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/pemre%2Fiptv-cli/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/pemre","download_url":"https://codeload.github.com/pemre/iptv-cli/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":226255383,"owners_count":17595859,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["cli","iptv","iptv-channels","iptv-m3u","iptv-m3u8","iptv-playlist","nodejs"],"created_at":"2024-08-06T18:02:06.845Z","updated_at":"2024-11-25T00:31:22.987Z","avatar_url":"https://github.com/pemre.png","language":"JavaScript","funding_links":[],"categories":["JavaScript"],"sub_categories":[],"readme":"# iptv-cli\n\n[![npm](https://img.shields.io/npm/v/iptv-cli.svg?style=flat-square)](https://www.npmjs.com/package/iptv-cli)\n[![npm](https://img.shields.io/npm/dt/iptv-cli.svg?style=flat-square)](https://www.npmjs.com/package/iptv-cli)\n[![npm](https://img.shields.io/npm/l/iptv-cli.svg?style=flat-square)](https://www.npmjs.com/package/iptv-cli)\n![](https://img.shields.io/badge/awesome%3F-yes-green.svg?style=flat-square)\n\niptv-cli is a command line tool to parse, filter iptv lists (m3u/m3u8 files).\n\n## Install\n\n`npm install -g iptv-cli`\n\n## Usage\n\nYou can start by generating an allowed-categories.js file from your iptv list:\n\n```bash\niptv-cli get-categories --from-file iptv-list.m3u\n\u003e File has been created: allowed-categories.js\n```\n\nNow you have a list of categories in `allowed-categories.js` file. You can edit it to filter out the categories that you\ndon't want to see. After editing that file, use it as an argument in `filter` command:\n\n```bash\niptv-cli filter --from-file iptv-list.m3u --allowed-categories allowed-categories.js --out new.m3u\n\u003e File has been created: new.m3u\n```\n\nEnjoy your filtered `new.m3u` file. You can use your favorite IpTv client to watch your channels!\n\n**Tip:** If you also want to filter by channel ids, you can add another argument. See Commands section below.\n\n## Commands\n\n```bash\niptv-cli [command] \u003coptions\u003e\n  filter ............. generate an iptv list filtered by at least one allowed-*.js file\n  get-categories ..... generate categories file (allowed-categories.js) from an iptv list file\n  get-channels ....... generate channels file (allowed-channels.js) from an iptv list file\n  version ............ show cli version\n  help ............... show help menu for a command\n```\n\n### filter\n\n```bash\niptv-cli filter \u003coptions\u003e (at least one --allowed-* argument is required)\n  --from-file ........... (required) set the source iptv file. e.g. --from-file example.m3u\n  --allowed-categories .. filter by category file. You can generate the file with get-categories command.\n  --allowed-channels .... filter by channel ids file. You can generate one with get-channels command.\n  --out ................. set the filename for filtered iptv file. default: iptv-list.m3u\n```\n\n### get-categories\n\n```bash\niptv-cli get-categories \u003coptions\u003e\n  --from-file ........... (required) set the source iptv channel list file. e.g. --from-file example.m3u\n```\n\n### get-channels\n\n```bash\niptv-cli get-channels \u003coptions\u003e\n  --from-file ........... (required) set the source iptv channel list file. e.g. --from-file example.m3u\n```\n\n## Example files\n\nYou can find all example files to parse/generate in the root folder of the project, starting with `example-` prefix.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fpemre%2Fiptv-cli","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fpemre%2Fiptv-cli","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fpemre%2Fiptv-cli/lists"}