mirror of
https://github.com/Tautulli/Tautulli.git
synced 2025-07-10 23:42:37 -07:00
Update session info
This commit is contained in:
parent
0c95297659
commit
e272a0eecc
3 changed files with 309 additions and 513 deletions
|
@ -3841,13 +3841,12 @@ class WebInterface(object):
|
|||
@cherrypy.tools.json_out()
|
||||
@requireAuth(member_of("admin"))
|
||||
@addtoapi("get_metadata")
|
||||
def get_metadata_details(self, rating_key='', media_info=False, **kwargs):
|
||||
def get_metadata_details(self, rating_key='', **kwargs):
|
||||
""" Get the metadata for a media item.
|
||||
|
||||
```
|
||||
Required parameters:
|
||||
rating_key (str): Rating key of the item
|
||||
media_info (bool): True or False whether to get media info
|
||||
|
||||
Optional parameters:
|
||||
None
|
||||
|
@ -3905,7 +3904,7 @@ class WebInterface(object):
|
|||
```
|
||||
"""
|
||||
pms_connect = pmsconnect.PmsConnect()
|
||||
metadata = pms_connect.get_metadata_details(rating_key=rating_key, get_media_info=media_info)
|
||||
metadata = pms_connect.get_metadata_details(rating_key=rating_key)
|
||||
|
||||
if metadata:
|
||||
return metadata
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue