Ticket #12006: upnpcase.patch

File upnpcase.patch, 2.8 KB (added by steve_@…, 7 years ago)

the patch as a file.

  • mythtv/libs/libmythupnp/upnpcds.cpp

    diff --git a/mythtv/libs/libmythupnp/upnpcds.cpp b/mythtv/libs/libmythupnp/upnpcds.cpp
    index 3cb0eb1..a36ef52 100644
    a b void UPnpCDS::HandleBrowse( HTTPRequest *pRequest ) 
    296296    UPnpCDSRequest           request;
    297297
    298298    DetermineClient( pRequest, &request );
    299     request.m_sObjectId         = pRequest->m_mapParams[ "ObjectID"      ];
    300     request.m_sContainerID      = pRequest->m_mapParams[ "ContainerID"   ];
     299    request.m_sObjectId         = pRequest->m_mapParams[ "objectid"      ];
     300    request.m_sContainerID      = pRequest->m_mapParams[ "containerid"   ];
    301301    request.m_sParentId         = "0";
    302302    request.m_eBrowseFlag       =
    303         GetBrowseFlag( pRequest->m_mapParams[ "BrowseFlag"    ] );
    304     request.m_sFilter           = pRequest->m_mapParams[ "Filter"        ];
     303        GetBrowseFlag( pRequest->m_mapParams[ "browseflag"    ] );
     304    request.m_sFilter           = pRequest->m_mapParams[ "filter"        ];
    305305    request.m_nStartingIndex    =
    306         pRequest->m_mapParams[ "StartingIndex" ].toLong();
     306        pRequest->m_mapParams[ "startingindex" ].toLong();
    307307    request.m_nRequestedCount   =
    308         pRequest->m_mapParams[ "RequestedCount"].toLong();
    309     request.m_sSortCriteria     = pRequest->m_mapParams[ "SortCriteria"  ];
     308        pRequest->m_mapParams[ "requestedcount"].toLong();
     309    request.m_sSortCriteria     = pRequest->m_mapParams[ "sortcriteria"  ];
    310310
    311311#if 0
    312312    LOG(VB_UPNP, LOG_DEBUG, QString("UPnpCDS::ProcessRequest \n"
    void UPnpCDS::HandleSearch( HTTPRequest *pRequest ) 
    493493    QString       sResultXML;
    494494
    495495    DetermineClient( pRequest, &request );
    496     request.m_sObjectId         = pRequest->m_mapParams[ "ObjectID"      ];
    497     request.m_sContainerID      = pRequest->m_mapParams[ "ContainerID"   ];
    498     request.m_sFilter           = pRequest->m_mapParams[ "Filter"        ];
     496    request.m_sObjectId         = pRequest->m_mapParams[ "objectid"      ];
     497    request.m_sContainerID      = pRequest->m_mapParams[ "containerid"   ];
     498    request.m_sFilter           = pRequest->m_mapParams[ "filter"        ];
    499499    request.m_nStartingIndex    =
    500         pRequest->m_mapParams[ "StartingIndex" ].toLong();
     500        pRequest->m_mapParams[ "startingIndex" ].toLong();
    501501    request.m_nRequestedCount   =
    502         pRequest->m_mapParams[ "RequestedCount"].toLong();
    503     request.m_sSortCriteria     = pRequest->m_mapParams[ "SortCriteria"  ];
    504     request.m_sSearchCriteria   = pRequest->m_mapParams[ "SearchCriteria"];
     502        pRequest->m_mapParams[ "requestedcount"].toLong();
     503    request.m_sSortCriteria     = pRequest->m_mapParams[ "sortcriteria"  ];
     504    request.m_sSearchCriteria   = pRequest->m_mapParams[ "searchcriteria"];
    505505
    506506    LOG(VB_UPNP, LOG_INFO,
    507507        QString("UPnpCDS::HandleSearch ObjectID=%1, ContainerId=%2")