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.
@Andrea1998

There is no point to having an EndTime property because it is not a static value.
It would always be wrong because it would be the EndTime based upon whenever the item was cached, not the current end time.
To have the correct value would require constantly recaching/updating the item details every second, which is obviously a bad idea.


If you want to use Kodi's calculated infolabels, use the container method for the service monitor
https://github.com/jurialmunkey/plugin.v...ner-method

Then you can access all normal infolabels and Kodi will update Container(99950).ListItem.EndTime based upon duration.
@jurialmunkey

Thanks for your help.

I noticed that unfortunately both the container method and the classic method cannot coexist together in the same window (it gives me problems in showing both information, sometimes it shows me 1 of one method, sometimes the other) (test window : "DialogVideoInfo.xml").
So I can use only the container method, but unfortunately I believe it does not support date formatting, example: "Container(99950).ListItem.Duration_H" but only "Container(99950).ListItem.Duration", and I believe I cannot with a variable to create the same result as "Container(99950).ListItem.Duration_H".

 I am forced to stay with the classic method, without being able to use the function: "ListItem.EndTime" directly from TMDB_Helper when it is not available: "ListItem.Duration"


I hope there is another method, but I couldn't find it.


Thanks so much for your support.
@Andrea1998

Container(99950).ListItem.Duration(h)

That is the advantage. Container method uses a standard ListItem and so has access to all standard infotag methods.
(2023-11-07, 11:26)jurialmunkey Wrote: [ -> ]
(2023-11-07, 04:02)truthlesshero Wrote: [ -> ]Edit: got it to load! I need to set the list public for it to work here. Private works for the other add-on. As soon as I did, I went back into the settings and put the list again and it seems to be updating on first run. Let's hope that it can update regularly!

Oh you're right. For some reason Trakt is giving a 401 unauthorised on private lists even though it's authorized. Really odd. I wonder if I've missed passing the authorisation token somewhere or if its an error on Trakt's end

EDIT: Yep, I messed up something on a recent update and missed an authorization condition. I was sure I'd had private lists working in the past!
Functionality to use private lists should be restored in v5.1.52 that I just pushed.
no worries! sorry i'm replying so late...i used this workaround but i'll change it back to normal. Glad i wasn't going crazy...thanks for your work man!
(2023-11-18, 01:07)jurialmunkey Wrote: [ -> ]@Andrea1998

Container(99950).ListItem.Duration(h)

That is the advantage. Container method uses a standard ListItem and so has access to all standard infotag methods.
Thanks, I solved it.

However, I am having a problem regarding Kodi's updated TMDb python scraper, (https://kodi.wiki/view/Add-on:The_Movie_Database_Python) is unable to retrieve the duration of individual episodes when they are added to the library.

when I add a TV series, in the episodes in $INFO[ListItem.Duration] you never see how long a single episode lasts.
whereas if I change the scraper to TVDB.com it manages to correctly recover the duration of the episodes.


I don't know if it's just my problem, but I did several tests.
(2023-11-21, 13:08)Andrea1998 Wrote: [ -> ]
(2023-11-18, 01:07)jurialmunkey Wrote: [ -> ]@Andrea1998

Container(99950).ListItem.Duration(h)

That is the advantage. Container method uses a standard ListItem and so has access to all standard infotag methods.
Thanks, I solved it.

However, I am having a problem regarding Kodi's updated TMDb python scraper, (https://kodi.wiki/view/Add-on:The_Movie_Database_Python) is unable to retrieve the duration of individual episodes when they are added to the library.

when I add a TV series, in the episodes in $INFO[ListItem.Duration] you never see how long a single episode lasts.
whereas if I change the scraper to TVDB.com it manages to correctly recover the duration of the episodes.


I don't know if it's just my problem, but I did several tests.

I dont see how that has anything to do with me or TMDbHelper?

Kodi's TMDb library scraper is a completely separate addon made by someone else.
(2023-11-21, 14:35)jurialmunkey Wrote: [ -> ]I dont see how that has anything to do with me or TMDbHelper?

Kodi's TMDb library scraper is a completely separate addon made by someone else.

Nothing, forgive me, it was just to say where the problem started.
For this I needed your tmdb helper add-on, because it didn't correctly retrieve the duration of the episodes from TMDb Tv Shows scraper.
(I recently posted in the correct section)
can i use jellycon (files accessed through addon) for tmdbhelper library integration? or would i have to use jellyfin for kodi (files integrated into kodi)
(2023-11-25, 15:40)reitenth Wrote: [ -> ]can i use jellycon (files accessed through addon) for tmdbhelper library integration? or would i have to use jellyfin for kodi (files integrated into kodi)

There was a JellyCon player that someone made last year. Since I don't use that addon at all, I have no clue if it still works (or how well it works) -- but if it does, then TMDbHelper should work straight out of the box with JellyCon.

I think it might've been based off the EmbyCon one.

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

And there's extensive documentation of the player function here if it needs tweaking
https://github.com/jurialmunkey/plugin.v...r-Function

I'd be interested to know how you go with it! I'm assuming it's working since I haven't had any reports otherwise but it'd be nice to get a definite answer.
i want to be able to look at trakt lists but it only show media that i have locally, is this possible with library integration or am i miss understanding it?
Hi @jurialmunkey, I'm the developer of the DSTV Estuary-Mod Skin. Currently my skin uses a Video-Addon called DStealth-Helper which I wrote myself to provide an "out of the box" experience for people new to the skin to populate movies and tv shows. I recently discovered TheMovieDb Helper addon and it does exactly what I was trying to do but is far more full featured than what DS-Helper's current state. That being said, I'd like to use TheMovieDb Helper as my new "out of the box" video addon for my skin so that Movies and TV Shows can be populated using the TheMovieDb Helper. I just wanted to make sure that's alright with you. Please let me know if that's okay or if you have any issues or concerns with it. Thanks in advance!
@dstealth - Yes, of course! That's why TMDbHelper exists - to help out skinners. Feel free to use however you like!

The v4 version on the official repo is a bit out of date but stable.
The v5 version can be found on my repo but will require users to enable updates for official addons from 3rd party sources to install: https://github.com/jurialmunkey/repository.jurialmunkey

(Mostly) up-to-date documentation can be found in the wiki:
https://github.com/jurialmunkey/plugin.v...elper/wiki

I note where features are v5+ only. The big changes to v5 were the addition of the scripted recommendations dialog and the container method for the service monitor -- but both of these features equivalent "classic" methods which work in both v4/5 the classic service monitor method and the call_auto method of extended info replacement

Otherwise v4 should have most of the same features (though of course there are several small improvements and fixes etc in v5).
(2023-11-27, 01:55)jurialmunkey Wrote: [ -> ]@dstealth - Yes, of course! That's why TMDbHelper exists - to help out skinners. Feel free to use however you like!

The v4 version on the official repo is a bit out of date but stable.
The v5 version can be found on my repo but will require users to enable updates for official addons from 3rd party sources to install: https://github.com/jurialmunkey/repository.jurialmunkey

(Mostly) up-to-date documentation can be found in the wiki:
https://github.com/jurialmunkey/plugin.v...elper/wiki

I note where features are v5+ only. The big changes to v5 were the addition of the scripted recommendations dialog and the container method for the service monitor -- but both of these features equivalent "classic" methods which work in both v4/5 the classic service monitor method and the call_auto method of extended info replacement

Otherwise v4 should have most of the same features (though of course there are several small improvements and fixes etc in v5).
Awesome, thats great thank you! Out of curiosity, is there a way to configure TheMovieDb Helper to pull trailers from IMDB or Youtube automatically? I know Kodi itself will use the YouTube addon to generate trailers but just curious if this can be done directly through TMDB Helper
@dstealth - Yep, the "videos" path with get you a list of trailers for a movie/show
https://github.com/jurialmunkey/plugin.v...ted#videos

It takes all the standard lookup params if you don't have the tmdb_id
https://github.com/jurialmunkey/plugin.v...parameters

Also if you use the service monitor you can get the trailer for the current item from the detailed item lookup
https://github.com/jurialmunkey/plugin.v...ce-Monitor
Hi, since yesterday I have a lot of crashes when trying to start a movie on right clicking the poster in the widget an trying to choose a player. It sometimes dont opens the player list at all, sometimes tries to open then crashes and sometimes works as excpected. I have to add that I use skin Arctic Horizon Reloaded and could not test yet if its Skin related. But maybe other user experience same issue since yesterdays update?