Página 1 de 2

Biblioteca

Publicado: 01 Mar 2017, 09:48
por axlt2002
Hola a todos! Me disculpo por mi español, pero haré mi mejor! ;)

Escribo para intiender por qué la biblioteca pelisalacarta utiliza los file .json para memorizar les información de las películas y la serie. Es posible utilizar un file .nfo para integrar sin problemas lad biblioteca de pelisalacarta dentro de la biblioteca Kodi?

De hecho, vi que también crea pelisalacarta los file .nfo, pero con un formato diferente de la de Kodi.

Además de la integración en la biblioteca Kodi, sería aún mejor que ser capaz de cambiar libremente la información de la película y establecer a través de un pesebre externa como Ember Media Manager.

Gracias por su trabajo.

Re: Biblioteca

Publicado: 01 Mar 2017, 11:23
por SeiTaN
Hola axlt2002,

So you are not spanish I'm going to try to speak in English :)

Pelisalacarta 4.2.0 (future version) uses several files in its own library.

TVSHOWS

tvshow.nfo <-- it splits in two parts, first line, its a url that Kodi can scans to get info from its scraper, the second is to use it in pelisalacarta.
1x01.strm <-- file that we use to launch from kodi to the addon.
1x01.json <-- episode info used to manage it in pelisalacarta.
1x01.nfo <-- it's look alike tvshow.nfo, it splits in two parts.

So pelisalacarta uses all that files but with json structure, and kodi only use strm and nfo files (first line).
Es posible utilizar un file .nfo para integrar sin problemas lad biblioteca de pelisalacarta dentro de la biblioteca Kodi?
No, you can't as I explain before, actually it won't work.
Además de la integración en la biblioteca Kodi, sería aún mejor que ser capaz de cambiar libremente la información de la película y establecer a través de un pesebre externa como Ember Media Manager.
We didn't think about that when we coded it, maybe in the future but we will need to convert the previous tvshow/movies to the new format.


You can try this at your own risk, I hope it works... First backup ;)

Create a nfo file from a tool, from the content you get, erase all \t\n\r, and turn it in 1 line.

Código: Seleccionar todo

<tvshow>
   <title>flash</title>
</tvshow>
To

Código: Seleccionar todo

<tvshow><title>flash</title></tvshow>
If you get the nfo from the tvshow, replace the first line from tvshow.nfo file.

If its info from episode, replace the first line from 1x01.nfo file, when 1 its season number, and 01 its the episode number.

About movies it should be the same but use the name_movie.nfo file.

Regards.

Re: Biblioteca

Publicado: 01 Mar 2017, 16:00
por axlt2002
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
  • ...
    Westworld (2016)
    ...
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):

Imagen

Imagen

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):

Imagen

Imagen

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.

Re: Biblioteca

Publicado: 01 Mar 2017, 17:39
por SeiTaN
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! ;)
I didn't code that part so I don't know the specific reasons. But I know the behaviour of the library.

I think it should be better split in two parts, the nfo, strm files for Kodi purpose only and the json files for the own pelisalacarta library. But we should discuss and get an agreement about this.
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.
the 1x01 [site].json loads the data needed to play the file, I don't think you know but this library version is multi-site, you can add a tvshow from many channels, when you try to play from Kodi or pelisalacarta's library its display the list of links from the sites added.

This is great if any channel is down and you follow a serie from than channel.

So as you can understand we can't reduce it to one file, just split by funcionality as I said before (strm, nfo y json).
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
You need the file tvshow.nfo inside the folder (remember the contains I told you in the line 1), and rename episodes "nfo" files like the strm ones.

1x01.strm
Pilot.nfo --> 1x01.nfo

I should need all the list file inside the tvshow folder.
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):

Would it be possible to have the same behaviour when an episode is selected as well as from the library?
Ok, I get it you don't link the way the list it display, in this version you can change that, to display as pop-up.

In pelisalacarta library settings you can change it

<settings>
<id>window_type</id>
<type>list</type>
<label>Mostrar los enlaces en</label> <-- show list in...
<default>0</default>
<enabled>true</enabled>
<visible>true</visible>
<lvalues>Ventana convencional</lvalues> <-- traditional window [default] (as you said from the addon)
<lvalues>Ventana emergente</lvalues> <-- pop-up window (the option that you want)
</settings>

I hope that I answered you question, if not can we have short questions? then we keep larger them :lol:

Re: Biblioteca

Publicado: 02 Mar 2017, 11:26
por axlt2002
Buenos dia SeiTaN,

Thanks again for your answer and sorry if I was too long in my post! ;)

I have actually tried the feature of multi-site to add a tvshow from many channels and I have been just astonished! Is just amazing and I was looking at it since a long time! Thanks for that!

I have followed your suggestion to open a pop-up window instead of the page, but, at least for me, it doesn't work at all...I report below the screenshots of my try.

Library settings:
Imagen

Selection of the episode:
Imagen

Stream selection page instead of the pop-up window:
Imagen

Can you make a try too please? I really don't know why this setting seems to not have any effect...

Looking forward for the next interaction ;)

Re: Biblioteca

Publicado: 02 Mar 2017, 12:03
por SeiTaN
Here is the try.

Imagen

When I set the option and tried it, Kodi crashed, but after that it works.

Re: Biblioteca

Publicado: 02 Mar 2017, 12:49
por axlt2002
I'm astonished...for me it doesn't work even if it seems that the settings are correctly saved...

Do you have any indication on how I coul try to address this issue? It there any other setting (inside pelisalacarta and/or Kodi) that may prevent the pop-up to came out?

I have also tried with Confluence skin without success...

Puzzled...

Re: Biblioteca

Publicado: 02 Mar 2017, 13:26
por SeiTaN
axlt2002 you should post log.

In the other hand if you have the same code as me (actual develop branch from GitHub), you can try to replace my biblioteca_data.json file for yours.

Código: Seleccionar todo

{
    "settings": {
        "ask_channel": false, 
        "clean_after_update": false, 
        "everyday_delay": 0, 
        "library_mode": 0, 
        "mark_as_watched": true, 
        "max_links": 0, 
        "no_pile_on_seasons": 1, 
        "original_title_folder": 0, 
        "quit_channel_name": false, 
        "replace_VD": false, 
        "scraper_movies": 0, 
        "scraper_tvshows": 1, 
        "search_new_content": 0, 
        "show_all_seasons": true, 
        "sync_trakt_new_tvshow": false, 
        "sync_trakt_new_tvshow_wait": true, 
        "sync_trakt_notification": true, 
        "sync_trakt_watched": false, 
        "tvdb_retry_eng": true, 
        "updatelibrary": 1, 
        "updatelibrary_last_check": "2017-03-02", 
        "updatelibrary_wait": 0, 
        "updatetvshows_interval": 0, 
        "watched_setting": 3, 
        "white_list_order": false, 
        "window_type": 1, 
        "xbmc_host": "", 
        "xbmc_puerto": ""
    }
}
Take care about format when you replace it, json one is needed.

Re: Biblioteca

Publicado: 02 Mar 2017, 14:31
por axlt2002
Hola!

I'm actually using the pelisalacarta version downloaded from this post:
Intel1 escribió:Hola Bic, este hilo creo que está mejor para seguir tu migración a un "mundo mejor" :lol:

pelisalacarta 4.2 Beta 3 (descargado de github) con las actualizaciones a día 27/02/2017

PRECUACION: COMO VERSION BETA ESTO PUEDE TENER FALLAS. DESCARGARLO BAJO SU RESPONSABILIDAD

https://www.sendspace.com/file/7yvvve
Actualizado (27/02/2017)

Con los últimos cambios en el github
The version of Kodi I Am running is the latest nightly build of Kodi 17.1 RC2 using the Estuary skin.

Please find the log at the following link http://pastebin.com/F4DfAN2D. I have activated both pelisalacarta and Kodi logs.

Question: did you select the episode under the pelisalacarta library or the Kodi library?

If you need further information, just let me know. ;)

Re: Biblioteca

Publicado: 02 Mar 2017, 16:47
por SeiTaN
axlt2002 escribió:Question: did you select the episode under the pelisalacarta library or the Kodi library?
Kodi library