• 1
  • 86
  • 87
  • 88(current)
  • 89
  • 90
Release plugin.video.themoviedb.helper - Access to TheMovieDb API for Skinners
(2024-12-03, 19:13)kittmaster Wrote: How do I use the "external_ids"? I don't see it documented and not entirely sure how to implement it in the includes_infodialogs.xml as a item.

I see the tag in in the .py files for use, but the Github doesn't speak of it or how to implement the call. I did a call on TMDB direct so I know how it works. From my actors page, I am trying to pull an actors "facebook" or socials which are listed and returned.

It's not documented because it's not a feature of TMDbHelper. I only call external_ids endpoint to get the IMDb ID number.

I didn't see much point mapping the other values to listitem properties since there's not really any simple way to open those links in Kodi
Arctic Fuse 2 - Alpha now available. Support me on Ko-fi.
Reply
(2024-11-25, 19:16)htpc-mac Wrote: Not sure if this is the right place to ask.
I have a personal addon (pre-release) that I am working on that is using plugin.video.themoviedb.helper to pull up metadata and artwork. Without explicitly telling it to pull specific artwork it pulls down fanart and clearlogo but no other artwork. 
I am pretty novice in python so I've bee racking my brain on why some art is shown. I tried all methods of setArt() even thought that was not necessary for the other artwork.
Well today I noticed something strange might be the reason why I am not seeing the artwork.

If I context click a tv show in my addon and goto TMDb Helper Options -> Manage Artwork -> Select Artwork. It shows all the artwork correctly.
If I context click a tv show in my addon and select Information all the art is missing. In fact, if I go to Information -> Select Art it is filled with a lot of 'artwork' that is blank. I am seeing things like, but not limited to: bootloadercomposite1, downloadmanagercomposite1, loadingcomposite1, … all the way down to 1, 1a, 1b. 1c -- 4, 4a, 4c.

I am using the commands here: https://github.com/jurialmunkey/plugin.v...ailed-Item

Sorry I'm not really following what you're trying to do here. TMDbHelper doesn't add artwork to another plugin. You can use the detailed item path to pull up details from TMDbHelper about a specific query but it isn't going to modify the details found in your own plugin in any way.
Arctic Fuse 2 - Alpha now available. Support me on Ko-fi.
Reply
(2024-12-04, 01:03)jurialmunkey Wrote:
(2024-12-03, 19:13)kittmaster Wrote: How do I use the "external_ids"? I don't see it documented and not entirely sure how to implement it in the includes_infodialogs.xml as a item.

I see the tag in in the .py files for use, but the Github doesn't speak of it or how to implement the call. I did a call on TMDB direct so I know how it works. From my actors page, I am trying to pull an actors "facebook" or socials which are listed and returned.

It's not documented because it's not a feature of TMDbHelper. I only call external_ids endpoint to get the IMDb ID number.

I didn't see much point mapping the other values to listitem properties since there's not really any simple way to open those links in Kodi

My thought was to have it pull all of the array labels into a hidden list and then just be able to call them out as needed.... or is that a wrong way of thinking how to do something like that?

If you build that string and it returns all the values with labels like "facebook_id" and the like, isn't that just a hidden list pull the data in thing? It is not like one would "navigate' or try to go to that link where that data is being pulled from.

Maybe I'm just unclear what that aspect does..as I thought custom queries could be created and then pull in the return values? 

If it's not possible so be it, but that is how I thought it might work.
Kodi: Nexus v20.5 | Skin Dev: Madnox Omega/Nexus: v20.01.02 | Madnox ForumRoot | Madnox Repov1.0.09 | Mr. V'sSource | Kodi Texture Tool (Takeover): v3.0.1 | Batch Texture Resize (Irfanview): Tutorial
Working On
: Replacing Embuary >> TMDB Helper || Start: 6/3/2024 End: God knows || Status Complete: Movies: 10% TV Shows: 0% Music: 0%
Reply
(2024-12-04, 02:58)kittmaster Wrote:
(2024-12-04, 01:03)jurialmunkey Wrote:
(2024-12-03, 19:13)kittmaster Wrote: How do I use the "external_ids"? I don't see it documented and not entirely sure how to implement it in the includes_infodialogs.xml as a item.

I see the tag in in the .py files for use, but the Github doesn't speak of it or how to implement the call. I did a call on TMDB direct so I know how it works. From my actors page, I am trying to pull an actors "facebook" or socials which are listed and returned.

It's not documented because it's not a feature of TMDbHelper. I only call external_ids endpoint to get the IMDb ID number.

I didn't see much point mapping the other values to listitem properties since there's not really any simple way to open those links in Kodi

My thought was to have it pull all of the array labels into a hidden list and then just be able to call them out as needed.... or is that a wrong way of thinking how to do something like that?

If you build that string and it returns all the values with labels like "facebook_id" and the like, isn't that just a hidden list pull the data in thing? It is not like one would "navigate' or try to go to that link where that data is being pulled from.

Maybe I'm just unclear what that aspect does..as I thought custom queries could be created and then pull in the return values? 

If it's not possible so be it, but that is how I thought it might work.

No you can't create custom API queries from a skin. Any results from the API need to be mapped to appropriate ListItem infolabels in the plugin code (and in many cases it isn't a one-for-one mapping -- the data returned often needs some form of conversion or other wrangling to be suitable for use as properties in Kodi).

I can add these properties to the detailed item mapping fairly easily. The only reason I haven't is because I thought it'd be fairly useless information inside Kodi and so why waste the cycles/memory in attaching it to the ListItem if no one is going to use it (not that it is a significant performance cost or anything but I very literally thought that no one would ever want to use that info).
Arctic Fuse 2 - Alpha now available. Support me on Ko-fi.
Reply
(2024-12-05, 01:58)jurialmunkey Wrote:
(2024-12-04, 02:58)kittmaster Wrote:
(2024-12-04, 01:03)jurialmunkey Wrote: It's not documented because it's not a feature of TMDbHelper. I only call external_ids endpoint to get the IMDb ID number.

I didn't see much point mapping the other values to listitem properties since there's not really any simple way to open those links in Kodi

My thought was to have it pull all of the array labels into a hidden list and then just be able to call them out as needed.... or is that a wrong way of thinking how to do something like that?

If you build that string and it returns all the values with labels like "facebook_id" and the like, isn't that just a hidden list pull the data in thing? It is not like one would "navigate' or try to go to that link where that data is being pulled from.

Maybe I'm just unclear what that aspect does..as I thought custom queries could be created and then pull in the return values? 

If it's not possible so be it, but that is how I thought it might work.

No you can't create custom API queries from a skin. Any results from the API need to be mapped to appropriate ListItem infolabels in the plugin code (and in many cases it isn't a one-for-one mapping -- the data returned often needs some form of conversion or other wrangling to be suitable for use as properties in Kodi).

I can add these properties to the detailed item mapping fairly easily. The only reason I haven't is because I thought it'd be fairly useless information inside Kodi and so why waste the cycles/memory in attaching it to the ListItem if no one is going to use it (not that it is a significant performance cost or anything but I very literally thought that no one would ever want to use that info).

Ah I see, well I am using it for the "person" data (and plan to expand the other areas) which is sparse now that I'm using the TMDB Helper vs. the embruary person and adding the additional details would be very helpful as I would probably be the first to use it from what you mention. I plan to expand a bunch of different areas and these additions would be extremely helpful to me.

Can I request that it and others in that mindset be added?
Kodi: Nexus v20.5 | Skin Dev: Madnox Omega/Nexus: v20.01.02 | Madnox ForumRoot | Madnox Repov1.0.09 | Mr. V'sSource | Kodi Texture Tool (Takeover): v3.0.1 | Batch Texture Resize (Irfanview): Tutorial
Working On
: Replacing Embuary >> TMDB Helper || Start: 6/3/2024 End: God knows || Status Complete: Movies: 10% TV Shows: 0% Music: 0%
Reply
Follow up -- This commit will take all the ID values that the API returns and add them to the detailed item: https://github.com/jurialmunkey/plugin.v...99f1520dc4
I'll push an update to my repo a bit later today.

Will need to either delete ItemBuilder cache or refresh individual item details for previously cached items.

info=details (and, by extension, the info dialog ListItem in the extended info replacement method) will now have ListItem.UniqueID(instagram) and ListItem.Property(instagram_id) etc. for all the ID types returned not just tvdb/imdb/tmdb
Arctic Fuse 2 - Alpha now available. Support me on Ko-fi.
Reply
(2024-12-05, 02:21)jurialmunkey Wrote: Follow up -- This commit will take all the ID values that the API returns and add them to the detailed item: https://github.com/jurialmunkey/plugin.v...99f1520dc4
I'll push an update to my repo a bit later today.

Will need to either delete ItemBuilder cache or refresh individual item details for previously cached items.

info=details (and, by extension, the info dialog ListItem in the extended info replacement method) will now have ListItem.UniqueID(instagram) and ListItem.Property(instagram_id) etc. for all the ID types returned not just tvdb/imdb/tmdb

Damn that was quick.. LOL. I'll give it a go... thank you much.
Kodi: Nexus v20.5 | Skin Dev: Madnox Omega/Nexus: v20.01.02 | Madnox ForumRoot | Madnox Repov1.0.09 | Mr. V'sSource | Kodi Texture Tool (Takeover): v3.0.1 | Batch Texture Resize (Irfanview): Tutorial
Working On
: Replacing Embuary >> TMDB Helper || Start: 6/3/2024 End: God knows || Status Complete: Movies: 10% TV Shows: 0% Music: 0%
Reply
Does this look right?

xml:


            <!-- Define the hidden list -->
            <control type="list" id="12000">
                <!-- <content>plugin://plugin.video.themoviedb.helper?info=collection&tmdb_id=$INFO[Window(Home).Property(MovieInfoPath)]</content> -->
                <content>plugin://plugin.video.themoviedb.helper/?info=details&type=person&tmdb_id=$INFO[Container(12000).ListItem.Property(tmdb_id)]</content>
            </control>
            <control type="image">
                <visible>String.IsEqual(ListItem.Property(item.type),person)</visible>
                <top>3</top>
                <width>30</width>
                <aspectratio>keep</aspectratio>
                <texture>$VAR[IconPathVar]facebook.png</texture>
            </control>
            <control type="label" id="6301">
                <width>auto</width>
                <font>Font30_Reg</font>
                <textcolor>$VAR[PanelTextColorVar]</textcolor>
                <!-- <label>$VAR[ViewInfoSocials]</label> -->
                <label>$INFO[Container(12000).ListItem.Property(facebook_id)]</label>              
            </control>



Image
Kodi: Nexus v20.5 | Skin Dev: Madnox Omega/Nexus: v20.01.02 | Madnox ForumRoot | Madnox Repov1.0.09 | Mr. V'sSource | Kodi Texture Tool (Takeover): v3.0.1 | Batch Texture Resize (Irfanview): Tutorial
Working On
: Replacing Embuary >> TMDB Helper || Start: 6/3/2024 End: God knows || Status Complete: Movies: 10% TV Shows: 0% Music: 0%
Reply
(2024-12-05, 03:01)kittmaster Wrote: Does this look right?

xml:


            <!-- Define the hidden list -->
            <control type="list" id="12000">
                <!-- <content>plugin://plugin.video.themoviedb.helper?info=collection&tmdb_id=$INFO[Window(Home).Property(MovieInfoPath)]</content> -->
                <content>plugin://plugin.video.themoviedb.helper/?info=details&type=person&tmdb_id=$INFO[Container(12000).ListItem.Property(tmdb_id)]</content>
            </control>

No, because your hidden list is referencing itself to get its own ID...
Arctic Fuse 2 - Alpha now available. Support me on Ko-fi.
Reply
(2024-12-05, 03:29)jurialmunkey Wrote:
(2024-12-05, 03:01)kittmaster Wrote: Does this look right?

xml:


            <!-- Define the hidden list -->
            <control type="list" id="12000">
                <!-- <content>plugin://plugin.video.themoviedb.helper?info=collection&tmdb_id=$INFO[Window(Home).Property(MovieInfoPath)]</content> -->
                <content>plugin://plugin.video.themoviedb.helper/?info=details&type=person&tmdb_id=$INFO[Container(12000).ListItem.Property(tmdb_id)]</content>
            </control>

No, because your hidden list is referencing itself to get its own ID...

I knew I jacked it up.... had this... but was still null:

Damn I think I see my error...let me mod and I'll see if I can fix it

xml:

            <!-- Define the hidden list -->
            <control type="list" id="11051">
                <!-- <content>plugin://plugin.video.themoviedb.helper?info=collection&tmdb_id=$INFO[Window(Home).Property(MovieInfoPath)]</content> -->
                <content>plugin://plugin.video.themoviedb.helper/?info=details&type=person&tmdb_id=$INFO[Container(12000).ListItem.Property(tmdb_id)]</content>
            </control>
            <control type="image">
                <visible>String.IsEqual(ListItem.Property(item.type),person)</visible>
                <top>3</top>
                <width>30</width>
                <aspectratio>keep</aspectratio>
                <texture>$VAR[IconPathVar]facebook.png</texture>
            </control>
            <control type="label" id="6301">
                <width>auto</width>
                <font>Font30_Reg</font>
                <textcolor>$VAR[PanelTextColorVar]</textcolor>
                <!-- <label>$VAR[ViewInfoSocials]</label> -->
                <label>$INFO[Container(12000).ListItem.Property(facebook_id)]</label>              
            </control>

Kodi: Nexus v20.5 | Skin Dev: Madnox Omega/Nexus: v20.01.02 | Madnox ForumRoot | Madnox Repov1.0.09 | Mr. V'sSource | Kodi Texture Tool (Takeover): v3.0.1 | Batch Texture Resize (Irfanview): Tutorial
Working On
: Replacing Embuary >> TMDB Helper || Start: 6/3/2024 End: God knows || Status Complete: Movies: 10% TV Shows: 0% Music: 0%
Reply
Tried this and still not showing... I must be trippin':

xml:


            <!-- Define the hidden list -->
            <control type="list" id="11051">
                <!-- <content>plugin://plugin.video.themoviedb.helper?info=collection&tmdb_id=$INFO[Window(Home).Property(MovieInfoPath)]</content> -->
                <content>plugin://plugin.video.themoviedb.helper/?info=details&type=person&tmdb_id=$INFO[Container(11051).ListItem.Property(tmdb_id)]</content>
            </control>
            <control type="image">
                <visible>String.IsEqual(ListItem.Property(item.type),person)</visible>
                <top>3</top>
                <width>30</width>
                <aspectratio>keep</aspectratio>
                <texture>$VAR[IconPathVar]facebook.png</texture>
            </control>
            <control type="label" id="6301">
                <width>auto</width>
                <font>Font30_Reg</font>
                <textcolor>$VAR[PanelTextColorVar]</textcolor>
                <!-- <label>$VAR[ViewInfoSocials]</label> -->
                <label>$INFO[Container(11051).ListItem.Property(facebook_id)]</label>              
            </control>


ImageImage
Kodi: Nexus v20.5 | Skin Dev: Madnox Omega/Nexus: v20.01.02 | Madnox ForumRoot | Madnox Repov1.0.09 | Mr. V'sSource | Kodi Texture Tool (Takeover): v3.0.1 | Batch Texture Resize (Irfanview): Tutorial
Working On
: Replacing Embuary >> TMDB Helper || Start: 6/3/2024 End: God knows || Status Complete: Movies: 10% TV Shows: 0% Music: 0%
Reply
@jurialmunkey I did ask on Slack but I guess you've not been around to see it.

Will you be updating TMDb Helper on the Kodi repo anytime soon?
I have a problem with the Next Aired Library on my main setup using v5.2.25 that seems fixed on my PC using v5.4.15
Thanks.
Reply
(2024-12-05, 03:41)kittmaster Wrote: Tried this and still not showing... I must be trippin':

xml:


            <!-- Define the hidden list -->
            <control type="list" id="11051">
                <!-- <content>plugin://plugin.video.themoviedb.helper?info=collection&tmdb_id=$INFO[Window(Home).Property(MovieInfoPath)]</content> -->
                <content>plugin://plugin.video.themoviedb.helper/?info=details&type=person&tmdb_id=$INFO[Container(11051).ListItem.Property(tmdb_id)]</content>
            </control>

Exactly the same problem as before. You've got a recursive loop here where you are asking to get the TMDb ID from the same list that you want to use that TMDb ID to load the list.

That $INFO[Container(11051).ListItem.Property(tmdb_id)] will be empty because the list will be empty. So you're asking list id="11051" to load nothing.

You've basically asking a chicken to lay the egg that that chicken will hatch from to lay that egg.
Arctic Fuse 2 - Alpha now available. Support me on Ko-fi.
Reply
(2024-12-05, 10:09)Hitcher Wrote: @jurialmunkey I did ask on Slack but I guess you've not been around to see it.

Will you be updating TMDb Helper on the Kodi repo anytime soon?
I have a problem with the Next Aired Library on my main setup using v5.2.25 that seems fixed on my PC using v5.4.15
Thanks.

Yeah, should be submitting a PR over this weekend hopefully. Were a few changes to the service monitor functions and changes to caching in 5.4.15 in the module dependency that I wanted to leave a few days for testing in case of unexpected/inadvertent new bugs cropping up -- but so far seems fine.
Arctic Fuse 2 - Alpha now available. Support me on Ko-fi.
Reply
(2024-12-06, 01:25)jurialmunkey Wrote: Yeah, should be submitting a PR over this weekend hopefully. Were a few changes to the service monitor functions and changes to caching in 5.4.15 in the module dependency that I wanted to leave a few days for testing in case of unexpected/inadvertent new bugs cropping up -- but so far seems fine.
Thanks.
Reply
  • 1
  • 86
  • 87
  • 88(current)
  • 89
  • 90

Logout Mark Read Team Forum Stats Members Help
plugin.video.themoviedb.helper - Access to TheMovieDb API for Skinners2