Playback Monitor as a service,

Global search fix
other minimal fix
This commit is contained in:
Alhaziel01
2021-11-27 11:58:20 +01:00
parent 5257183fb7
commit 1e1787e9e9
13 changed files with 114 additions and 86 deletions
+6
View File
@@ -283,6 +283,12 @@ class Item(object):
def __str__(self):
return '\r\t' + self.tostring('\r\t')
def __eq__(self, other):
if type(other) == Item:
return self.__dict__ == other.__dict__
else:
return False
def set_parent_content(self, parentContent):
"""
Fill the contentDetails fields with the information of the item "parent"
+2 -2
View File
@@ -1882,9 +1882,9 @@ def get_jwplayer_mediaUrl(data, srvName, onlyHttp=False, dataIsBlock=False):
def itemlistdb(itemlist=None):
from core import db
if itemlist:
db['itemlist']['itemlist'] = itemlist
db['control']['itemlist'] = itemlist
else:
itemlist = db['itemlist'].get('itemlist',[])
itemlist = db['control'].get('itemlist',[])
db.close()
return itemlist