Ticket #7783: httpstatus.2.patch

File httpstatus.2.patch, 1.3 KB (added by lifter89@…, 10 years ago)

Updated patch (fixed formatting and headers)

  • httpstatus.cpp

     
    3333#include "mythconfig.h"
    3434#include "autoexpire.h"
    3535#include "mainserver.h"
     36#include "cardutil.h"
    3637
    3738/////////////////////////////////////////////////////////////////////////////
    3839//
     
    708709
    709710                bool bIsLowOnFreeSpace=e.attribute( "lowOnFreeSpace", "0").toInt();
    710711
    711                 os << "    Encoder " << sCardId << " is " << sIsLocal
     712                QString devlabel;
     713                MSqlQuery query(MSqlQuery::InitCon());
     714                query.prepare("SELECT cardid, cardtype, videodevice "
     715                              "FROM capturecard WHERE cardid = :CARDID ORDER BY cardid");
     716                query.bindValue(":CARDID", sCardId.toInt());
     717
     718                if (query.exec() && query.next())
     719                {
     720                    devlabel = CardUtil::GetDeviceLabel(
     721                    query.value(0).toInt(), query.value(1).toString(), query.value(2).toString());
     722                }
     723
     724                os << "    Encoder " << sCardId << " " << devlabel << " is " << sIsLocal
    712725                   << " on " << sHostName;
    713726
    714727                if ((sIsLocal == "remote") && !bConnected)