@officebeats/matrix-iptv-cli 3.0.0 → 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/CHANGES.md +121 -121
- package/LICENSE +21 -0
- package/README.md +193 -191
- package/about.md +31 -31
- package/bin/cli.js +31 -31
- package/index.html +128 -90
- package/package.json +26 -26
- package/scripts/install-binary.js +96 -83
- package/scripts/proxy_server.js +68 -0
- package/test_config.json +85 -85
package/CHANGES.md
CHANGED
|
@@ -1,121 +1,121 @@
|
|
|
1
|
-
# IPTV App Changes Summary
|
|
2
|
-
|
|
3
|
-
## Date: 2025-12-21
|
|
4
|
-
|
|
5
|
-
### Changes Implemented
|
|
6
|
-
|
|
7
|
-
#### ✅ 1. Renamed "ARCHIVE_DATA" to "MOVIE_DATA"
|
|
8
|
-
|
|
9
|
-
**Files Modified:**
|
|
10
|
-
- `src/ui.rs`
|
|
11
|
-
|
|
12
|
-
**Changes:**
|
|
13
|
-
- **Line 167-169**: Changed header tab from `ARCHIVE_ACCESS` to `MOVIE_ACCESS`
|
|
14
|
-
- **Line 799-801**: Changed VOD streams pane title from `ARCHIVE_DATA` to `MOVIE_DATA`
|
|
15
|
-
|
|
16
|
-
**Rationale:** Better reflects the content type (movies/VOD) instead of generic "archive" terminology.
|
|
17
|
-
|
|
18
|
-
---
|
|
19
|
-
|
|
20
|
-
#### ✅ 2. Added "All Movies" Category for VOD
|
|
21
|
-
|
|
22
|
-
**Files Modified:**
|
|
23
|
-
- `src/main.rs`
|
|
24
|
-
|
|
25
|
-
**Changes:**
|
|
26
|
-
- **Line 237-253**: Injected "All Movies" category at index 0 of VOD categories list
|
|
27
|
-
- Category ID: "ALL"
|
|
28
|
-
- Category Name: "All Movies"
|
|
29
|
-
- Similar to how "All Channels" works for live TV
|
|
30
|
-
|
|
31
|
-
**Rationale:** Allows users to browse all VOD content across all categories without having to select individual categories.
|
|
32
|
-
|
|
33
|
-
---
|
|
34
|
-
|
|
35
|
-
#### ✅ 3. Implemented "All Movies" Stream Loading
|
|
36
|
-
|
|
37
|
-
**Files Modified:**
|
|
38
|
-
- `src/main.rs`
|
|
39
|
-
|
|
40
|
-
**Changes:**
|
|
41
|
-
- **Line 1362-1403**: Modified VOD stream loading logic to handle "ALL" category
|
|
42
|
-
- When "ALL" category is selected, calls `client.get_vod_streams_all().await`
|
|
43
|
-
- Otherwise, calls `client.get_vod_streams(&cat_id).await` for specific category
|
|
44
|
-
- Properly formatted with consistent indentation and error handling
|
|
45
|
-
|
|
46
|
-
**Code Structure:**
|
|
47
|
-
```rust
|
|
48
|
-
tokio::spawn(async move {
|
|
49
|
-
// Handle "All Movies" category
|
|
50
|
-
if cat_id == "ALL" {
|
|
51
|
-
match client.get_vod_streams_all().await {
|
|
52
|
-
Ok(streams) => { /* Load all streams */ }
|
|
53
|
-
Err(e) => { /* Handle error */ }
|
|
54
|
-
}
|
|
55
|
-
} else {
|
|
56
|
-
match client.get_vod_streams(&cat_id).await {
|
|
57
|
-
Ok(streams) => { /* Load category streams */ }
|
|
58
|
-
Err(e) => { /* Handle error */ }
|
|
59
|
-
}
|
|
60
|
-
}
|
|
61
|
-
});
|
|
62
|
-
```
|
|
63
|
-
|
|
64
|
-
---
|
|
65
|
-
|
|
66
|
-
### Performance Considerations
|
|
67
|
-
|
|
68
|
-
**Existing Optimizations:**
|
|
69
|
-
- Windowed rendering is already implemented in `src/ui.rs` (lines 608-702)
|
|
70
|
-
- Only visible items are parsed and rendered, not the entire list
|
|
71
|
-
- This should provide good scrolling performance even with large datasets
|
|
72
|
-
|
|
73
|
-
**Potential Performance Issues:**
|
|
74
|
-
1. Network latency when loading large "All Movies" list
|
|
75
|
-
2. Parsing overhead in `parse_movie()` and `parse_stream()` functions
|
|
76
|
-
3. The windowed rendering uses a half-window buffer which should be optimal
|
|
77
|
-
|
|
78
|
-
**Recommendation:**
|
|
79
|
-
- Monitor performance with real-world data
|
|
80
|
-
- If issues persist, consider:
|
|
81
|
-
- Caching parsed results
|
|
82
|
-
- Implementing lazy loading/pagination
|
|
83
|
-
- Optimizing the parsing functions
|
|
84
|
-
|
|
85
|
-
---
|
|
86
|
-
|
|
87
|
-
### Testing
|
|
88
|
-
|
|
89
|
-
**Status:** ✅ App compiles and runs successfully
|
|
90
|
-
|
|
91
|
-
**Test Command:**
|
|
92
|
-
```bash
|
|
93
|
-
cargo run --bin matrix-iptv
|
|
94
|
-
```
|
|
95
|
-
|
|
96
|
-
**Expected Behavior:**
|
|
97
|
-
1. Navigate to VOD section (press 'v' from live channels)
|
|
98
|
-
2. "All Movies" should appear as the first category
|
|
99
|
-
3. Selecting "All Movies" should load all VOD streams across all categories
|
|
100
|
-
4. Header should show "MOVIE_ACCESS" instead of "ARCHIVE_ACCESS"
|
|
101
|
-
5. Stream list should show "MOVIE_DATA" instead of "ARCHIVE_DATA"
|
|
102
|
-
|
|
103
|
-
---
|
|
104
|
-
|
|
105
|
-
### Files Created During Implementation
|
|
106
|
-
|
|
107
|
-
- `fix_vod.py` - Python script used to fix malformed code
|
|
108
|
-
- `fix_main.ps1` - PowerShell script (not used in final solution)
|
|
109
|
-
- `update_vod.ps1` - PowerShell script (not used in final solution)
|
|
110
|
-
- `vod_all_movies.patch` - Patch file (reference only)
|
|
111
|
-
|
|
112
|
-
**Note:** These helper files can be deleted after verification.
|
|
113
|
-
|
|
114
|
-
---
|
|
115
|
-
|
|
116
|
-
### Next Steps
|
|
117
|
-
|
|
118
|
-
1. ✅ Test with actual IPTV playlist to verify "All Movies" functionality
|
|
119
|
-
2. Monitor scrolling performance with large datasets
|
|
120
|
-
3. Consider adding loading indicators for "All Movies" (can take longer)
|
|
121
|
-
4. Optional: Add a count indicator showing total movies in "All Movies" category
|
|
1
|
+
# IPTV App Changes Summary
|
|
2
|
+
|
|
3
|
+
## Date: 2025-12-21
|
|
4
|
+
|
|
5
|
+
### Changes Implemented
|
|
6
|
+
|
|
7
|
+
#### ✅ 1. Renamed "ARCHIVE_DATA" to "MOVIE_DATA"
|
|
8
|
+
|
|
9
|
+
**Files Modified:**
|
|
10
|
+
- `src/ui.rs`
|
|
11
|
+
|
|
12
|
+
**Changes:**
|
|
13
|
+
- **Line 167-169**: Changed header tab from `ARCHIVE_ACCESS` to `MOVIE_ACCESS`
|
|
14
|
+
- **Line 799-801**: Changed VOD streams pane title from `ARCHIVE_DATA` to `MOVIE_DATA`
|
|
15
|
+
|
|
16
|
+
**Rationale:** Better reflects the content type (movies/VOD) instead of generic "archive" terminology.
|
|
17
|
+
|
|
18
|
+
---
|
|
19
|
+
|
|
20
|
+
#### ✅ 2. Added "All Movies" Category for VOD
|
|
21
|
+
|
|
22
|
+
**Files Modified:**
|
|
23
|
+
- `src/main.rs`
|
|
24
|
+
|
|
25
|
+
**Changes:**
|
|
26
|
+
- **Line 237-253**: Injected "All Movies" category at index 0 of VOD categories list
|
|
27
|
+
- Category ID: "ALL"
|
|
28
|
+
- Category Name: "All Movies"
|
|
29
|
+
- Similar to how "All Channels" works for live TV
|
|
30
|
+
|
|
31
|
+
**Rationale:** Allows users to browse all VOD content across all categories without having to select individual categories.
|
|
32
|
+
|
|
33
|
+
---
|
|
34
|
+
|
|
35
|
+
#### ✅ 3. Implemented "All Movies" Stream Loading
|
|
36
|
+
|
|
37
|
+
**Files Modified:**
|
|
38
|
+
- `src/main.rs`
|
|
39
|
+
|
|
40
|
+
**Changes:**
|
|
41
|
+
- **Line 1362-1403**: Modified VOD stream loading logic to handle "ALL" category
|
|
42
|
+
- When "ALL" category is selected, calls `client.get_vod_streams_all().await`
|
|
43
|
+
- Otherwise, calls `client.get_vod_streams(&cat_id).await` for specific category
|
|
44
|
+
- Properly formatted with consistent indentation and error handling
|
|
45
|
+
|
|
46
|
+
**Code Structure:**
|
|
47
|
+
```rust
|
|
48
|
+
tokio::spawn(async move {
|
|
49
|
+
// Handle "All Movies" category
|
|
50
|
+
if cat_id == "ALL" {
|
|
51
|
+
match client.get_vod_streams_all().await {
|
|
52
|
+
Ok(streams) => { /* Load all streams */ }
|
|
53
|
+
Err(e) => { /* Handle error */ }
|
|
54
|
+
}
|
|
55
|
+
} else {
|
|
56
|
+
match client.get_vod_streams(&cat_id).await {
|
|
57
|
+
Ok(streams) => { /* Load category streams */ }
|
|
58
|
+
Err(e) => { /* Handle error */ }
|
|
59
|
+
}
|
|
60
|
+
}
|
|
61
|
+
});
|
|
62
|
+
```
|
|
63
|
+
|
|
64
|
+
---
|
|
65
|
+
|
|
66
|
+
### Performance Considerations
|
|
67
|
+
|
|
68
|
+
**Existing Optimizations:**
|
|
69
|
+
- Windowed rendering is already implemented in `src/ui.rs` (lines 608-702)
|
|
70
|
+
- Only visible items are parsed and rendered, not the entire list
|
|
71
|
+
- This should provide good scrolling performance even with large datasets
|
|
72
|
+
|
|
73
|
+
**Potential Performance Issues:**
|
|
74
|
+
1. Network latency when loading large "All Movies" list
|
|
75
|
+
2. Parsing overhead in `parse_movie()` and `parse_stream()` functions
|
|
76
|
+
3. The windowed rendering uses a half-window buffer which should be optimal
|
|
77
|
+
|
|
78
|
+
**Recommendation:**
|
|
79
|
+
- Monitor performance with real-world data
|
|
80
|
+
- If issues persist, consider:
|
|
81
|
+
- Caching parsed results
|
|
82
|
+
- Implementing lazy loading/pagination
|
|
83
|
+
- Optimizing the parsing functions
|
|
84
|
+
|
|
85
|
+
---
|
|
86
|
+
|
|
87
|
+
### Testing
|
|
88
|
+
|
|
89
|
+
**Status:** ✅ App compiles and runs successfully
|
|
90
|
+
|
|
91
|
+
**Test Command:**
|
|
92
|
+
```bash
|
|
93
|
+
cargo run --bin matrix-iptv
|
|
94
|
+
```
|
|
95
|
+
|
|
96
|
+
**Expected Behavior:**
|
|
97
|
+
1. Navigate to VOD section (press 'v' from live channels)
|
|
98
|
+
2. "All Movies" should appear as the first category
|
|
99
|
+
3. Selecting "All Movies" should load all VOD streams across all categories
|
|
100
|
+
4. Header should show "MOVIE_ACCESS" instead of "ARCHIVE_ACCESS"
|
|
101
|
+
5. Stream list should show "MOVIE_DATA" instead of "ARCHIVE_DATA"
|
|
102
|
+
|
|
103
|
+
---
|
|
104
|
+
|
|
105
|
+
### Files Created During Implementation
|
|
106
|
+
|
|
107
|
+
- `fix_vod.py` - Python script used to fix malformed code
|
|
108
|
+
- `fix_main.ps1` - PowerShell script (not used in final solution)
|
|
109
|
+
- `update_vod.ps1` - PowerShell script (not used in final solution)
|
|
110
|
+
- `vod_all_movies.patch` - Patch file (reference only)
|
|
111
|
+
|
|
112
|
+
**Note:** These helper files can be deleted after verification.
|
|
113
|
+
|
|
114
|
+
---
|
|
115
|
+
|
|
116
|
+
### Next Steps
|
|
117
|
+
|
|
118
|
+
1. ✅ Test with actual IPTV playlist to verify "All Movies" functionality
|
|
119
|
+
2. Monitor scrolling performance with large datasets
|
|
120
|
+
3. Consider adding loading indicators for "All Movies" (can take longer)
|
|
121
|
+
4. Optional: Add a count indicator showing total movies in "All Movies" category
|
package/LICENSE
ADDED
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
MIT License
|
|
2
|
+
|
|
3
|
+
Copyright (c) 2024 Matrix IPTV CLI Contributors
|
|
4
|
+
|
|
5
|
+
Permission is hereby granted, free of charge, to any person obtaining a copy
|
|
6
|
+
of this software and associated documentation files (the "Software"), to deal
|
|
7
|
+
in the Software without restriction, including without limitation the rights
|
|
8
|
+
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
|
9
|
+
copies of the Software, and to permit persons to whom the Software is
|
|
10
|
+
furnished to do so, subject to the following conditions:
|
|
11
|
+
|
|
12
|
+
The above copyright notice and this permission notice shall be included in all
|
|
13
|
+
copies or substantial portions of the Software.
|
|
14
|
+
|
|
15
|
+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
|
16
|
+
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
|
17
|
+
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
|
18
|
+
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
|
19
|
+
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
|
20
|
+
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
|
21
|
+
SOFTWARE.
|