Kodi Community Forum

Full Version: skin helper service
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
(2017-09-09, 22:58)heula Wrote: [ -> ]Where is the artwork downloaded from for the pvr recordings widget ?
The widget for pvr recordings does not show images for all recordings. Some do but most of my Dutch recordings show a black thumb.
Can I add the needed images somewhere myself when there is no artwork found?
I can remember this used to be in previous versions but I can't find th artwork folder for pvr anymore.

Open the add-on settings for the Skin helper metadata module, there you can set where the artwork is grabbed from and how to manually override it.
Also note that once the feature is enabled, you will have a contextmenu option within your skin to set the artwork manually.
(2017-09-10, 18:34)Guilouz Wrote: [ -> ]I have also found mistake in wiki : plugin://script.skin.helper.widgets/?action=browsegenres&mediatype=movie&limit=1000 not working
It's only working with plugin://script.skin.helper.widgets/?action=browsegenres&mediatype=movies&limit=1000

Same for tvshow

Request : Is it possible to have the same for genres artists ?

You can correct the wiki yourself, it's opensource ;-)
I think the mediatype should be randommovies too, same typo.

Yes, I can add the same for artists, no problem. First let me know if the movies and tvshows are now working (confirm that is was a wiki typo and the feature itself is working)
(2017-09-13, 00:09)djhifi Wrote: [ -> ]Just to clarify as I have been away for some months. the dialog video info is not showing any information from RT+metascore etc on purpose right? I need to donate and get an API key to get it working?

No, you don't NEED an apikey.
All data is provided even without an api key but it will be slower and it will be cached longer, also it will print some nagging warnings in the kodi log.

So, if you want the additional metadata for free and don't mind that the first retrieval takes a few seconds, the default is fine.
If you want the latest and greatest and need it super fast, apply for api keys for all services.

Sorry, I had some discussions with the metadata sites and this was the only way to keep it alive.
We don't want to overload those free metadata api's.

MetaScore is still provided, for RottenTomatoes only the rating is provided, the userrating and stuff like that is gone.
(2017-09-13, 19:59)marcelveldt Wrote: [ -> ]
(2017-09-07, 22:51)Angelinas Wrote: [ -> ]@Marcel I don't have info or Art if play Episode from library(Kodi version Leia)
Can you check ...or it's normal to have only Kodi info and art Smile
ListItem are populated and working.

Is the Listitem.TvShowTitle info label filled properly (or Videoplayer.TvShowTitle in this case) for episodes ?
That's what's used to grab the tvshow data.
Library view
Image
Full screen info...missing all arts and info
Image
(2017-09-13, 20:18)marcelveldt Wrote: [ -> ]
(2017-09-13, 00:09)djhifi Wrote: [ -> ]Just to clarify as I have been away for some months. the dialog video info is not showing any information from RT+metascore etc on purpose right? I need to donate and get an API key to get it working?

No, you don't NEED an apikey.
All data is provided even without an api key but it will be slower and it will be cached longer, also it will print some nagging warnings in the kodi log.

So, if you want the additional metadata for free and don't mind that the first retrieval takes a few seconds, the default is fine.
If you want the latest and greatest and need it super fast, apply for api keys for all services.

Sorry, I had some discussions with the metadata sites and this was the only way to keep it alive.
We don't want to overload those free metadata api's.

MetaScore is still provided, for RottenTomatoes only the rating is provided, the userrating and stuff like that is gone.

Got it. The thing is its taking a really long time for the first initial sync. I have a big collection but that impact in any sort? Also, when you mention "apply for api keys" you mean pay and enter the API key in your script, right?
(2017-09-14, 01:42)djhifi Wrote: [ -> ]Got it. The thing is its taking a really long time for the first initial sync. I have a big collection but that impact in any sort? Also, when you mention "apply for api keys" you mean pay and enter the API key in your script, right?

3 keys would be my guess: omdapi fanartv and tmdb
(2017-09-13, 20:13)marcelveldt Wrote: [ -> ]
(2017-09-10, 18:34)Guilouz Wrote: [ -> ]I have also found mistake in wiki : plugin://script.skin.helper.widgets/?action=browsegenres&mediatype=movie&limit=1000 not working
It's only working with plugin://script.skin.helper.widgets/?action=browsegenres&mediatype=movies&limit=1000

Same for tvshow

Request : Is it possible to have the same for genres artists ?

You can correct the wiki yourself, it's opensource ;-)
I think the mediatype should be randommovies too, same typo.

Yes, I can add the same for artists, no problem. First let me know if the movies and tvshows are now working (confirm that is was a wiki typo and the feature itself is working)

I have try : plugin://script.skin.helper.widgets/?action=browsegenres&mediatype=randommovies&limit=1000 and plugin://script.skin.helper.widgets/?action=browsegenres&mediatype=randomtvshows&limit=1000 but not working.

Only working : plugin://script.skin.helper.widgets/?action=browsegenres&mediatype=movies&limit=1000 and plugin://script.skin.helper.widgets/?action=browsegenres&mediatype=tvshows&limit=1000
There has been a lot of chatter about API keys, here are some instructions on how to get the common ones for Skin Helper Service and Artwork Downloader.

API KEY REQUEST INSTRUCTIONS :



FanArt.TV: https://fanart.tv
Code:
1: Login to the site (create an account if necessary - Free): https://fanart.tv/
2: Go to the following URL: https://fanart.tv/get-an-api-key/
3: Generate a PROJECT API KEY (lower half of page): (NOTE: Personal API Keys will not work properly)
Project Name: kodi
Project Description: kodi
Project URL: http://kodi.tv
4: You should see a Project key created which looks similar to the following:
84f9633e5c6801d82759ed48e5059560 <-- Example only to indicate formatting, do not use this key, which is invalid

The Movie DB: https://www.themoviedb.org
Code:
1: Login to the site (create an account if necessary - Free): https://www.themoviedb.org
2: Go to the following URL: https://www.themoviedb.org/settings/api
3: Request an API Key (bottom lele of main content section of page)
4: Select Developer and accept the terms of usage
5: Enter the application details
App name: Kodi
App URL: http://kodi.tv
App Summary: Personal API key for Kodi add-ons
The rest of the fields are just your personal info, populate them and click submit.
6: Your key is listed in the :API Key (v3 auth) section, You should see a key created which looks similar to the following:
878b84aeea12334580bd86fa300e67da <-- Example only to indicate formatting, do not use this key, which is invalid

The TV DB: http://thetvdb.com/
Code:
1: Login to the site (create an account if necessary - Free): https://www.themoviedb.org
2: Go to the following URL: http://thetvdb.com/?tab=apiregister
3. Enter a project name and website and click retrieve API Key. These can be anything you want and are for your reference only, I use:
Project Name: kodi
Project website: http://kodi.tv
4: Your key is listed in the: API Keys section at the bottom of the page, You should see a key created which looks similar to the following:
FF02D36BE10A733B <-- Example only to indicate formatting, do not use this key, which is invalid

OMDB: http://www.omdbapi.com/ (REQUIRES DONATION of $1 / Mo.)
Code:
1: Donate to the project via Patron - https://www.patreon.com/bePatron?u=5038490
2: Go to the following URL to request your API Key: http://www.omdbapi.com/apikey.aspx
3: You should receive an email with an API key which looks similar to the following:
32c545ae <-- Example only to indicate formatting, do not use this key, which is invalid


ADD YOUR API KEYS

Metadata and artwork module -- Add keys to Metadata and artwork module Add-on Settings, used by Skin helper Service
Artwork Downloader -- https://forum.kodi.tv/showthread.php?tid...pid2618265
FYI: I also edit the tvdb.py file (line 41) to add my personal key for the TVDB, since i set one up.

I hope this helps someone.
I have fixed it. You just need to register your own API keys on fanart.tv and themoviedb.org. Once you've done that you just need to edit the following files:

\addons\script.artwork.downloader\lib\provider\fanarttv.py and \addons\script.artwork.downloader\lib\provider\tmdb.py

Note 1: For the fanart.tv API key I had to apply for the Project API Keys, the Personal API Keys option did not download all the artwork.
Note 2: For the themoviedb.org API key I applied for the Developer Key.

I used Notepad++ to edit the files and it can be downloaded HERE - Once you have that installed you can browse over to edit the (2) files.

On Windows:

Users/username/AppData/Roaming/Kodi/addons/script.artwork.downloader/lib/provider/fanarttv.py
Users/username/AppData/Roaming/Kodi/addons/script.artwork.downloader/lib/provider/tmdb.py

On Linux:

\\your.ip.address\kodi\addons\script.artwork.downloader\lib\provider\fanarttv.py​
\\your.ip.address\kodi\addons\script.artwork.downloader\lib\provider\tmdb.py

Save and reboot.

That's it!
(2017-09-13, 20:18)marcelveldt Wrote: [ -> ]for RottenTomatoes only the rating is provided, the userrating and stuff like that is gone.

i ve found this

https://developer.fandango.com/Rotten_Tomatoes

That explains:

Quote:Available Data

The Rotten Tomatoes API provides access to Rotten Tomatoes' ratings and reviews, allowing approved companies and individuals to enrich their applications and widgets with Rotten Tomatoes data. By implementing the Rotten Tomatoes API, your users can access:

Critic and Audience Scores. Tomatometer and Audience scores for movies.
Critic Reviews. A sampling of critic reviews for each movie.

We do not provide:
Detailed movie metadata. We only provide a subset of metadata to help with title matching.
Posters and images. We do not offer high-resolution images; these will need to be sourced from a metadata provider.
TV scores. Coming soon!

Apply for Access

To apply for access to the Rotten Tomatoes API, please submit a proposal form outlining how you would like to use Rotten Tomatoes data. We will review each application to assess whether you are a good candidate based on our updated policies.

Please note that at this time we no longer support unauthorized use of our data (e.g. unofficial projects, non-user facing data integrations).

Is that an old page?
Seems to me that is possibile (if you register it) to enter the API key and get it work.

I honestly don't mind about that but.... you know.. i m curious Big Grin
Hi Marcelveldt,

Got an "issue" with SHS in the skin I use and post here to see if you can do something (seems it is not fixable from the skin)

Here is the issue.

I use only local artwork for music (do not want to hammer fanart server each time I rebuild my music library)
Here is an exemple of my folder structure (important to explain the issue) that should allow SHS to find artworks:

Music folder (set as music source in kodi)
--ArtistA folder
----banner
----logo
----fanart
----thumb
----Album1 folder
------song1 with "ArtistA" as AlbumArtist tag and "ArtistA feat ArtisB" as Artist tag
--ArtistB folder
----banner
----logo
----fanart
----thumb
----Album2 folder
------song2 with "ArtistB" as AlbumArtist tag AND Artist tag

When SHS do his job to cache artworks, it first try to find them for song1 and see two artiists: ArtistA and ArtistB
Of course, being in the ArtistA folder, SHS found artworks for ArtistA but does not found artworks for ArtistB
Then SHS will have to find artworks for song2 and will find artworks for ArtistB BUT they are not put in cache and will never be displayed (probably because SHS already registered this artist with no artworks)

Now my "request" to try to fix this

Could it be possible to add 2 options in SHS for music artworks:

1- option to use AlbumArtist tag instead of Artist tag
2- option allowing to do not use separator (will prevent bands like "the mamas and the papas" to be seen as 2 artists "the mamas" and "the papas")

Last issue: it seems that some part of the code does not like some special character
Artworks are never displayed for artists like "Des'ree" or "Diam's"
Could you have a look at that too?

Thanks for your time
Or @Gracus you could wait for v18... that will have nominated location for artist artwork as part of Kodi core. It may be better to focus effort on that, and what skins needs from core to be able to use it, than changes to SHS.
(2017-09-15, 23:57)DaveBlake Wrote: [ -> ]Or @Gracus you could wait for v18... that will have nominated location for artist artwork as part of Kodi core. It may be better to focus effort on that, and what skins needs from core to be able to use it, than changes to SHS.

Kodi devs have limited time and I do not think that music artworks could have a place in Kodi 18 roadmap (or, as for movies, just a few of them will be available through kodi core and we will still need SHS for the others)

That is why I thought simplier to make small correction to SHS than trying to add all of these in Kodi
(2017-09-15, 23:57)DaveBlake Wrote: [ -> ]Or @Gracus you could wait for v18... that will have nominated location for artist artwork as part of Kodi core. It may be better to focus effort on that, and what skins needs from core to be able to use it, than changes to SHS.

Sounds very interesting. Is there a PR for this?
(2017-09-16, 00:59)Gracus Wrote: [ -> ]Kodi devs have limited time and I do not think that music artworks could have a place in Kodi 18 roadmap (or, as for movies, just a few of them will be available through kodi core and we will still need SHS for the others)

That is why I thought simplier to make small correction to SHS than trying to add all of these in Kodi
You are of course right about limited time and help with deveolpment is welcome, the active dev team is very small compared to the millions of users Kodi has. But to my knowledge there is no "roadmap" it is just a matter of what gets done (implemented and approved) in time.

While I am not going to be able to replace SHS, and not sure I would even want to try, I am working on where Kodi looks for artist nfo and art. The current approach - trying to identify a unique folder in the music files - is flawed. It can only work for abum artists with very simple muisc folder layouts, collaborations (multiple album artists) or multiple music sources confuse it. In v18 there will be a nominated artists folder, and it would be sensible for addons that fetch art to use this folder too, not go off and create yet another structure with different naming etc.

I don't have time to trawl through Python and work out how these addons work, and I am not even a regular addon user, so I am unclear on what addons like SHS need to be able to make use of the features I am adding. All I can do is raise awareness of what I am working on, and hope that those on the addon side of things will come forward and work with me.

For example if there are issues with turning artist names into folders, then it would help me to know about it and to work together to come up with a collective solution that can be implemented in core and accessed by addons.

The v18 music db already holds Muisicbrainz release group id. It is this, not Muisicbrainz (album) release id, that is needed for online lookup of album art and info. Using this would speed up art retrieval by removing the need to requery Muiscbrainz (throttled to 1 call per sec), but I need to know what needs adding so that SHS and other addons have access to this.

(2017-09-16, 07:50)Gade Wrote: [ -> ]Sounds very interesting. Is there a PR for this?
Not quite but near, the work is in my repo. I am working on it as part of improving the music library export/import facility. The aim is to reduce the number of times users rescrape the same online information. If we continue to unnecessarily batter the servers of the free online music info services they will eventually either fail or limit Kodi's access. Better export/import will mean that users can save scraped data locally and restore it to any fresh installations with ease.

I know that core changes are slow compared to addon development, but I would like to work with the addon devs and users rather than in isolation.

Some design and testing discussion here https://forum.kodi.tv/showthread.php?tid...pid2644241 Perhaps a better place to discuss it than mixed in with other SHS requests?