include multiple display-name entries in xmltv (#1198)
This commit is contained in:
@@ -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
|
||||
|
||||
@@ -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))
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user