[Feature]: STB Model
Maintainers usually reply within 1 day
Nobody has claimed this yet.
Assessment
- Difficulty
- 4/5
- Estimated time
- 3-5 days
- Newbie friendliness
- 55/100
- Issue type
- Feature
- Clarity
- Clearly specified
- Activity status
- Active
- Tech stack
- typescript
- Domain
- backend-api-design
Research direction
Start by reading stalker-stb-profile.const.ts, stalker-auth.api.ts, and stalker-request-identity.util.ts, where the issue says MAG250 is hard-coded. Trace how Stalker source settings reach those values and check the work related to #1370 for the profile fields. Done means a per-source model setting defaults to MAG250 and updates stb_type, metrics.model, User-Agent, firmware, and hw_version together.
Written by the indexing model from the issue text.
Description
Before you submit
- I searched the existing issues and this hasn't been requested yet.
- I removed usernames, passwords, MAC addresses, tokens and private URLs from any examples or screenshots I share.
What problem would this solve?
Some Stalker/Ministra portals reject IPTVnator because it always identifies as a MAG250. My provider's portal returns:
"Device conflict - device_id mismatch - Please contact your provider to register this device."
The same portal, MAC and serial work in STBEmu with the STB model set to MAG424. Switching STBEmu to MAG250 (nothing else changed) reproduces the exact same rejection, and switching back to MAG424 fixes it. Neither client sends a device ID, so the box model is the only difference.
IPTVnator hard-codes MAG250 in stb_type (stalker-stb-profile.const.ts), metrics.model (stalker-auth.api.ts) and the User-Agent (stalker-request-identity.util.ts), with no per-source override, so there's currently no way to connect to portals bound to another model.
What would you like to happen?
An optional "STB model" setting on Stalker sources (e.g. MAG250, MAG254, MAG322, MAG424, MAG524), defaulting to MAG250 so existing sources are unaffected. Choosing a model would set stb_type, metrics.model and the User-Agent together, plus matching firmware/hw_version values so the profile stays coherent per #1370.
Related: #927 (same error message; fixed for SN/device IDs), #345 (asked for a Stalker User-Agent setting), #1370 (fixed stb_type to MAG250).
Area
No response
Source types
No response
Alternatives you've considered
No response
Would you like to help?
None
- Dominant language
- TypeScript
- Stars
- 7.3k
- Forks
- 937
- Avg merge
- 1d 4h
- Merged PRs (30d)
- 210
Getting set up
- No Dockerfile or Docker Compose file
- Has a pull request template
- No contributing guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
More from 4gray/iptvnator
-
bug :bug:
Difficulty 2/5 1-3 hours Newbie friendliness 84/100
Maintainers usually reply within 1 day
-
enhancement :magic_wand:
Difficulty 2/5 1-3 hours Newbie friendliness 62/100
Maintainers usually reply within 1 day
-
enhancement :magic_wand:
Difficulty 2/5 1-3 hours Newbie friendliness 68/100
4gray/iptvnator#2306 · 1 reaction ·
Maintainers usually reply within 1 day
-
bug :bug:
Difficulty 2/5 1-3 hours Newbie friendliness 77/100
4gray/iptvnator#2198 · 1 comment ·
Maintainers usually reply within 1 day
-
enhancement :magic_wand:
Difficulty 2/5 1-3 hours Newbie friendliness 68/100
Maintainers usually reply within 1 day
Similar issues
-
accessibility area:ci ci-test level:low priority:high type:test
Difficulty 2/5 1-3 hours Newbie friendliness 71/100
skytuhua-org/Gen-V1#3132 · 1 comment ·
Maintainers usually reply within 1 day
-
Difficulty 2/5 1-3 hours Newbie friendliness 76/100
drmrd/vernacular#1238 ·
Maintainers usually reply within 1 day
-
question
Difficulty 2/5 1-3 hours Newbie friendliness 65/100
-
enhancement migration-prioritized
Difficulty 2/5 1-3 hours Newbie friendliness 88/100
Hudson-Pufferfish/local-party-console#136 ·
Maintainers usually reply within 1 day
-
priority:medium
Difficulty 2/5 1-3 hours Newbie friendliness 75/100
Maintainers usually reply within 1 day