It's a general issue and not related to TVMosaic. [ChannelName] provides a correct string, but for some reason there is no logo, if "Manage series schedules" is activated.While testing for series schedules I found another minor bug. Maybe it’s not even related to TVMosaic. When selecting „Manage series schedules“ the channel logos are not visible.
View attachment 209877
<Image.Source>
<fanart:FanArtImageSource fanart:FanArtMediaType="{Binding Program.ChannelLogoType}" fanart:FanArtType="Banner" fanart:FanArtName="{Binding [ChannelName]}"
fanart:MaxWidth="{StaticResource TvLogoChacheWidth}" fanart:MaxHeight="{StaticResource TvLogoChacheHeight}"/>
</Image.Source>
Agree, if you tell me how to check for different schedule types by ID and not string (due to localisation issues), I can fix it accordingly.And series type schedules can be "record on every channel", so a single logo is not meaningful at all.
I pushed my changes yesterday but had no time to copy download link from TC. Maybe someone else can do this?
public enum ScheduleRecordingType
{
Once,
Daily,
Weekly,
EveryTimeOnThisChannel,
EveryTimeOnEveryChannel,
Weekends,
WorkingDays,
WeeklyEveryTimeOnThisChannel
}
I can do that.I pushed my changes yesterday but had no time to copy download link from TC. Maybe someone else can do this?
I have checked code and for the "manage series schedules" there is a ListItem with following labels:Agree, if you tell me how to check for different schedule types by ID and not string (due to localisation issues), I can fix it accordingly.
item.SetLabel("ChannelName", result.Result.Name);
item.SetLabel("StartTime", schedule.StartTime.FormatProgramStartTime());
item.SetLabel("EndTime", schedule.EndTime.FormatProgramEndTime());
item.SetLabel("ScheduleType", string.Format("[SlimTvClient.ScheduleRecordingType_{0}]", schedule.RecordingType));
Ah, ok. That's another point. You could try the simple value "ChannelTv" instead of binding to so see if it is the causeIt could be because Program.ChannelLogoType is not valid anymore
This is how it's shown currently in the details. But as I mentioned the strings are localized, so unfortunately useless for an IsVisible property.I have checked code and for the "manage series schedules" there is a ListItem with following labels:
So you should be able to access them like [ChannelName].C#:item.SetLabel("ChannelName", result.Result.Name); item.SetLabel("StartTime", schedule.StartTime.FormatProgramStartTime()); item.SetLabel("EndTime", schedule.EndTime.FormatProgramEndTime()); item.SetLabel("ScheduleType", string.Format("[SlimTvClient.ScheduleRecordingType_{0}]", schedule.RecordingType));
The property should be also set for type "on all channels", containing the channel where you originally started the schedule.
Done and pushed.I will add the enum (not localized) to the labels, like "ScheduleTypeEnum". By this way I will also add the ChannelLogoType there (addidionally to ProgramItem)