mirror of
https://github.com/tuxbox-fork-migrations/recycled-ni-neutrino.git
synced 2025-08-26 15:02:50 +02:00
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:
@@ -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"> </td>
|
||||
|
@@ -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();
|
||||
|
Reference in New Issue
Block a user