Kodi Community Forum

Full Version: plugin.video.themoviedb.helper - Access to TheMovieDb API for Skinners
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
What's the criteria for the number of actors listed because some of my shows only list a small number of them?

Path used -

plugin://plugin.video.themoviedb.helper?info=cast&tmdb_type=tv&query=$INFO[ListItem.TVShowTitle]&year=$INFO[ListItem.Year]&nextpage=false

Mr. Robot only lists 5 and Ahsoka only lists 7 but both have considerably more.

Thanks.
@jurialmunkey

Great work on this addon! Smile

I have some questions (since you seem to be using mdblist API for a while now):

- Can you say something in regards to reliability and mdblist free user API key daily limits and how it compares to good old omdb in your experience?
- Do you see any reasons for fetchings ratings from omdb over mdblist? (besides backup reasons)
- Also in your experience: Any other info/downsides regarding the mdblist API one should know about?

Thank you very much.
(2023-09-27, 20:16)Hitcher Wrote: [ -> ]What's the criteria for the number of actors listed because some of my shows only list a small number of them?
Mr. Robot only lists 5 and Ahsoka only lists 7 but both have considerably more.

@Hitcher
Sorry I missed this.

By default, the API only returns the main cast from the latest season. To get the full cast add the &aggregate=true param (I forgot to add that in the wiki, will add it now).
Thanks.
Would it be possible to add an adjustable delay of 1-3 days to auto update for episodes?

I often have to manually update the last added episode 1-2 days after the broadcast date, because not all of the data was available on TMDB when it was automatically added to the library.

One problem is the time difference (time zone) and the other problem is the delay in API data retrieval (TMDB-web vs. TMDB-api)

This function could solve the problems.
The user saves effort when maintaining the library and it reduces the traffic on TMDB.

My setting at TMDB Helper:
"Hide unaired episodes" => activated
"Hide items without airdates" => activated
@jurialmunkey


First of all, thank you very much for the work you do.

I use themoviedb helper addon. I do it with two players jellycom and composite for plex. I have two problems, with neither of them I can play any tv shows whose chapters do not have a specific name, but rather are named "episode 1" or "episode 2" and so on. And in jellycom, in some random tv shows, all the chapters appear that have the same name as the one I'm trying to play, regardless of the tv shows. It's like it only searches for the name of the episodeĀ  I have tried to change all the settings but I can't get anything, can help me? Thanks in advance
(2023-10-13, 11:04)fer1803 Wrote: [ -> ]@jurialmunkey


First of all, thank you very much for the work you do.

I use themoviedb helper addon. I do it with two players jellycom and composite for plex. I have two problems, with neither of them I can play any tv shows whose chapters do not have a specific name, but rather are named "episode 1" or "episode 2" and so on. And in jellycom, in some random tv shows, all the chapters appear that have the same name as the one I'm trying to play, regardless of the tv shows. It's like it only searches for the name of the episodeĀ  I have tried to change all the settings but I can't get anything, can help me? Thanks in advance

Information about configuring players is available in the wiki
https://github.com/jurialmunkey/plugin.v...r-Function

I don't use Jellycon or Plex. The players for these were made by other people and I'm unable to troubleshoot them since I dont use them.

You can see the player files for them here:
https://github.com/jurialmunkey/plugin.v..._plex.json
https://github.com/jurialmunkey/plugin.v...lycon.json
https://github.com/jurialmunkey/plugin.v...entid.json

You would need to edit the players to make better rules for matching.
Thank you very much, that is too much for my knowledge, but I appreciate the time in answering.
@jurielmunkey

Well, now I have the problem with embycon. The search and playback of chapters is done correctly with the "embycon player" but the problem is that when I see a chapter through the Kodi library synchronized with my trakt account through themoviedbhelper, if I stop it, it does not appear as "paused" in the library, although it does in embycon and when I finish watching it exactly the same, it doesn't appear as "watched" in the library but it does in embycon.. Any idea what the problem could be? thank you very much in advance.
@jurialmunkey
Hi! I have been working on adding this to my skin but am having a tiny issue that I cannot seem to figure out. I added a basic script-tmdbhelper-recommendations.xml and it loads fine but when I click on anything, DialogVideoInfo.xml opens, then immediately closes. When I hide my empty background window and grab a quick screenshot I can see the dialog open and appears to be populating correctly.

Image

Not sure where I goofed but if you could take a look I would appreciate it

LOG FILE

Thanks Smile
I had this happen recently when I was adding it to my skin but I can't remember how I fixed now. I'll report back later if it comes to me.
@mikeSiLVO - Can you point me to where in your code you're calling the recommendations script?

Also remove these type of visibility conditions from your containers:
xml:

<visible>Integer.IsGreater(Container(5000).NumItems,0)</visible>

The script automatically manages the visibility of containers using window properties. If you hide the containers early using some other condition then it will cause issues because the script wont be able to see control IDs to populate them - I think this is likely the cause of the issue you're seeing but possibly might also be related to how you're calling the script.

You should use these conditions for container visibility (switch 5000 for specific ID).

xml:

<visible>[!String.IsEmpty(Window.Property(List_5000_Visible)) | !String.IsEmpty(Window.Property(List_5000_IsUpdating))]</visible>

You can also use these properties elsewhere if you need to check the status of lists from other controls. More details here:
https://github.com/jurialmunkey/plugin.v...properties

IsUpdating is set to True while the content is loading and is cleared once added to the container.
Visible is set to True after items have been added to the container. The property will remain empty if no items were added.
(2023-10-25, 06:43)jurialmunkey Wrote: [ -> ]@mikeSiLVO - Can you point me to where in your code you're calling the recommendations script?

Also remove these type of visibility conditions from your containers:
xml:

<visible>Integer.IsGreater(Container(5000).NumItems,0)</visible>

The script automatically manages the visibility of containers using window properties. If you hide the containers early using some other condition then it will cause issues because the script wont be able to see control IDs to populate them - I think this is likely the cause of the issue you're seeing but possibly might also be related to how you're calling the script.

You should use these conditions for container visibility (switch 5000 for specific ID).

xml:

<visible>[!String.IsEmpty(Window.Property(List_5000_Visible)) | !String.IsEmpty(Window.Property(List_5000_IsUpdating))]</visible>

You can also use these properties elsewhere if you need to check the status of lists from other controls. More details here:
https://github.com/jurialmunkey/plugin.v...properties

IsUpdating is set to True while the content is loading and is cleared once added to the container.
Visible is set to True after items have been added to the container. The property will remain empty if no items were added.


I am currently trying out 2 different ways to call the recommendations. As an <ondown> in a grouplist

xml:
<ondown condition="!String.IsEqual(ListItem.DBTYPE,episode) + !String.IsEqual(ListItem.DBTYPE,set) + !String.IsEqual(ListItem.Property(item.type),person)">Runscript(plugin.video.themoviedb.helper,recommendations=5000|info=cast|true|info||5001|info=crew|true|info||5002|info=similar|true|info,window_id=1110,$VAR[TMDbHelperDBTYPEPathVar],tmdb_id=$INFO[Container(9143).ListItem.UniqueID(tmdb)])</ondown>

and an onclick in a dialog I put some extra buttons in but I am currently only using it for testing out some things on the home window.

xml:
<onclick>Runscript(plugin.video.themoviedb.helper,recommendations=5000|info=cast|true|info||5001|info=crew|true|info||5002|info=similar|true|info,window_id=1110,$VAR[TMDbHelperDBTYPEPathVar],$VAR[TMDbHelperUIDPathVar])</onclick>
xml:
<variable name="TMDbHelperDBTYPEPathVar">
<value condition="String.IsEqual(ListItem.DBTYPE,movie)">tmdb_type=movie</value>
<value condition="String.IsEqual(ListItem.DBTYPE,tvshow)">tmdb_type=tv</value>
</variable>
xml:
<variable name="TMDbHelperUIDPathVar">
<value condition="Window.IsActive(home)">tmdb_id=$INFO[Window(Home).Property(TMDbUID)])</value>
<value>tmdb_id=$INFO[Container(9143).ListItem.UniqueID(tmdb)])</value>
</variable>

I am not using any visible conditions in the recommendations dialog for any of the containers but I am in DialogVideoInfo for the panel containers populated by TMDb Helper plugin content.

xml:
<control type="panel" id="900010">
<visible allowhiddenfocus="true">Integer.IsGreater(Container(900010).NumItems,0)</visible>
<include content="ExtendedInfoListLayout">
<param name="PanelID">900010</param>
<param name="content">plugin://plugin.video.themoviedb.helper?info=stars_in_movies&amp;type=person&amp;query=$INFO[ListItem.Label]</param>
</include>
</control>

I have commented them out to see if that was the reason DialogVideoInfo closes immediately after opening but it did not seem to have any effect.

Thanks Smile
(2023-10-25, 17:36)mikeSiLVO Wrote: [ -> ]I am not using any visible conditions in the recommendations dialog for any of the containers

@mikeSiLVO

I'm assuming your master github is your current version. If so, definitely visibility conditions there:

https://github.com/MikeSiLVO/Aeon-Nox-Si...ns.xml#L48
https://github.com/MikeSiLVO/Aeon-Nox-Si...s.xml#L147
https://github.com/MikeSiLVO/Aeon-Nox-Si...s.xml#L246

These all need to be removed.

EDIT: Okay with those removed I can see the other issue you're talking about with the videoinfo dialog. Looks like one of your WindowClose animations in MyVideoNav is blocking Kodi from opening window 1110 in time. I've added a wait on latest master version in this commit: https://github.com/jurialmunkey/plugin.v...124aea526f

Can you test latest master of TMDbH and confirm that works for you now? Pretty sure seems to be working for me now when I tested with your skin
(2023-10-28, 02:41)jurialmunkey Wrote: [ -> ]
(2023-10-25, 17:36)mikeSiLVO Wrote: [ -> ]I am not using any visible conditions in the recommendations dialog for any of the containers

@mikeSiLVO

I'm assuming your master github is your current version. If so, definitely visibility conditions there:

https://github.com/MikeSiLVO/Aeon-Nox-Si...ns.xml#L48
https://github.com/MikeSiLVO/Aeon-Nox-Si...s.xml#L147
https://github.com/MikeSiLVO/Aeon-Nox-Si...s.xml#L246

These all need to be removed.

Apologies, I should have said I was working locally with unpushed changes. Those lines are removed and am using the visible condition you mentioned above for the panel labels.
xml:
<control type="label" id="8000">
<left>30</left>
<top>20</top>
<width>1100</width>
<height>60</height>
<font>font35_title_bold</font>
<textcolor>grey</textcolor>
<label>$LOCALIZE[206]</label>
<visible>String.IsEqual(Window.Property(List_5000_Visible),True)</visible>
</control>
No difference unfortunately Sad