fix y-web streaminfo

Origin commit data
------------------
Branch: ni/coolstream
Commit: 093ced70c4
Author: BPanther <bpanther_ts@hotmail.com>
Date: 2023-05-29 (Mon, 29 May 2023)


------------------
No further description and justification available within origin commit message!

------------------
This commit was generated by Migit
This commit is contained in:
BPanther
2023-05-29 22:32:56 +02:00
committed by vanhofen
parent c94034449e
commit 991db1cce5
2 changed files with 14 additions and 6 deletions

View File

@@ -50,7 +50,7 @@
</tr>
<tr>
<td class="set"><b>{=L:epg.si.frequence=}:</b></td>
<td class="set"><div align="left">{=tsfrequency=} ({=polarisation=})</div></td>
<td class="set"><div align="left">{=tsfrequency=} {=polarisation=}</div></td>
</tr>
<tr>
<td class="set" colspan="2">&nbsp;</td>

View File

@@ -921,11 +921,19 @@ std::string CNeutrinoYParser::func_get_current_stream_info(CyhookHandler *hh, st
hh->ParamList["tsid"] = itoh(serviceinfo.tsid);
hh->ParamList["vpid"] = itoh(serviceinfo.vpid);
hh->ParamList["apid"] = itoh(serviceinfo.apid);
hh->ParamList["vtxtpid"] = (serviceinfo.vtxtpid != 0)?itoh(serviceinfo.vtxtpid):"not available";
hh->ParamList["pmtpid"] = (serviceinfo.pmtpid != 0)?itoh(serviceinfo.pmtpid):"not available";
hh->ParamList["pcrpid"] = (serviceinfo.pcrpid != 0)?itoh(serviceinfo.pcrpid):"not available";
hh->ParamList["tsfrequency"] = string_printf("%d.%d MHz", serviceinfo.tsfrequency/1000, serviceinfo.tsfrequency%1000);
hh->ParamList["polarisation"] = serviceinfo.polarisation==1?"h":"v";
hh->ParamList["vtxtpid"] = (serviceinfo.vtxtpid != 0) ? itoh(serviceinfo.vtxtpid) : "not available";
hh->ParamList["pmtpid"] = (serviceinfo.pmtpid != 0) ? itoh(serviceinfo.pmtpid) : "not available";
hh->ParamList["pcrpid"] = (serviceinfo.pcrpid != 0) ? itoh(serviceinfo.pcrpid) : "not available";
int mode = CNeutrinoApp::getInstance()->getMode();
if (mode == NeutrinoModes::mode_tv || mode == NeutrinoModes::mode_radio) {
hh->ParamList["tsfrequency"] = string_printf("%d.%d MHz", serviceinfo.tsfrequency / 1000, serviceinfo.tsfrequency % 1000);
hh->ParamList["polarisation"] = serviceinfo.polarisation == 1 ? "(H)" : "(V)";
} else {
hh->ParamList["tsfrequency"] = "not available";
hh->ParamList["polarisation"] = "";
}
hh->ParamList["ServiceName"] = NeutrinoAPI->GetServiceName(CZapit::getInstance()->GetCurrentChannelID());
hh->ParamList["Url"] = CZapit::getInstance()->GetCurrentChannel()->getUrl().c_str();
hh->ParamList["VideoFormat"] = NeutrinoAPI->getVideoResolutionAsString();