mirror of
https://github.com/jellyfin/jellyfin-roku.git
synced 2024-12-20 04:58:15 +00:00
13 lines
398 B
Plaintext
13 lines
398 B
Plaintext
function MarkItemFavorite(id as String)
|
|
url = Substitute("Users/{0}/FavoriteItems/{1}", get_setting("active_user"), id)
|
|
resp = APIRequest(url)
|
|
return postJson(resp)
|
|
end function
|
|
|
|
function UnmarkItemFavorite(id as String)
|
|
url = Substitute("Users/{0}/FavoriteItems/{1}", get_setting("active_user"), id)
|
|
resp = APIRequest(url)
|
|
resp.setRequest("DELETE")
|
|
return getJson(resp)
|
|
end function
|