Skip to content

Commit

Permalink
Merge pull request #20 from BillyBob1354/master
Browse files Browse the repository at this point in the history
Jellyfin/Emby auto channel mapping
  • Loading branch information
daniel-widrick authored Feb 4, 2022
2 parents 8be740b + 2b2e73a commit e73353f
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 e73353f

Please sign in to comment.