Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

action request: onUserModifyFavorite #74

Open
solajim opened this issue Oct 22, 2023 · 1 comment
Open

action request: onUserModifyFavorite #74

solajim opened this issue Oct 22, 2023 · 1 comment

Comments

@solajim
Copy link

solajim commented Oct 22, 2023

Is your feature request related to a problem? Please describe.
No

Describe the solution you'd like
A new action that is triggered when a user favorites or unfavorites something. I'd like to use the action to execute some API calls to determine if the favorited item is in my library already, and if not, then do some magic to get it added. This would mainly be used in the Trailers plugin.

Describe alternatives you've considered
The other solution is to spin up a webhook endpoint with Node.js or maybe Flask that works via localhost, but that has two drawbacks:
1 - it requires running a servlet
2 - it wouldn't be able to be packaged within Scripter-X for others to use

As a workaround, I'll probably end up guiding users to add things they want to a list called "wishlist" (playlist updates trigger onMediaItemUpdated), but it's not as clean of a solution as just hitting the favorite button

@solajim
Copy link
Author

solajim commented Oct 22, 2023

finally managed to get a payload from the onMediaItemUpdated - it doesn't actually tell you the item that was added to the playlist. so, not really a workaround.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant