Hola SeiTaN, muchas gracias por la respuesta!
If you don't mind I would prefer to write in english too...
Your explaination is really clear, thansk a lot. I have still one question for clarification: looking at the file .nfo and .json of an episode (e.g. 1x01.nfo and 1x01 [
site_name].json), the content of the two files seems quite similar to me except that:
- .nfo has the attributes "channel": "
biblioteca" and "strm_path": "
\\series_name [IMDb_id]\\1x01.strm"
- .json has the attributes "channel": "
site_name" and "url": "
http://blablablabla"
while all the other information are the same. So, which is the rational of using the two .nfo and .json files instead of a single one? I'm just trying to understand...yes, I usually like the technical stuffs!
More in general, I personally think that adopting a single .nfo using the format of Kodi (with the additional fields required by pelisalacarta) would be really a good step forward for the integration of the addon within Kodi itself. I hope that you can take this into account for the next versions.
Going back to the integration of the pelisalacarta into Kodi library, I have "played" a little on that with the following result and I hope this could be useful for other users. For example, my folder structure for the TV Series has been the following:
Serie TV
so that the folder "Serie TV" is included in the Kodi library. The first step to "include" the pelisalacarta library is to rename all the folders in the same way as pelisalacarta refers to such as:
Serie TV
- ...
westworld [tt0475784]
...
As a second step, it is necessary to change the path of the SERIE inside pelisalacarta settings to point at the folder in which the tv series are located (i.e. "Serie TV" in this example).
Inside the folder of a specific series (e.g.
westworld [tt0475784]), I have then copied all the .strm and related .json files from the pelisalacarta library (
not the .nfo files); posters.jpg, fanarts.jpg, banners.jpg, .actors directory and episodes and serie .nfo are the standard ones used by Kodi.
In other words, the .nfo files does not contain any information related to pelisalacarta and are just the files that Kodi or an external informariton manager (Ember Media Manager) create. Note that you can also rename the .strm file with the title of the episode without issues; for example, for the last episode of Westworld I will have:
The Bicameral Mind.strm
The Bicameral Mind.nfo
The Bicameral Mind-thumb.jpg
1x10 [
site_name].json
Tha is almost all. Whit this approach is possible to integrate the pelisalacarta library (or better, just the .strm and .json files) inside the Kodi library and have it managed as any other (local) series. The only "drawback" of this approach is that when an episode is selected to be played (figure 1 below), a sub-page of pelisalacarta is opened proposing the availbale streams...unfortunately this page shows the information of the pelisalacarta library and not the Kodi one so that thumbnails, plots and titles will usually differ (see figure 2 below):
To avoid this, would it be possible to open a simple pop-up window instead of that page to propose the different streams?
What it is interesting is that if I select an episode to be played from the recently added episodes widget in the Home screen, a pop-up windows is proposed instead of opening pelisalacarta (see figures below):
Would it be possible to have the same behaviour when an episode is selected as well as from the library?
I hope I haven't make you bored

Personally I find always useful and interesting to exchange idea and learn new things. This addon is able to make the Kodi experience just amazing and I would never stop to thank you guys for the effort you are putting in it.
I'm looking forwards for your feedback. Thanks in advance, Alex.