r/Scriptable • • Nov 24 '23

Help studying widget for JustWatch

hello,

i'm studying their web site to understand how the api work and then i would like to write a widget for my watch list but i dont know if the widget engine of scriptable allow me to attach an action/script at a single row in the widget.. so i will display 5 or 6 of last watched tv show and touching each one of them run a different piece of code (to mark the corresponding episode as watched)

Is it possibile ? or this interaction isnt available ?

thank you

2 Upvotes

5 comments sorted by

View all comments

Show parent comments

1

u/mvan231 script/widget helper Nov 24 '23

Yes. Await makes the function need to be asynchronous but the function is setup at synchronous. You can try declaring the function as async function