Fix Recently Added

Plex time was not converted to Kodi time
This commit is contained in:
tomkat83 2016-03-13 14:50:29 +01:00
parent 9b99028fb1
commit 53c07d4b50
2 changed files with 4 additions and 3 deletions

View file

@ -1513,7 +1513,7 @@ class API():
"""
Returns the date when this library item was created
"""
return utils.DateToKodi(self.item.attrib.get('addedAt', None))
return utils.DateToKodi(self.item.attrib.get('addedAt'))
def getUserData(self):
"""

View file

@ -7,7 +7,8 @@ import inspect
import json
import pstats
import sqlite3
from datetime import datetime, time, timedelta
from datetime import datetime, timedelta
import time
import unicodedata
import xml.etree.ElementTree as etree
from functools import wraps
@ -545,7 +546,7 @@ def startProfiling():
return pr
def stopProfiling(pr, profileName):
from datetime import time
pr.disable()
ps = pstats.Stats(pr)