kodi-pvr / pvr.stalker

A PVR Client that connects Kodi to Stalker Middleware

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Status = 1

pgranat opened this issue · comments

Hi,
Kodi: Matrix
PVR Stalker: 19.0.4

Recently from one Middleware I receiver error:

ERROR <general>: AddOnLog: pvr.stalker: GetProfile: status=1 | msg= | block_msg=

Others are working just fine.

The error is generated here in src/SessionManager.cpp:

switch (m_profile->status)
  {
    case 0:
      break;
    case 2:
      ret = DoAuth();
      if (ret != SERROR_OK)
        return ret;

      return GetProfile(true);
    case 1:
    default:
      m_lastUnknownError = m_profile->msg;
      kodi::Log(ADDON_LOG_ERROR, "%s: status=%i | msg=%s | block_msg=%s", __func__,
                m_profile->status, m_profile->msg, m_profile->block_msg);
      return SERROR_UNKNOWN;
  }

However it gives no status reason and I don't know what to fix. As you can see there is no pointer for status=1 it automatically throws error.

Anyone knows which those status code means ? Probably 1 is some failed code

I've tried to

case 1:
        break;

But it didn't help. It throws errors further on getting channels.

P.S
On other client same credentials and middleware works flawlessly. Only kodi fails.