Kodi Community Forum
Release script.embuary.info - get TMDb data - the little ExtendedInfo brother - 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)
+---- Forum: Skin helper addons (https://forum.kodi.tv/forumdisplay.php?fid=300)
+---- Thread: Release script.embuary.info - get TMDb data - the little ExtendedInfo brother (/showthread.php?tid=346034)

Pages: 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25


RE: script.embuary.info - get TMDb data - the little ExtendedInfo brother - thomakira - 2021-04-08

Hello, I use Kodi for Android TV with the Embuary Info extension which is set in French language. But when I update my library, the titles of the series episodes are in English. How is it done ?

Sorry if the question has already been asked

Thanks for your help


RE: script.embuary.info - get TMDb data - the little ExtendedInfo brother - Nanomani - 2021-04-13

With Embuary info, all the information is return with my default language "French". But the "Plot" only is always in "english" for all movies. I don't know why ?
This seems specific with all language with more than 2 characters like : ar-AE|ar-SA|es-ES|es-MX|fr-CA|fr-FR|pt-BR|pt-PT|zh-CN|zh-TW
Tested with : it, de, all works well.

My default language 

Image

With Embuary info "Plot" only is in english

Image

The same movie from site TMDB, the plot is in french :

Image

Result from the API command line, the plot is in french : https://api.themoviedb.org/3/movie/949-heat?api_key=bf21d650fe1ef66daa0d21ef19b48e88&language=fr-FR

Image


RE: script.embuary.info - get TMDb data - the little ExtendedInfo brother - caperucitaferoz - 2021-04-13

(2021-04-13, 17:38)ellega Wrote: With Embuary info, all the information is return with my default language "French". But the "Plot" only is always in "english" for all movies. I don't know why ?
This seems specific with all language with more than 2 characters like : ar-AE|ar-SA|es-ES|es-MX|fr-CA|fr-FR|pt-BR|pt-PT|zh-CN|zh-TW
Tested with : it, de, all works well.

My default language 

Image

With Embuary info "Plot" only is in english

Image

The same movie from site TMDB, the plot is in french :

Image

Result from the API command line, the plot is in french : https://api.themoviedb.org/3/movie/949-heat?api_key=bf21d650fe1ef66daa0d21ef19b48e88&language=fr-FR

Image

I sent a pull request that solves this problem


RE: script.embuary.info - get TMDb data - the little ExtendedInfo brother - Nanomani - 2021-04-13

(2021-04-13, 22:01)caperucitaferoz Wrote:
(2021-04-13, 17:38)ellega Wrote: With Embuary info, all the information is return with my default language "French". But the "Plot" only is always in "english" for all movies. I don't know why ?
This seems specific with all language with more than 2 characters like : ar-AE|ar-SA|es-ES|es-MX|fr-CA|fr-FR|pt-BR|pt-PT|zh-CN|zh-TW
Tested with : it, de, all works well.

My default language 

Image

With Embuary info "Plot" only is in english

Image

The same movie from site TMDB, the plot is in french :

Image

Result from the API command line, the plot is in french : https://api.themoviedb.org/3/movie/949-heat?api_key=bf21d650fe1ef66daa0d21ef19b48e88&language=fr-FR

Image

I sent a pull request that solves this problem

I have seen your PR before your answer here Smile . Thanks again

PS :

For users who want fix this issue : 

you can download the file fixed "tmdb.py" here : https://github.com/caperucitaferoz/script.embuary.info/tree/fix_tmdb_get_translation/resources/lib
Then copy "tmdb.py" under "Kodi\addons\script.embuary.info\resources\lib\".

or 

Download full zip here : https://github.com/caperucitaferoz/script.embuary.info/archive/refs/heads/fix_tmdb_get_translation.zip
Then use Kodi => Settings => Add-ons => install from file ZIP


RE: script.embuary.info - get TMDb data - the little ExtendedInfo brother - thomakira - 2021-04-15

Thank you so much ! great it works


RE: script.embuary.info - get TMDb data - the little ExtendedInfo brother - sualfred - 2021-04-15

I've merged the fix and pushed it to the Kodi repo yesterday.

Sorry for the delay and thanks to the submisson @caperucitaferoz


RE: script.embuary.info - get TMDb data - the little ExtendedInfo brother - Gade - 2021-06-06

Hi @sualfred

Thanks so much for this great script.
I'm trying to create a 7-day calendar using the nextaired widgets.

Can you think of a way to show dates for all 7 days?
The widgets are hidden when no content is available (= no date available).


RE: script.embuary.info - get TMDb data - the little ExtendedInfo brother - sualfred - 2021-06-07

@Gade 
Not sure if I understand u correctly, but just take a look at Embuary

https://github.com/sualfred/skin.embuary/blob/matrix/xml/Custom_1132_NextAired.xml
and
https://github.com/sualfred/skin.embuary/blob/matrix/xml/Embuary_Variables.xml#L2029-L2091


RE: script.embuary.info - get TMDb data - the little ExtendedInfo brother - Gade - 2021-06-07

@sualfred
Thanks, exactly. I already looked at that.

I'm doing a visible calendar for all seven weekdays, even the ones without shows:

Image

I could create a variable to show the empty days, but the dates are more tricky.


RE: script.embuary.info - get TMDb data - the little ExtendedInfo brother - sualfred - 2021-06-07

Ah, you need dates in general. 

What about using a hidden container of the parent node of the script and use the item labels for it? (plugin://script.embuary.info/nextaired)


RE: script.embuary.info - get TMDb data - the little ExtendedInfo brother - Gade - 2021-06-07

Exactly.
Thanks a lot! That's a great idea.

It worked using a lot of variables (and looks better with the dates):

Image


RE: script.embuary.info - get TMDb data - the little ExtendedInfo brother - pfp-az - 2021-07-18

I've no doubt that is is an extremely noob question but I have not been able to figure it out and need to ask...

I've run the following script and have ben able to access all the information in ControlID (10051)
xml:

<onclick>RunScript(script.embuary.info,call=person,query='"$INFO[Window(movieinformation).Property(ActorName)]"')</onclick>


I need to place data in ControlID 10052, 20053 and 10054 on a panel but don't know how to set the Content.  How can I set the content so that panel will fill out the data?


RE: script.embuary.info - get TMDb data - the little ExtendedInfo brother - sualfred - 2021-07-18

The content is filled by the script. No need for a manual action.


RE: script.embuary.info - get TMDb data - the little ExtendedInfo brother - pfp-az - 2021-07-19

I did not do a good job of explaining my issue and while I came across it working with Embuary Info it was really unrelated and much more basic.

I was trying to understand this section of code for PanelD 10052 and could follow it fine except for the "missing" <content>.  I could not figure out how this panel was getting the data.  I still don't know for sure but after far too long tying to figure it out I finally figured realized it must be due to the ID (10052) assigned to the panel.

Image


RE: script.embuary.info - get TMDb data - the little ExtendedInfo brother - sualfred - 2021-07-19

As I said, filled by the script. Also the control actions are handled by the script.

Example
https://github.com/sualfred/script.embuary.info/blob/matrix/resources/lib/main.py#L313-L326