2017-09-07, 22:18
(2017-09-07, 10:11)sualfred Wrote: I use the cast listing a lot and noticed that it will not populate after a while. The log don't throw any errors, but I assume that it has something to do with the caching. Is there any way to bypass it?It's more probably a skin issue. What are you using to call the cast listing ?
Can you give it a try with Titan skin as a test ?
(2017-09-07, 10:11)sualfred Wrote: And fetching the cast by ListItem.TvShowTitle (for example) does not work, if the item has a numeric name. I guess the script think it's a DBID. Maybe creating a different argument to select DBID or By Name would solve the issue.
You're right... I should never have used the same argument for both dbid and title ;-)
I will take a look if there's still hope to change it. In the meanwhile take a look at the VAR I'm using for Titan which kind of works in almost all use cases (and doesn't have your problem mentioned above). Just use this var in the content tag for your cast list.
PHP Code:
<variable name="castInfo">
<value condition="!String.IsEmpty(ListItem.DBTYPE) + !String.IsEmpty(ListItem.DBID)">plugin://script.skin.helper.service/?action=getcast&$INFO[ListItem.DBTYPE]=$INFO[ListItem.DBID]&downloadthumbs=$INFO[Skin.String(actorthumbslookup)]&castaction=$INFO[Skin.String(videoinfo_castaction)]</value>
<value condition="!String.IsEmpty(ListItem.DBTYPE)">plugin://script.skin.helper.service/?action=getcast&$INFO[ListItem.DBTYPE]=$INFO[ListItem.Title]&downloadthumbs=$INFO[Skin.String(actorthumbslookup)]&castaction=$INFO[Skin.String(videoinfo_castaction)]</value>
<value condition="!String.IsEmpty(ListItem.Property(DBTYPE)) + !String.IsEmpty(ListItem.Property(DBID))">plugin://script.skin.helper.service/?action=getcast&$INFO[ListItem.Propery(DBTYPE)]=$INFO[ListItem.Propery(DBID)]&downloadthumbs=$INFO[Skin.String(actorthumbslookup)]&castaction=$INFO[Skin.String(videoinfo_castaction)]</value>
<value condition="!String.IsEmpty(ListItem.Property(DBTYPE))">plugin://script.skin.helper.service/?action=getcast&$INFO[ListItem.Propery(DBTYPE)]=$INFO[ListItem.Title]&downloadthumbs=$INFO[Skin.String(actorthumbslookup)]&castaction=$INFO[Skin.String(videoinfo_castaction)]</value>
<value condition="!String.IsEmpty(Container.Content)">plugin://script.skin.helper.service/?action=getcast&$INFO[Container.Content]=$INFO[ListItem.Title]&downloadthumbs=$INFO[Skin.String(actorthumbslookup)]&castaction=$INFO[Skin.String(videoinfo_castaction)]</value>
</variable>