fix y-web streaminfo

Signed-off-by: GetAway <get-away@t-online.de>
This commit is contained in:
BPanther
2023-05-28 22:20:44 +02:00
committed by GetAway
parent 0cc83d9595
commit 1c7527b029
2 changed files with 11 additions and 3 deletions

View File

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

View File

@@ -916,8 +916,16 @@ std::string CNeutrinoYParser::func_get_current_stream_info(CyhookHandler *hh, st
hh->ParamList["vtxtpid"] = (serviceinfo.vtxtpid != 0)?itoh(serviceinfo.vtxtpid):"not available"; hh->ParamList["vtxtpid"] = (serviceinfo.vtxtpid != 0)?itoh(serviceinfo.vtxtpid):"not available";
hh->ParamList["pmtpid"] = (serviceinfo.pmtpid != 0)?itoh(serviceinfo.pmtpid):"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["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"; 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["ServiceName"] = NeutrinoAPI->GetServiceName(CZapit::getInstance()->GetCurrentChannelID());
hh->ParamList["Url"] = CZapit::getInstance()->GetCurrentChannel()->getUrl().c_str(); hh->ParamList["Url"] = CZapit::getInstance()->GetCurrentChannel()->getUrl().c_str();
hh->ParamList["VideoFormat"] = NeutrinoAPI->getVideoResolutionAsString(); hh->ParamList["VideoFormat"] = NeutrinoAPI->getVideoResolutionAsString();