mirror of
https://github.com/jellyfin/jellyfin-kodi.git
synced 2024-12-25 02:06:09 +00:00
return data directly instead of creating new var
This commit is contained in:
parent
75414f5f07
commit
2e1a2328fd
1 changed files with 6 additions and 18 deletions
|
@ -145,9 +145,7 @@ class Embydb_Functions():
|
||||||
"WHERE emby_id LIKE ?"
|
"WHERE emby_id LIKE ?"
|
||||||
))
|
))
|
||||||
self.embycursor.execute(query, (embyid+"%",))
|
self.embycursor.execute(query, (embyid+"%",))
|
||||||
items = self.embycursor.fetchall()
|
return self.embycursor.fetchall()
|
||||||
|
|
||||||
return items
|
|
||||||
|
|
||||||
def getItem_byView(self, mediafolderid):
|
def getItem_byView(self, mediafolderid):
|
||||||
|
|
||||||
|
@ -158,9 +156,7 @@ class Embydb_Functions():
|
||||||
"WHERE media_folder = ?"
|
"WHERE media_folder = ?"
|
||||||
))
|
))
|
||||||
self.embycursor.execute(query, (mediafolderid,))
|
self.embycursor.execute(query, (mediafolderid,))
|
||||||
items = self.embycursor.fetchall()
|
return self.embycursor.fetchall()
|
||||||
|
|
||||||
return items
|
|
||||||
|
|
||||||
def getItem_byKodiId(self, kodiid, mediatype):
|
def getItem_byKodiId(self, kodiid, mediatype):
|
||||||
|
|
||||||
|
@ -172,9 +168,7 @@ class Embydb_Functions():
|
||||||
"AND media_type = ?"
|
"AND media_type = ?"
|
||||||
))
|
))
|
||||||
self.embycursor.execute(query, (kodiid, mediatype,))
|
self.embycursor.execute(query, (kodiid, mediatype,))
|
||||||
item = self.embycursor.fetchone()
|
return self.embycursor.fetchone()
|
||||||
|
|
||||||
return item
|
|
||||||
|
|
||||||
def getItem_byParentId(self, parentid, mediatype):
|
def getItem_byParentId(self, parentid, mediatype):
|
||||||
|
|
||||||
|
@ -186,9 +180,7 @@ class Embydb_Functions():
|
||||||
"AND media_type = ?"
|
"AND media_type = ?"
|
||||||
))
|
))
|
||||||
self.embycursor.execute(query, (parentid, mediatype,))
|
self.embycursor.execute(query, (parentid, mediatype,))
|
||||||
items = self.embycursor.fetchall()
|
return self.embycursor.fetchall()
|
||||||
|
|
||||||
return items
|
|
||||||
|
|
||||||
def getItemId_byParentId(self, parentid, mediatype):
|
def getItemId_byParentId(self, parentid, mediatype):
|
||||||
|
|
||||||
|
@ -200,9 +192,7 @@ class Embydb_Functions():
|
||||||
"AND media_type = ?"
|
"AND media_type = ?"
|
||||||
))
|
))
|
||||||
self.embycursor.execute(query, (parentid, mediatype,))
|
self.embycursor.execute(query, (parentid, mediatype,))
|
||||||
items = self.embycursor.fetchall()
|
return self.embycursor.fetchall()
|
||||||
|
|
||||||
return items
|
|
||||||
|
|
||||||
def getChecksum(self, mediatype):
|
def getChecksum(self, mediatype):
|
||||||
|
|
||||||
|
@ -213,9 +203,7 @@ class Embydb_Functions():
|
||||||
"WHERE emby_type = ?"
|
"WHERE emby_type = ?"
|
||||||
))
|
))
|
||||||
self.embycursor.execute(query, (mediatype,))
|
self.embycursor.execute(query, (mediatype,))
|
||||||
items = self.embycursor.fetchall()
|
return self.embycursor.fetchall()
|
||||||
|
|
||||||
return items
|
|
||||||
|
|
||||||
def getMediaType_byId(self, embyid):
|
def getMediaType_byId(self, embyid):
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue