mirror of
https://github.com/fHDHR/fHDHR_NextPVR.git
synced 2025-12-06 06:56:57 -05:00
Ensure Channel Order
This commit is contained in:
parent
5959a2ebec
commit
e72f0f2274
@ -1,6 +1,7 @@
|
||||
import datetime
|
||||
from collections import OrderedDict
|
||||
|
||||
from . import nextpvr as serviceorigin
|
||||
from . import plutotv as serviceorigin
|
||||
from fHDHR.tools import hours_between_datetime
|
||||
from fHDHR.fHDHRerrors import LoginError
|
||||
|
||||
@ -24,6 +25,10 @@ class OriginService():
|
||||
self.channels["list"][chan["number"]] = {}
|
||||
for chankey in list(chan.keys()):
|
||||
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):
|
||||
|
||||
|
||||
Loading…
Reference in New Issue
Block a user