Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

Channels: send also the VisibleInGuide option to XBMC

  • Loading branch information...
commit 56851379e169f8d3e219dddebb9d7df0da48ddb4 1 parent 7da6cb4
@margro authored
Showing with 17 additions and 2 deletions.
  1. +17 −2 TVServerXBMC/TV/ServerInterface.cs
View
19 TVServerXBMC/TV/ServerInterface.cs
@@ -707,6 +707,19 @@ public List<string> GetTVChannels(string groupName)
tvchannel = chan.IdChannel + "|" + channelNumber + "|" + chan.DisplayName + "|";
//[3] = isencrypted
tvchannel += (freetoair ? "0" : "1");
+ //[4] = iswebstream
+ //[5] = webstream url
+ if (chan.IsWebstream())
+ {
+ tvchannel += "|1|";
+ tvchannel += GetWebStreamURL(ref chan) + "|";
+ }
+ else
+ {
+ tvchannel += "|0||";
+ }
+ //[6] = visibleinguide
+ tvchannel += (chan.VisibleInGuide ? "1" : "0");
tvchannels.Add(tvchannel);
}
@@ -856,12 +869,14 @@ public List<string> GetRadioChannels(string groupName)
if (chan.IsWebstream())
{
radiochannel += "|1|";
- radiochannel += GetWebStreamURL(ref chan);
+ radiochannel += GetWebStreamURL(ref chan) + "|";
}
else
{
- radiochannel += "|0|";
+ radiochannel += "|0||";
}
+ //[6] = visibleinguide
+ radiochannel += (chan.VisibleInGuide ? "1" : "0");
radiochannels.Add(radiochannel);
Please sign in to comment.
Something went wrong with that request. Please try again.