In addition to my request to add a function to have continuous channel numbering (#8), I'd like to request to use sorted dictionaries instead of the standard unsorted dictionaries.
Because unsorted dictionaries are used, the order of channels in the result xml file is always different, which messes up channel mappings in Plex.
First another import is needed:
import collections
Then changes to the dictionaries of def getBouquets and def getBouquetsServices are needed:
def getBouquets(bouquet, api_root_url, list_bouquets):
...
result = collections.OrderedDict()
In addition to my request to add a function to have continuous channel numbering (#8), I'd like to request to use sorted dictionaries instead of the standard unsorted dictionaries. Because unsorted dictionaries are used, the order of channels in the result xml file is always different, which messes up channel mappings in Plex.
First another import is needed:
Then changes to the dictionaries of
def getBouquets
anddef getBouquetsServices
are needed: