mirror of
https://github.com/jellyfin/jellyfin-kodi.git
synced 2025-05-23 00:12:45 +00:00
Add refresh item to context menu
This commit is contained in:
parent
a42ecfdbc2
commit
3c60eddf55
3 changed files with 79 additions and 59 deletions
|
@ -266,6 +266,7 @@
|
|||
<string id="30407">Set custom song rating</string>
|
||||
<string id="30408">Emby addon settings</string>
|
||||
<string id="30409">Delete item from the server</string>
|
||||
<string id="30410">Refresh this item</string>
|
||||
|
||||
<!-- add-on settings -->
|
||||
<string id="30000">Primary Server Address</string><!-- Verified -->
|
||||
|
|
|
@ -564,4 +564,18 @@ class Read_EmbyServer():
|
|||
|
||||
log("Update user rating to emby for itemid: %s "
|
||||
"| like: %s | favourite: %s | deletelike: %s"
|
||||
% (itemid, like, favourite, deletelike), 1)
|
||||
% (itemid, like, favourite, deletelike), 1)
|
||||
|
||||
def refreshItem(self, itemid):
|
||||
|
||||
url = "{server}/emby/Items/%s/Refresh?format=json" % itemid
|
||||
params = {
|
||||
|
||||
'Recursive': True,
|
||||
'ImageRefreshMode': "FullRefresh",
|
||||
'MetadataRefreshMode': "FullRefresh",
|
||||
'ReplaceAllImages': False,
|
||||
'ReplaceAllMetadata': True
|
||||
|
||||
}
|
||||
self.doUtils(url, postBody=params, action_type="POST")
|
Loading…
Add table
Add a link
Reference in a new issue