Browse Source

include multiple display-name entries in xmltv (#1198)

pull/1199/head
Jason Dove 2 years ago committed by GitHub
parent
commit
e7e20de502
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
  1. 2
      CHANGELOG.md
  2. 11
      ErsatzTV.Core/Iptv/ChannelGuide.cs

2
CHANGELOG.md

@ -13,6 +13,8 @@ The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/). @@ -13,6 +13,8 @@ The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/).
### Changed
- Ignore case of video and audio file extensions in local folder scanner
- For example, the scanner will now find `movie.MKV` as well as `movie.mkv` on case-sensitive filesystems
- Include multiple `display-name` entries in generated XMLTV
- Plex should now display the channel number instead of the channel id (e.g. `1.2` instead of `1.2.etv`)
## [0.7.5-beta] - 2023-03-05
### Added

11
ErsatzTV.Core/Iptv/ChannelGuide.cs

@ -53,9 +53,16 @@ public class ChannelGuide @@ -53,9 +53,16 @@ public class ChannelGuide
xml.WriteAttributeString("id", $"{channel.Number}.etv");
xml.WriteStartElement("display-name");
xml.WriteAttributeString("lang", "en");
xml.WriteString($"{channel.Number} {channel.Name}");
xml.WriteEndElement(); // display-name (number and name)
xml.WriteStartElement("display-name");
xml.WriteString(channel.Number);
xml.WriteEndElement(); // display-name (number)
xml.WriteStartElement("display-name");
xml.WriteString(channel.Name);
xml.WriteEndElement(); // display-name
xml.WriteEndElement(); // display-name (name)
foreach (string category in GetCategories(channel.Categories))
{

Loading…
Cancel
Save