-
Notifications
You must be signed in to change notification settings - Fork 5
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Patch 1 #24
Patch 1 #24
Conversation
Added channel id to display-name sub-element.
@@ -129,6 +129,7 @@ def doCreateXMLFile(menuCall = False): | |||
for Channel in Channels: | |||
channel = ET.SubElement(root, 'channel', id=str(Channel['id'])) | |||
ET.SubElement(channel, 'display-name').text = ValidateXMLStr(Channel['name']) | |||
ET.SubElement(channel, 'display-name').text = str(Channel['id'])) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This won't work ... "display-name" attribute (line 131) is overwritten with the channel Id (line 132). Might wanna change the attribute name from "display-name" to ex. "channel-id".
Closing for now, since @mm98 is correct here. |
It won't overwrite it, it will create another subelement. The end result is:
which is similar to other types of XMLTV format that I have seen. It appears fine in Plex. |
Sadly can't merge, due to me not knowing Git that well :( |
Added channel id (channel number) to display-name subelement for better compatibility with HDHRViewer V2