mirror of
https://github.com/jellyfin/jellyfin-kodi.git
synced 2025-07-22 14:28:58 +00:00
FINAL fix for the doubled episodes.
Yeah for real now :-)
This commit is contained in:
parent
debac27631
commit
4458fa6fda
4 changed files with 37 additions and 21 deletions
|
@ -13,6 +13,8 @@ import pstats
|
|||
import time
|
||||
import inspect
|
||||
import sqlite3
|
||||
import string
|
||||
import unicodedata
|
||||
from xml.etree.ElementTree import Element, SubElement, Comment, tostring
|
||||
from xml.etree import ElementTree
|
||||
from xml.dom import minidom
|
||||
|
@ -243,6 +245,9 @@ def stopProfiling(pr, profileName):
|
|||
f.write(str(ncalls) + "\t" + "{0}".format(total_time) + "\t" + "{0}".format(cumulative_time) + "\t" + func_name + "\t" + filename + "\r\n")
|
||||
f.close()
|
||||
|
||||
|
||||
def CleanName(filename):
|
||||
validFilenameChars = "-_.() %s%s" % (string.ascii_letters, string.digits)
|
||||
cleanedFilename = unicodedata.normalize('NFKD', filename).encode('ASCII', 'ignore')
|
||||
return ''.join(c for c in cleanedFilename if c in validFilenameChars)
|
||||
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue