2018-01-21, 11:13
I have a weird problem with items being played again when they are played and then stopped from a home screen widget.
I have a plugin EmbyCon that integrates with Emby and plays back media items from that server, I have set up a custom home widget to show tv latest episodes and they display ok and I can play back items.
However if I play an item and then stop it the item will play again. This is because the play action of the EmbyCon addon is called again for that item that was just stopped.
I have narrowed the issue down to the following line:
in file:
includes.xml
it looks like the ListItem.FolderPath is being set as the content of the dynamic list and when the dynamic list triggers update the ListItem.FolderPath is called again and this is calling the play action again on the plugin.
Without knowing what you are trying to do here is there a way around this to not have to use the ListItem.FolderPath as the content for the dynamic list?
I have a plugin EmbyCon that integrates with Emby and plays back media items from that server, I have set up a custom home widget to show tv latest episodes and they display ok and I can play back items.
However if I play an item and then stop it the item will play again. This is because the play action of the EmbyCon addon is called again for that item that was just stopped.
I have narrowed the issue down to the following line:
xml:<content sortby="year" sortorder="ascending">$INFO[$PARAM[infolabel_prefix]ListItem.FolderPath]</content>
in file:
includes.xml
it looks like the ListItem.FolderPath is being set as the content of the dynamic list and when the dynamic list triggers update the ListItem.FolderPath is called again and this is calling the play action again on the plugin.
Without knowing what you are trying to do here is there a way around this to not have to use the ListItem.FolderPath as the content for the dynamic list?