mirror of
https://github.com/Tautulli/Tautulli.git
synced 2025-07-08 06:00:51 -07:00
Add sync_id parameter to get_metadata
This commit is contained in:
parent
615b98955a
commit
1a96da04a1
1 changed files with 5 additions and 3 deletions
|
@ -5032,12 +5032,13 @@ class WebInterface(object):
|
||||||
@cherrypy.tools.json_out()
|
@cherrypy.tools.json_out()
|
||||||
@requireAuth(member_of("admin"))
|
@requireAuth(member_of("admin"))
|
||||||
@addtoapi("get_metadata")
|
@addtoapi("get_metadata")
|
||||||
def get_metadata_details(self, rating_key='', **kwargs):
|
def get_metadata_details(self, rating_key='', sync_id='', **kwargs):
|
||||||
""" Get the metadata for a media item.
|
""" Get the metadata for a media item.
|
||||||
|
|
||||||
```
|
```
|
||||||
Required parameters:
|
Required parameters:
|
||||||
rating_key (str): Rating key of the item
|
rating_key (str): Rating key of the item, OR
|
||||||
|
sync_id (str): Sync ID of a synced item
|
||||||
|
|
||||||
Optional parameters:
|
Optional parameters:
|
||||||
None
|
None
|
||||||
|
@ -5188,7 +5189,8 @@ class WebInterface(object):
|
||||||
```
|
```
|
||||||
"""
|
"""
|
||||||
pms_connect = pmsconnect.PmsConnect()
|
pms_connect = pmsconnect.PmsConnect()
|
||||||
metadata = pms_connect.get_metadata_details(rating_key=rating_key)
|
metadata = pms_connect.get_metadata_details(rating_key=rating_key,
|
||||||
|
sync_id=sync_id)
|
||||||
|
|
||||||
if metadata:
|
if metadata:
|
||||||
return metadata
|
return metadata
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue