mirror of
https://github.com/jellyfin/jellyfin-roku.git
synced 2024-11-23 14:19:40 +00:00
20 lines
391 B
Plaintext
20 lines
391 B
Plaintext
import "pkg:/source/api/UserLibrary.bs"
|
|
import "pkg:/source/api/baserequest.bs"
|
|
import "pkg:/source/utils/config.bs"
|
|
|
|
sub init()
|
|
m.top.functionName = "setFavoriteStatus"
|
|
end sub
|
|
|
|
sub setFavoriteStatus()
|
|
|
|
task = m.top.favTask
|
|
|
|
if task = "Favorite"
|
|
MarkItemFavorite(m.top.itemId)
|
|
else if task = "Unfavorite"
|
|
UnmarkItemFavorite(m.top.itemId)
|
|
end if
|
|
|
|
end sub
|