Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix wrong satellite miss detection #3

Open
wants to merge 5 commits into
base: main
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions HISTORY
Original file line number Diff line number Diff line change
Expand Up @@ -535,3 +535,4 @@ VDR Plugin 'wirbelscan' Revision History
controlling plugin.
* TP update on S19E2
* fixed the case when a language descriptor is empty (random incorrect lang)
* improve wrong satellite miss detection with some NIT tables
3 changes: 1 addition & 2 deletions scanfilter.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -837,8 +837,7 @@ void cNitScanner::Process(const unsigned char* Data, int Length) {
transponder->DelSys = System;
transponder->Rolloff = RollOff;
transponder->OrbitalPos = BCDtoDecimal(sd->getOrbitalPosition());
if (!sd->getWestEastFlag())
transponder->OrbitalPos *= -1;
transponder->West = west_flag;

bool found = false;
for(int i = 0; !found and i < data.transport_streams.Count(); i++) {
Expand Down
2 changes: 1 addition & 1 deletion statemachine.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -377,7 +377,7 @@ void cStateMachine::Action(void) {
NitData.transport_streams[i]->PrintTransponder(s);
std::string is_wrong;
if (abs(NitData.transport_streams[i]->OrbitalPos - initial->OrbitalPos) > 5)
is_wrong = "WRONG SATELLITE: ";
is_wrong = "WRONG SATELLITE ( " + IntToStr(initial->OrbitalPos) + " | " + IntToStr(NitData.transport_streams[i]->OrbitalPos) + " ): ";
dlog(0, "NIT: " + is_wrong + "'" + s + "'" +
", NID = " + IntToStr(NitData.transport_streams[i]->NID) +
", ONID = " + IntToStr(NitData.transport_streams[i]->ONID) +
Expand Down