(2024-04-17, 04:13)CyberRooke Wrote: (2024-04-13, 00:43)CyberRooke Wrote: @jurialmunkey When using skin variables to merge paths, I added exclude key "playcount" and set it to greater than 0... But this only removes watched items for Trakt whereas the regular "mark as watched" doesn't work... Is there a custom exclude key I can add for it? ššš
@jurialmunkey any ideas on what I can do here? Wondering what code the hide watched in library uses and if that can be applied to a widget path in skin variables
What you're wanting is time-travel.
Once you see the items on screen, the plugin has already finished its code and is no longer running (this is how all plugins work), which means it is impossible to filter out additional items based on *new* information that only exists after the items were created.
Basically:
1. Kodi tells plugin it wants items from path plugin://xyz
2. Plugin XYZ runs some code, gives Kodi a directory of items with metadata attached.
3. Once the plugin finishes, Kodi displays the directory.
Filtering can only happen in Step 2, not before or after. The filter simply stops items which don't match from being added to the directory given to Kodi.
For other items to be filtered out afterwards, you would need to refresh the widget container so that Kodi will re-run the plugin and then the plugin can create new items with the new information to then filter them out from the new directory of items it creates.
EDIT: Think of it like ordering food in a drive through. You go up to the window and make your order. Then the restaurant makes it and gives it to you. You then drive away to eat it. If you want to change your order or get more food, you need to go through the drive through again.