2022-07-11, 13:41
Kodi add by default some context menus
and these are out-of-control of the python addons
I am referring specifically to these:
- Add/Remove to favourites
- Mark as unwatched / Mark as watched
Add/Remove to favourites:
There are situations in an addon that we would avoid allow that an user add to favourites some special ListItem's
for example items of a menu used to set a profile of a VOD service,
in this situation an user should not be allowed to add to favourites these special listitems,
to prevent incorrect use of the addon itself.
therefore the request is to allow the addon to decide which listitems can have this context menu
Mark as unwatched / Mark as watched:
This context menu works only if an addon do not use overrides in ListItems (so PlayCount and ResumeTime)
otherwise these menus operate falsely
watched status override example:
nowadays there are many addons that use watched status overrides to set the watched status according to the VOD service data,
these menus are apparently unusable, but if an user try use it, the value in the database is changed anyway (although not displayed)
it would be good to have a way to hiding this menu on listitems with overrides
and/or have a way to intercept the event of this menu from the addon, so that it can be handled in a customised way by each addon,
then have full control by allowing these menus to be usable to the final user, otherwise unnecessarily displayed, because they are "noop"
and these are out-of-control of the python addons
I am referring specifically to these:
- Add/Remove to favourites
- Mark as unwatched / Mark as watched
Add/Remove to favourites:
There are situations in an addon that we would avoid allow that an user add to favourites some special ListItem's
for example items of a menu used to set a profile of a VOD service,
in this situation an user should not be allowed to add to favourites these special listitems,
to prevent incorrect use of the addon itself.
therefore the request is to allow the addon to decide which listitems can have this context menu
Mark as unwatched / Mark as watched:
This context menu works only if an addon do not use overrides in ListItems (so PlayCount and ResumeTime)
otherwise these menus operate falsely
watched status override example:
python:list_item.setInfo('video': {'playcount': 0})
list_item.setProperty('ResumeTime', 1500)
list_item.setProperty('TotalTime', 3000)
nowadays there are many addons that use watched status overrides to set the watched status according to the VOD service data,
these menus are apparently unusable, but if an user try use it, the value in the database is changed anyway (although not displayed)
it would be good to have a way to hiding this menu on listitems with overrides
and/or have a way to intercept the event of this menu from the addon, so that it can be handled in a customised way by each addon,
then have full control by allowing these menus to be usable to the final user, otherwise unnecessarily displayed, because they are "noop"