[Feature]: STB Model

Open
#2,191 0 comments 0 reactions 0 assignees View on GitHub

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

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

enhancement :magic_wand:
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

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

More from 4gray/iptvnator

All issues in 4gray/iptvnator

Similar issues

More TypeScript issues

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.