Kodi Community Forum

Full Version: script.embuary.info - get TMDb data - the little ExtendedInfo brother
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
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
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
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-h...uage=fr-FR

Image
(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-h...uage=fr-FR

Image

I sent a pull request that solves this problem
(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-h...uage=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/scrip...ources/lib
Then copy "tmdb.py" under "Kodi\addons\script.embuary.info\resources\lib\".

or 

Download full zip here : https://github.com/caperucitaferoz/scrip...lation.zip
Then use Kodi => Settings => Add-ons => install from file ZIP
Thank you so much ! great it works
I've merged the fix and pushed it to the Kodi repo yesterday.

Sorry for the delay and thanks to the submisson @caperucitaferoz
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).
@Gade 
Not sure if I understand u correctly, but just take a look at Embuary

https://github.com/sualfred/skin.embuary...tAired.xml
and
https://github.com/sualfred/skin.embuary...2029-L2091
@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.
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)
Exactly.
Thanks a lot! That's a great idea.

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

Image
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?
The content is filled by the script. No need for a manual action.
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
As I said, filled by the script. Also the control actions are handled by the script.

Example
https://github.com/sualfred/script.embua...#L313-L326
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