1
0
mirror of https://github.com/fHDHR/fHDHR_NextPVR.git synced 2025-12-06 13:06:59 -05:00

Merge pull request #37 from deathbybandaid/dev

Dev
This commit is contained in:
Deathbybandaid 2020-10-15 11:13:23 -04:00 committed by GitHub
commit 191abcbfa3
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -1,4 +1,5 @@
import datetime import datetime
from collections import OrderedDict
from . import nextpvr as serviceorigin from . import nextpvr as serviceorigin
from fHDHR.tools import hours_between_datetime from fHDHR.tools import hours_between_datetime
@ -24,6 +25,10 @@ class OriginService():
self.channels["list"][chan["number"]] = {} self.channels["list"][chan["number"]] = {}
for chankey in list(chan.keys()): for chankey in list(chan.keys()):
self.channels["list"][chan["number"]][chankey] = chan[chankey] self.channels["list"][chan["number"]][chankey] = chan[chankey]
self.channel_order()
def channel_order(self):
self.channels["list"] = OrderedDict(sorted(self.channels["list"].items()))
def get_channels(self, forceupdate=False): def get_channels(self, forceupdate=False):