mirror of
https://github.com/jellyfin/jellyfin-kodi.git
synced 2024-11-10 04:06:11 +00:00
Plug in settings for threading
This commit is contained in:
parent
b35cd29bc2
commit
f9e26e1c23
1 changed files with 4 additions and 0 deletions
|
@ -403,3 +403,7 @@ def normalize_string(text):
|
|||
text = unicodedata.normalize('NFKD', unicode(text, 'utf-8')).encode('ascii', 'ignore')
|
||||
|
||||
return text
|
||||
|
||||
def split_list(itemlist, size):
|
||||
# Split up list in pieces of size. Will generate a list of lists
|
||||
return [itemlist[i:i+size] for i in range(0, len(itemlist), size)]
|
||||
|
|
Loading…
Reference in a new issue