mirror of
https://github.com/jellyfin/jellyfin-kodi.git
synced 2024-11-10 04:06:11 +00:00
Remove old method
This commit is contained in:
parent
aab9750b40
commit
8704be627d
1 changed files with 0 additions and 32 deletions
|
@ -94,38 +94,6 @@ class Read_EmbyServer():
|
|||
|
||||
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,
|
||||
limit=None, sortorder="Ascending", filter_type=""):
|
||||
params = {
|
||||
|
|
Loading…
Reference in a new issue