Kodi Community Forum
ListItem.IsResumable problem. ??? - Printable Version

Kodi Community Forum (https://forum.kodi.tv)
+-- Forum: Development (https://forum.kodi.tv/forumdisplay.php?fid=32)
+--- Forum: Skinning (https://forum.kodi.tv/forumdisplay.php?fid=12)
--- Thread: ListItem.IsResumable problem. ??? (/showthread.php?tid=110222)

Pages: 1 2 3 4


ListItem.IsResumable problem. ??? - igotdvds - 2011-09-16

Having an issue with ListItem.IsResumable.

Here is the code and the pictures follow. One show that is resumable (episode 4) shows the icon another that is resumable (episode 6) does not.

Code:
Code:
                        <control type="image">
                            <posx>0</posx>
                            <posy>17</posy>
                            <width>40</width>
                            <height>40</height>
                            <align>left</align>
                            <texture>simplicity/banners/$INFO[ListItem.Overlay]</texture>
                            <visible>!ListItem.IsResumable</visible>
                        </control>
                        <control type="image">
                            <posx>0</posx>
                            <posy>17</posy>
                            <width>40</width>
                            <height>40</height>
                            <align>left</align>
                            <texture>simplicity/resume/$INFO[ListItem.Overlay]</texture>
                            <visible>ListItem.IsResumable</visible>
                        </control>

Image
-
Image


- pecinko - 2011-09-16

It gets refreshed on skin reload/window reopen?


- igotdvds - 2011-09-16

pecinko Wrote:It gets refreshed on skin reload/window reopen?

Nope, never changes.


- Jezz_X - 2011-09-16

There is an issue with it updating that pieh was going to look at basically right now it only updates when the list cache thinks the items need updating which is few and far between if you exit a folder and wait a little then re-enter it, it can cause the cache to update.

The solution was he was going to change how and where it got updated and was looking at making it update on video stop (seems logical) but I don't think he has actually done that yet


- pieh - 2011-09-16

It was played earlier and it wasn't showing it from start? or did enter window, played item and it didn't update? as Jezz_X said, I'm aware of update problem, but didn't have much time to fix it - maybe on weekend (finally!) I will get it done.


- igotdvds - 2011-09-16

It was watched, I started it again, it doesnt show resumable.

Also,

Unwatched show, started watching it, doesnt show resumable.

There are only two shows in my library that show resumable. Not sure how they got to be that way.


- BigNoid - 2011-09-16

atm I use this to determine if an item is resumable:
Code:
<visible>!SubString(ListItem.PercentPlayed,0,left)</visible>



- igotdvds - 2011-09-17

Big_Noid Wrote:atm I use this to determine if an item is resumable:
Code:
<visible>!SubString(ListItem.PercentPlayed,0,left)</visible>

Same issue with this code. Huh


- Hitcher - 2011-09-17

What does it show if you display the $INFO[ListItem.PercentPlayed] label?


- pieh - 2011-09-17

I just pushed some changes that might help - please try next nightly and let me know if it's working correctly. Thanks.


- igotdvds - 2011-09-17

pieh Wrote:I just pushed some changes that might help - please try next nightly and let me know if it's working correctly. Thanks.

Will do when its packed and up on the site. I dont know how to pull and package updates.


- igotdvds - 2011-09-17

Hitcher Wrote:What does it show if you display the $INFO[ListItem.PercentPlayed] label?

It shows 65.

Its strange, reloading the skin will make some of them populate for some shows, but not across the board. Some shows can all be resumed and none of the resume icons show, even if I reload the skin.


- pieh - 2011-09-17

igotdvds Wrote:Will do when its packed and up on the site. I dont know how to pull and package updates.
nightlies are build everyday and can be downloaded ca 10:00 AM, GMT +0 so no need to pull changes and build it Yourself (that is if You can wait that looooong Wink )


- BigNoid - 2011-09-17

ListItem.IsResumable doesn't return true or false, it's always empty for me. ListItem.PercentPlayed works as expected; 0 when not resumable and when you play something and stop it's immediately updated with the percentage played (as it did before).


- pieh - 2011-09-21

Big_Noid:
ListItem.IsResumable won't have any value in <label> etc - it is only usable in boolean conditions (f.e. <visible>, <enabled>), it did work in my tests, do You have any samples where You used it and it didn't work? (so I could try to locate what's causing it).

Bump for this topic - I don't know if there are still issues with this. It seems to work here for me (but no doubt here - I just test it with basic things like show "resumable" label if ListItem.IsResumable is set and just display PercentPlayed and another label).

So if something doesn't work - keep writing here (I can't fix it if I don't know that it's still broken)