Skip to content

Commit

Permalink
Jellyfin/Emby auto channel mapping
Browse files Browse the repository at this point in the history
fixed auto channel mapping for Jellyfin/Emby
  • Loading branch information
BillyBob1354 authored Jan 10, 2022
1 parent 8be740b commit 2b2e73a
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions zap2it-GuideScrape.py
Original file line number Diff line number Diff line change
Expand Up @@ -166,9 +166,9 @@ def BuildChannelXML(self,channel):
channelEl = self.guideXML.createElement('channel')
channelEl.setAttribute('id',channel["channelId"])
dispName1 = self.CreateElementWithData("display-name",channel["channelNo"] + " " + channel["callSign"])
dispName2 = self.CreateElementWithData("displayName",channel["channelNo"])
dispName3 = self.CreateElementWithData("displayName",channel["callSign"])
dispName4 = self.CreateElementWithData("displayName",channel["affiliateName"].title())
dispName2 = self.CreateElementWithData("display-name",channel["channelNo"])
dispName3 = self.CreateElementWithData("display-name",channel["callSign"])
dispName4 = self.CreateElementWithData("display-name",channel["affiliateName"].title())
iconEl = self.guideXML.createElement("icon")
iconEl.setAttribute("src","http://"+(channel["thumbnail"].partition('?')[0] or "").lstrip('/'))
channelEl.appendChild(dispName1)
Expand Down

0 comments on commit 2b2e73a

Please sign in to comment.