2022-04-17, 23:42
I modified the above snipped with the below limit of 999 and now all is working as I expected it to (no more limit of 250, 50, 25).
Modified snippet of jsonrpc.py
Modified snippet of jsonrpc.py
Would be very grateful if you made these configurable in the PseudoTV Live settings screen. Thanks for the awesome workpython:if sortbycount:
TVShows = [json.loads(x[0]) for x in sorted(TVShows.most_common(999))]
NetworkList = [x[0] for x in sorted(NetworkList.most_common(999))]
ShowGenreList = [x[0] for x in sorted(ShowGenreList.most_common(999))]
else:
TVShows = (sorted(map(json.loads, TVShows.keys()), key=lambda k: k['label']))
del TVShows[999:]
NetworkList = (sorted(set(list(NetworkList.keys()))))
del NetworkList[999:]
ShowGenreList = (sorted(set(list(ShowGenreList.keys()))))