@officebeats/matrix-iptv-cli 3.0.1 → 3.0.3

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/README.md CHANGED
@@ -1,191 +1,193 @@
1
- # 🟢 Matrix IPTV CLI
2
-
3
- ![Matrix IPTV CLI Hero](./assets/hero.png)
4
-
5
- **// THE_PREMIUM_TERMINAL_IPTV_DECODER //**
6
-
7
- Matrix IPTV CLI is a blazing fast, keyboard-driven interface for browsing Live TV, Movies, and Series. Inspired by the Matrix and built with Rust, it's designed to be the ultimate premium TUI (Terminal User Interface) for IPTV power users.
8
-
9
- This project is being actively optimized by **Ernesto "Beats"** with a primary focus on **Live TV and Sports** performance, ensuring zero-latency navigation and professional-grade video clarity.
10
-
11
- ---
12
-
13
- ## šŸ“ø Gallery
14
-
15
- <p align="center">
16
- <img src="./assets/playlists.png" width="45%" />
17
- <img src="./assets/pill.png" width="45%" />
18
- <br />
19
- <img src="./assets/live.png" width="90%" />
20
- </p>
21
-
22
- ---
23
-
24
- ## šŸš€ Instant Installation
25
-
26
- **Prerequisites:** Matrix IPTV CLI requires **MPV Player** (for video) and **Node.js** (for the CLI).
27
-
28
- #### **Don't have MPV Player?**
29
-
30
- - **Windows:** `winget install info.mpv.mpv`
31
- - **Mac:** `brew install mpv`
32
- - **Linux:** `sudo apt install mpv`
33
-
34
- #### **Don't have Node.js?**
35
-
36
- - **Windows:** `winget install OpenJS.NodeJS`
37
- - **Mac:** `brew install node`
38
- - **Linux:** `sudo apt install nodejs npm`
39
-
40
- ### **Global NPM Install (Recommended)**
41
-
42
- If you have Node.js installed, this is the easiest way to stay updated:
43
-
44
- ```bash
45
- npm install -g @officebeats/matrix-iptv-cli
46
- ```
47
-
48
- ### **One-Click Scripts**
49
-
50
- Alternatively, use these platform-specific one-liners:
51
-
52
- #### **Windows**
53
-
54
- ```powershell
55
- powershell -ExecutionPolicy Bypass -Command "irm https://raw.githubusercontent.com/officebeats/matrix-iptv/main/install.ps1 | iex"
56
- ```
57
-
58
- #### **Mac & Linux**
59
-
60
- ```bash
61
- curl -sSL https://raw.githubusercontent.com/officebeats/matrix-iptv/main/install.sh -o install_matrix.sh && bash install_matrix.sh && rm install_matrix.sh
62
- ```
63
-
64
- ---
65
-
66
- ## šŸŽ¬ How to Run
67
-
68
- Simply open any terminal and type:
69
-
70
- ```bash
71
- matrix-iptv
72
- ```
73
-
74
- ---
75
-
76
- ## ✨ Features
77
-
78
- - **USA Mode**: Strictly optimized for **Strong 8K**, **Mega OTT**, and **TRex**. Hides international clutter and cleans channel names instantly.
79
- - **⚔ Instant Response**: Built in Rust for maximum performance. Navigate tens of thousands of channels with zero lag.
80
- - **šŸ“” Xtream API Native**: Strictly optimized for **Xtream API** providers (support for M3U is not planned at this time).
81
- - **šŸŸļø Sports & Live Focused**: Layout and performance tuned specifically for the most demanding live events.
82
- - **šŸ“ "All" Content Navigation**: Browse everything at once with "All Channels" and "All Movies" views.
83
- - **šŸŽ¬ Full Series Support**: Dedicated multi-column view for Series, Seasons, and Episodes.
84
- - **šŸ“Ÿ Infinite Screensaver**: High-performance Matrix rain screensaver (find it in Settings).
85
- - **šŸ“” Secure**: Uses Private DNS-over-HTTPS (DoH) for connecting to your provider.
86
- - **šŸ“½ļø Headless Playback**: Integrated borderless fullscreen mode for a cinematic experience without window distractions.
87
-
88
- ---
89
-
90
- ## šŸŽļø Optimized Providers
91
-
92
- > **āš ļø Disclaimer:** This is an experimental feature strictly targeting the top 3 most widely available playlists on platforms like **z2u** and **g2g**. Please do not request support or additions for other playlists at this time.
93
-
94
- > **šŸ’» OS Compatibility:** Development and testing are done primarily on **Windows**. Mac and Linux variants are provided as-is and may contain platform-specific bugs. If you encounter an issue, please report it with **screenshots and a detailed description** so I can "vibe code" a fix. As a Product Manager, I rely on clear visual and descriptive data to troubleshoot!
95
-
96
- Matrix IPTV CLI is refined for high-density, high-quality playlists, including:
97
-
98
- - **Strong 8K**: Custom filtering logic to remove international clutter (AR|, etc.) and maximize US sports visibility.
99
- - **Mega OTT**: Optimized category parsing and rapid metadata loading.
100
- - **TRex IPTV**: Enhanced sport category prioritization and fast channel tuning.
101
-
102
- ---
103
-
104
- ## USA Mode
105
-
106
- The **USA Mode** is a powerful filtering and cleaning engine strictly optimized for **Strong 8K**, **Mega OTT**, and **TRex IPTV** playlists.
107
-
108
- #### **How to use:**
109
-
110
- 1. Press the **`x`** key to open **Settings**.
111
- 2. Navigate to **USA Mode**.
112
- 3. Press **`Enter`** to toggle it On/Off.
113
- 4. Press **`Esc`** to return and apply the filtering instantly.
114
-
115
- - **Strict Geo-Filtering**: Automatically hides international categories (UK, AR, etc.) in these optimized playlists to keep your list clean.
116
- - **Clean Channel Names**: Removes redundant tags like `US |`, `USA |`, and `FHD |` from channel names, leaving you with just the name of the network.
117
- - **Smart Filtering**: Prioritizes American sports and local networks (NFL, NBA, ESPN) for an effortless viewing experience.
118
-
119
- ---
120
-
121
- ## šŸ“½ļø MPV Enhancements
122
-
123
- We leverage advanced **MPV** flags to ensure professional-level video quality even on lower-end hardware:
124
-
125
- - **Headless Fullscreen**: Launches directly into borderless fullscreen (`--no-border`, `--fs`) for a professional, TV-like experience.
126
- - **Advanced Anti-Aliasing**: Uses `spline36` scaling, providing superior edge smoothing and diagonal line clarity on any machine.
127
- - **Oversample Upscaling**: High-quality temporal upscaling that sharpens images while reducing movement flickering (Temporal AA).
128
- - **Motion Smoothing**: High-performance `display-resample` interpolation for fluid sports playback at native refresh rates.
129
- - **Hardware Acceleration**: Automatic `hwdec=auto-safe` with modern Windows `d3d11-flip` presentation for zero-copy GPU decoding.
130
- - **Anti-Ringing Filter**: Eliminates halos around sharp edges and logos for a cleaner, high-end look.
131
-
132
- ---
133
-
134
- ## āŒØļø Common Controls
135
-
136
- | Key | Action |
137
- | :---------------------- | :--------------------------------------------------------- |
138
- | **`Enter`** | **Play Channel / Select Category** |
139
- | **`Esc` / `Backspace`** | **Go Back** |
140
- | **`f`** | **Favorite** (Add/Remove current item from Favorites) |
141
- | **`/`** | **Search** (Filters results instantly) |
142
- | **`j` / `↓`** | Move Down |
143
- | **`k` / `↑`** | Move Up |
144
- | **`x`** | **Settings** (Update your playlist or turn on Screensaver) |
145
- | **`q`** | **Quit** |
146
-
147
- ---
148
-
149
- ## šŸ› ļø Prerequisites
150
-
151
- The installation scripts will attempt to install these for you:
152
-
153
- - **MPV Player**: [mpv.io](https://mpv.io)
154
- - **Rust Compiler**: [rustup.rs](https://rustup.rs) (Only required for manual builds)
155
-
156
- ---
157
-
158
- > **āš ļø Disclaimer:** Matrix IPTV CLI and its creator, are **not affiliated** with z2u, g2g, or any IPTV provider. We do not sell or distribute content. All transactions on these platforms are at your own risk. This guide is for informational purposes only (experimental "USA Mode" testing).
159
-
160
- <details>
161
- <summary><strong>šŸ›’ Where to Buy Playlists (Click to Expand)</strong></summary>
162
-
163
- <br>
164
-
165
- The experimental "USA Mode" is optimized for **Strong 8K**, **TRex**, and **Mega OTT** playlists. These are typically sourced from third-party marketplaces:
166
-
167
- - **Platforms**: **z2u.com** or **g2g.com**
168
- - **Search Terms**: "Strong 8k IPTV", "Trex IPTV", "Mega OTT"
169
- - **Duration**: Usually sold in **1-month**, **6-month**, or **1-year** increments.
170
-
171
- ### āœ… Buying Tips
172
-
173
- 1. **Check Ratings**: Always choose a seller with a **high rating (98%+)** and a high sales count. These are 2-sided marketplaces, so reputation is everything.
174
- 2. **Safe Payment**: Use strictly secure payment methods like **Google Pay** or **Apple Pay** directly through your device. Avoid direct bank transfers or obscure payment links.
175
-
176
- </details>
177
-
178
- ---
179
-
180
- ## ⚔ Community & Support
181
-
182
- Built and optimized with ā¤ļø by **Ernesto "Beats"** with the help of google antigravity and vibe coding during his PTO vacation time.
183
-
184
- [![Twitter](https://img.shields.io/badge/Twitter-1DA1F2?style=for-the-badge&logo=twitter&logoColor=white)](https://x.com/officebeats)
185
- [![Discord](https://img.shields.io/badge/Discord-5865F2?style=for-the-badge&logo=discord&logoColor=white)](https://discord.com/users/317887730703138826)
186
-
187
- ---
188
-
189
- ## šŸ“œ License
190
-
191
- MIT // [ProductMG.com](https://www.productmg.com)
1
+ # 🟢 Matrix IPTV CLI
2
+
3
+ ![Matrix IPTV CLI Hero](./assets/hero.png)
4
+
5
+ **// THE_PREMIUM_TERMINAL_IPTV_DECODER //**
6
+
7
+ Matrix IPTV CLI is a blazing fast, keyboard-driven interface for browsing Live TV, Movies, and Series. Inspired by the Matrix and built with Rust, it's designed to be the ultimate premium TUI (Terminal User Interface) for IPTV power users.
8
+
9
+ This project is being actively optimized by **Ernesto "Beats"** with a primary focus on **Live TV and Sports** performance, ensuring zero-latency navigation and professional-grade video clarity.
10
+
11
+ ---
12
+
13
+ ## šŸ“ø Gallery
14
+
15
+ <p align="center">
16
+ <img src="./assets/playlists.png" width="45%" />
17
+ <img src="./assets/pill.png" width="45%" />
18
+ <br />
19
+ <img src="./assets/live.png" width="90%" />
20
+ </p>
21
+
22
+ ---
23
+
24
+ ## šŸš€ Instant Installation
25
+
26
+ **Prerequisites:** Matrix IPTV CLI requires **MPV Player** (for video) and **Node.js** (for the CLI).
27
+
28
+ #### **Don't have MPV Player?**
29
+
30
+ - **Windows:** `winget install mpv`
31
+ - **Mac:** `brew install mpv`
32
+ - **Linux:** `sudo apt install mpv`
33
+
34
+ #### **Don't have Node.js?**
35
+
36
+ - **Windows:** `winget install OpenJS.NodeJS`
37
+ - **Mac:** `brew install node`
38
+ - **Linux:** `sudo apt install nodejs npm`
39
+
40
+ ### **Global NPM Install (Recommended)**
41
+
42
+ If you have Node.js installed, this is the easiest way to stay updated:
43
+
44
+ ```bash
45
+ npm install -g @officebeats/matrix-iptv-cli
46
+ ```
47
+
48
+ ### **One-Click Scripts**
49
+
50
+ Alternatively, use these platform-specific one-liners:
51
+
52
+ #### **Windows**
53
+
54
+ ```powershell
55
+ powershell -ExecutionPolicy Bypass -Command "irm https://raw.githubusercontent.com/officebeats/matrix-iptv/main/install.ps1 | iex"
56
+ ```
57
+
58
+ #### **Mac & Linux**
59
+
60
+ ```bash
61
+ curl -sSL https://raw.githubusercontent.com/officebeats/matrix-iptv/main/install.sh -o install_matrix.sh && bash install_matrix.sh && rm install_matrix.sh
62
+ ```
63
+
64
+ ---
65
+
66
+ ## šŸŽ¬ How to Run
67
+
68
+ The app will **auto-launch** instantly after installation! šŸš€
69
+
70
+ For future sessions, simply open any terminal and type:
71
+
72
+ ```bash
73
+ matrix-iptv
74
+ ```
75
+
76
+ ---
77
+
78
+ ## ✨ Features
79
+
80
+ - **USA Mode**: Strictly optimized for **Strong 8K**, **Mega OTT**, and **TRex**. Hides international clutter and cleans channel names instantly.
81
+ - **⚔ Instant Response**: Built in Rust for maximum performance. Navigate tens of thousands of channels with zero lag.
82
+ - **šŸ“” Xtream API Native**: Strictly optimized for **Xtream API** providers (support for M3U is not planned at this time).
83
+ - **šŸŸļø Sports & Live Focused**: Layout and performance tuned specifically for the most demanding live events.
84
+ - **šŸ“ "All" Content Navigation**: Browse everything at once with "All Channels" and "All Movies" views.
85
+ - **šŸŽ¬ Full Series Support**: Dedicated multi-column view for Series, Seasons, and Episodes.
86
+ - **šŸ“Ÿ Infinite Screensaver**: High-performance Matrix rain screensaver (find it in Settings).
87
+ - **šŸ“” Secure**: Uses Private DNS-over-HTTPS (DoH) for connecting to your provider.
88
+ - **šŸ“½ļø Headless Playback**: Integrated borderless fullscreen mode for a cinematic experience without window distractions.
89
+
90
+ ---
91
+
92
+ ## šŸŽļø Optimized Providers
93
+
94
+ > **āš ļø Disclaimer:** This is an experimental feature strictly targeting the top 3 most widely available playlists on platforms like **z2u** and **g2g**. Please do not request support or additions for other playlists at this time.
95
+
96
+ > **šŸ’» OS Compatibility:** Development and testing are done primarily on **Windows**. Mac and Linux variants are provided as-is and may contain platform-specific bugs. If you encounter an issue, please report it with **screenshots and a detailed description** so I can "vibe code" a fix. As a Product Manager, I rely on clear visual and descriptive data to troubleshoot!
97
+
98
+ Matrix IPTV CLI is refined for high-density, high-quality playlists, including:
99
+
100
+ - **Strong 8K**: Custom filtering logic to remove international clutter (AR|, etc.) and maximize US sports visibility.
101
+ - **Mega OTT**: Optimized category parsing and rapid metadata loading.
102
+ - **TRex IPTV**: Enhanced sport category prioritization and fast channel tuning.
103
+
104
+ ---
105
+
106
+ ## USA Mode
107
+
108
+ The **USA Mode** is a powerful filtering and cleaning engine strictly optimized for **Strong 8K**, **Mega OTT**, and **TRex IPTV** playlists.
109
+
110
+ #### **How to use:**
111
+
112
+ 1. Press the **`x`** key to open **Settings**.
113
+ 2. Navigate to **USA Mode**.
114
+ 3. Press **`Enter`** to toggle it On/Off.
115
+ 4. Press **`Esc`** to return and apply the filtering instantly.
116
+
117
+ - **Strict Geo-Filtering**: Automatically hides international categories (UK, AR, etc.) in these optimized playlists to keep your list clean.
118
+ - **Clean Channel Names**: Removes redundant tags like `US |`, `USA |`, and `FHD |` from channel names, leaving you with just the name of the network.
119
+ - **Smart Filtering**: Prioritizes American sports and local networks (NFL, NBA, ESPN) for an effortless viewing experience.
120
+
121
+ ---
122
+
123
+ ## šŸ“½ļø MPV Enhancements
124
+
125
+ We leverage advanced **MPV** flags to ensure professional-level video quality even on lower-end hardware:
126
+
127
+ - **Headless Fullscreen**: Launches directly into borderless fullscreen (`--no-border`, `--fs`) for a professional, TV-like experience.
128
+ - **Advanced Anti-Aliasing**: Uses `spline36` scaling, providing superior edge smoothing and diagonal line clarity on any machine.
129
+ - **Oversample Upscaling**: High-quality temporal upscaling that sharpens images while reducing movement flickering (Temporal AA).
130
+ - **Motion Smoothing**: High-performance `display-resample` interpolation for fluid sports playback at native refresh rates.
131
+ - **Hardware Acceleration**: Automatic `hwdec=auto-safe` with modern Windows `d3d11-flip` presentation for zero-copy GPU decoding.
132
+ - **Anti-Ringing Filter**: Eliminates halos around sharp edges and logos for a cleaner, high-end look.
133
+
134
+ ---
135
+
136
+ ## āŒØļø Common Controls
137
+
138
+ | Key | Action |
139
+ | :---------------------- | :--------------------------------------------------------- |
140
+ | **`Enter`** | **Play Channel / Select Category** |
141
+ | **`Esc` / `Backspace`** | **Go Back** |
142
+ | **`f`** | **Favorite** (Add/Remove current item from Favorites) |
143
+ | **`/`** | **Search** (Filters results instantly) |
144
+ | **`j` / `↓`** | Move Down |
145
+ | **`k` / `↑`** | Move Up |
146
+ | **`x`** | **Settings** (Update your playlist or turn on Screensaver) |
147
+ | **`q`** | **Quit** |
148
+
149
+ ---
150
+
151
+ ## šŸ› ļø Prerequisites
152
+
153
+ The installation scripts will attempt to install these for you:
154
+
155
+ - **MPV Player**: [mpv.io](https://mpv.io)
156
+ - **Rust Compiler**: [rustup.rs](https://rustup.rs) (Only required for manual builds)
157
+
158
+ ---
159
+
160
+ > **āš ļø Disclaimer:** Matrix IPTV CLI and its creator, are **not affiliated** with z2u, g2g, or any IPTV provider. We do not sell or distribute content. All transactions on these platforms are at your own risk. This guide is for informational purposes only (experimental "USA Mode" testing).
161
+
162
+ <details>
163
+ <summary><strong>šŸ›’ Where to Buy Playlists (Click to Expand)</strong></summary>
164
+
165
+ <br>
166
+
167
+ The experimental "USA Mode" is optimized for **Strong 8K**, **TRex**, and **Mega OTT** playlists. These are typically sourced from third-party marketplaces:
168
+
169
+ - **Platforms**: **z2u.com** or **g2g.com**
170
+ - **Search Terms**: "Strong 8k IPTV", "Trex IPTV", "Mega OTT"
171
+ - **Duration**: Usually sold in **1-month**, **6-month**, or **1-year** increments.
172
+
173
+ ### āœ… Buying Tips
174
+
175
+ 1. **Check Ratings**: Always choose a seller with a **high rating (98%+)** and a high sales count. These are 2-sided marketplaces, so reputation is everything.
176
+ 2. **Safe Payment**: Use strictly secure payment methods like **Google Pay** or **Apple Pay** directly through your device. Avoid direct bank transfers or obscure payment links.
177
+
178
+ </details>
179
+
180
+ ---
181
+
182
+ ## ⚔ Community & Support
183
+
184
+ Built and optimized with ā¤ļø by **Ernesto "Beats"** with the help of google antigravity and vibe coding during his PTO vacation time.
185
+
186
+ [![Twitter](https://img.shields.io/badge/Twitter-1DA1F2?style=for-the-badge&logo=twitter&logoColor=white)](https://x.com/officebeats)
187
+ [![Discord](https://img.shields.io/badge/Discord-5865F2?style=for-the-badge&logo=discord&logoColor=white)](https://discord.com/users/317887730703138826)
188
+
189
+ ---
190
+
191
+ ## šŸ“œ License
192
+
193
+ MIT // [ProductMG.com](https://www.productmg.com)
package/about.md CHANGED
@@ -1,32 +1,32 @@
1
- # Vibe IPTV CLI
2
-
3
- Learning how to vibecode with Google antigravity by building tools
4
- I casually need. Made this possible thanks to the use of Google Antigravity AI. :)
5
-
6
- I'm Ernesto "Beats", a product manager by profession.
7
-
8
- *+* ++++++++++
9
- +++ *++++++++++++++*
10
- +++++++* *+++*
11
- +++++ *++* *+++
12
- +++* +++++++++* ++*
13
- +++ ++* *+* ++
14
- +++ +++ +++ +++
15
- +++ +++* *++* +++
16
- +++ ++++* +++* *++
17
- +++ ++++++++++* +++*
18
- +++ +++ ++++
19
- +++ +++ ++++*
20
- +++ ++++++++++++++
21
- +++ +++ *+++++
22
- +++ +++
23
- +++ +++
24
- *+* *++
25
-
26
- @@@@@@ @ @ ++ ++ ++++++
27
- @@ @@ @@@@ @@@@@ @@@@@ @@ @@ @@@@ @@@@+++ +++ +
28
- @@ @@@ @@ @@ @@@ @ @@ @@ @ @ ++ + ++ + ++ ++
29
- @@ @@ @@ @@@@ @@ @@ @@ @@ @ @ ++ ++ + ++ ++
30
- @@ @@ @@@ @@@@ @@@ @ @@@ @@@ + + ++++
31
-
1
+ # Vibe IPTV CLI
2
+
3
+ Learning how to vibecode with Google antigravity by building tools
4
+ I casually need. Made this possible thanks to the use of Google Antigravity AI. :)
5
+
6
+ I'm Ernesto "Beats", a product manager by profession.
7
+
8
+ *+* ++++++++++
9
+ +++ *++++++++++++++*
10
+ +++++++* *+++*
11
+ +++++ *++* *+++
12
+ +++* +++++++++* ++*
13
+ +++ ++* *+* ++
14
+ +++ +++ +++ +++
15
+ +++ +++* *++* +++
16
+ +++ ++++* +++* *++
17
+ +++ ++++++++++* +++*
18
+ +++ +++ ++++
19
+ +++ +++ ++++*
20
+ +++ ++++++++++++++
21
+ +++ +++ *+++++
22
+ +++ +++
23
+ +++ +++
24
+ *+* *++
25
+
26
+ @@@@@@ @ @ ++ ++ ++++++
27
+ @@ @@ @@@@ @@@@@ @@@@@ @@ @@ @@@@ @@@@+++ +++ +
28
+ @@ @@@ @@ @@ @@@ @ @@ @@ @ @ ++ + ++ + ++ ++
29
+ @@ @@ @@ @@@@ @@ @@ @@ @@ @ @ ++ ++ + ++ ++
30
+ @@ @@ @@@ @@@@ @@@ @ @@@ @@@ + + ++++
31
+
32
32
  www.ProductMG.com
package/bin/cli.js CHANGED
@@ -1,32 +1,32 @@
1
1
  #!/usr/bin/env node
2
-
3
- const { spawn } = require("child_process");
4
- const path = require("path");
5
- const os = require("os");
6
- const fs = require("fs");
7
-
8
- const binaryName =
9
- os.platform() === "win32" ? "matrix-iptv.exe" : "matrix-iptv";
10
- const binaryPath = path.join(__dirname, binaryName);
11
-
12
- if (!fs.existsSync(binaryPath)) {
13
- console.error("\nāŒ Matrix IPTV binary not found.");
14
- console.log(
15
- "Please try reinstalling the package: npm install -g @officebeats/matrix-iptv-cli\n"
16
- );
17
- process.exit(1);
18
- }
19
-
20
- const child = spawn(binaryPath, process.argv.slice(2), {
21
- stdio: "inherit",
22
- windowsHide: false,
23
- });
24
-
25
- child.on("error", (err) => {
26
- console.error("Failed to start Matrix IPTV:", err);
27
- process.exit(1);
28
- });
29
-
30
- child.on("exit", (code) => {
31
- process.exit(code || 0);
32
- });
2
+
3
+ const { spawn } = require("child_process");
4
+ const path = require("path");
5
+ const os = require("os");
6
+ const fs = require("fs");
7
+
8
+ const binaryName =
9
+ os.platform() === "win32" ? "matrix-iptv.exe" : "matrix-iptv";
10
+ const binaryPath = path.join(__dirname, binaryName);
11
+
12
+ if (!fs.existsSync(binaryPath)) {
13
+ console.error("\nāŒ Matrix IPTV binary not found.");
14
+ console.log(
15
+ "Please try reinstalling the package: npm install -g @officebeats/matrix-iptv-cli\n"
16
+ );
17
+ process.exit(1);
18
+ }
19
+
20
+ const child = spawn(binaryPath, process.argv.slice(2), {
21
+ stdio: "inherit",
22
+ windowsHide: false,
23
+ });
24
+
25
+ child.on("error", (err) => {
26
+ console.error("Failed to start Matrix IPTV:", err);
27
+ process.exit(1);
28
+ });
29
+
30
+ child.on("exit", (code) => {
31
+ process.exit(code || 0);
32
+ });