mirror of
https://github.com/jellyfin/jellyfin-kodi.git
synced 2024-12-25 18:26:15 +00:00
Remove old method
This commit is contained in:
parent
aab9750b40
commit
8704be627d
1 changed files with 0 additions and 32 deletions
|
@ -93,38 +93,6 @@ class Read_EmbyServer():
|
||||||
items.extend(result['Items'])
|
items.extend(result['Items'])
|
||||||
|
|
||||||
return items
|
return items
|
||||||
|
|
||||||
def getView_embyId(self, itemid):
|
|
||||||
# Returns ancestors using embyId
|
|
||||||
viewId = None
|
|
||||||
|
|
||||||
url = "{server}/emby/Items/%s/Ancestors?UserId={UserId}&format=json" % itemid
|
|
||||||
for view in self.doUtils(url):
|
|
||||||
|
|
||||||
if view['Type'] == "CollectionFolder":
|
|
||||||
# Found view
|
|
||||||
viewId = view['Id']
|
|
||||||
|
|
||||||
# Compare to view table in emby database
|
|
||||||
with database.DatabaseConn('emby') as conn:
|
|
||||||
with closing(conn.cursor()) as cursor:
|
|
||||||
query = ' '.join((
|
|
||||||
|
|
||||||
"SELECT view_name, media_type",
|
|
||||||
"FROM view",
|
|
||||||
"WHERE view_id = ?"
|
|
||||||
))
|
|
||||||
cursor.execute(query, (viewId,))
|
|
||||||
result = cursor.fetchone()
|
|
||||||
try:
|
|
||||||
viewName = result[0]
|
|
||||||
mediatype = result[1]
|
|
||||||
except TypeError:
|
|
||||||
viewName = None
|
|
||||||
mediatype = None
|
|
||||||
|
|
||||||
|
|
||||||
return [viewName, viewId, mediatype]
|
|
||||||
|
|
||||||
def getFilteredSection(self, parentid, itemtype=None, sortby="SortName", recursive=True,
|
def getFilteredSection(self, parentid, itemtype=None, sortby="SortName", recursive=True,
|
||||||
limit=None, sortorder="Ascending", filter_type=""):
|
limit=None, sortorder="Ascending", filter_type=""):
|
||||||
|
|
Loading…
Reference in a new issue