• 1
  • 2
  • 3(current)
  • 4
  • 5
  • 28
Release script.embuary.helper - a skin helper service / widgets alternative
#31
(2019-07-19, 07:01)sualfred Wrote: That's not a simple oneliner and should be added to skinshortcuts directly (if it finds a maintainer again. Otherwise it's broken on Matrix too).

Thanks for the reply sualfred. I will see what i can conjure up using only the skinning engine.

Cheers
Mr. V
Madnox 2.0
Forum / Source
Reply
#32
(2019-07-18, 13:43)Edworld Wrote: This is not a request, just a question.

You mentioned in your first post that your helper doesnt get the information from the web which makes it a lot faster and for that reason you would not have live rotten tomatos ratings, etc.

for those of us who have the different ratings stored in our database for movies and tvshows, would you be able to display those ratings in different views and not just dialogvideoinfo using a feature in your helper?

I was wrong, sorry.

Added to GitHub:
https://github.com/sualfred/script.embua...72a3497158
https://github.com/sualfred/script.embua...8a8acbb640

Result examples:
  • $INFO[ListItem.Property(Rating(default))]
  • $INFO[ListItem.Property(Rating(rottentomatoes))]
  • $INFO[ListItem.Property(Votes(default))]
  • etc.
Edit
I've switched to the correct .setRating function. So the results are stored correctly now:
  • $INFO[ListItem.Rating(rottentomatoes)]
  • $INFO[ListItem.Votes(rottentomatoes)]
  • $INFO[ListItem.Rating(tmdb)]
  • $INFO[ListItem.Votes(tmdb)]

Important: Kodi only supports floats up to 10.0. Since Rotten is using 0-100 I'm going to convert the values. Example -> "56" = "5.6"


To get these values somewhere outside of the info dialog, like in the myvideonav.xml, you have to add a hidden container with a path like this:
Code:
plugin://script.embuary.helper/?info=getbydbid&dbid=$INFO[ListItem.DBID]&type=movie

Get the value:
$INFO[Container(my-hidden-container-id).listitem.property(Rating(default))]
$INFO[Container(my-hidden-container-id).listitem.Rating(rottentomatoes)]

For my provided widgets these values are automatically set and don't need this skin hack.
Main: Lancool II Mesh  - Ryzen 9 5900x - MSI x570 Unify - Zotac RTX 3080 AMP HOLO - 32GB Trident Z Neo 3600 CL16 -  EVO 960 M.2 250GB / EVO 940 250GB / MX100 512GB /  Crucial P1 2TB / WD Blue 3D Nand 2TB 
Sound: Saxx AS30 DSP - Beyer Dynamic Custom One Pro 
TV: Nvidia Shield 2019 Pro- Adalight 114x LEDs - Sony 65XG9505 - Kodi / Emby - Yamaha RX-V683 - Heco Victa 700/101/251a + Dynavoice Magic FX-4
Server: i3 Skylake - 8GB - OMV4 - 22TB Storage
Reply
#33
(2019-07-27, 09:14)sualfred Wrote:
(2019-07-18, 13:43)Edworld Wrote: This is not a request, just a question.

You mentioned in your first post that your helper doesnt get the information from the web which makes it a lot faster and for that reason you would not have live rotten tomatos ratings, etc.

for those of us who have the different ratings stored in our database for movies and tvshows, would you be able to display those ratings in different views and not just dialogvideoinfo using a feature in your helper?

I was wrong, sorry.

Added to GitHub:
https://github.com/sualfred/script.embua...72a3497158

Result examples:
  • $INFO[ListItem.Property(Rating(default))]
  • $INFO[ListItem.Property(Rating(rottentomatoes))]
  • $INFO[ListItem.Property(Votes(default))]
  • etc.

To get these values somewhere outside of the info dialog, like in the myvideonav.xml, you have to add a hidden container with a path like this:
Code:
plugin://script.embuary.helper/?info=getbydbid&dbid=1624&type=movie

Get the value:
Code:
$INFO[Container(my-hidden-container-id).listitem.property(Rating(default))]

For my provided widgets these values are automatically set and don't need this skin hack. 

Awesome stuff, thanks.
Reply
#34
You're welcome.

I've force pushed this minor change to the open PR for the Kodi repo. Once Rechi merged it it will be available on the Kodi repo, too.
Main: Lancool II Mesh  - Ryzen 9 5900x - MSI x570 Unify - Zotac RTX 3080 AMP HOLO - 32GB Trident Z Neo 3600 CL16 -  EVO 960 M.2 250GB / EVO 940 250GB / MX100 512GB /  Crucial P1 2TB / WD Blue 3D Nand 2TB 
Sound: Saxx AS30 DSP - Beyer Dynamic Custom One Pro 
TV: Nvidia Shield 2019 Pro- Adalight 114x LEDs - Sony 65XG9505 - Kodi / Emby - Yamaha RX-V683 - Heco Victa 700/101/251a + Dynavoice Magic FX-4
Server: i3 Skylake - 8GB - OMV4 - 22TB Storage
Reply
#35
Just in case it will be overread:
I've edited my post from above with other values.
Main: Lancool II Mesh  - Ryzen 9 5900x - MSI x570 Unify - Zotac RTX 3080 AMP HOLO - 32GB Trident Z Neo 3600 CL16 -  EVO 960 M.2 250GB / EVO 940 250GB / MX100 512GB /  Crucial P1 2TB / WD Blue 3D Nand 2TB 
Sound: Saxx AS30 DSP - Beyer Dynamic Custom One Pro 
TV: Nvidia Shield 2019 Pro- Adalight 114x LEDs - Sony 65XG9505 - Kodi / Emby - Yamaha RX-V683 - Heco Victa 700/101/251a + Dynavoice Magic FX-4
Server: i3 Skylake - 8GB - OMV4 - 22TB Storage
Reply
#36
@sualfred I think you missed this as well.

python:
plugin://script.embuary.helper/?info=getbydbid&dbid=1624&type=movie

should be

python:
plugin://script.embuary.helper/?info=getbydbid&dbid=$INFO[ListItem.DBID]&type=movie
Reply
#37
Thanks, yes. That's clearer. Was only copying my test code.
Main: Lancool II Mesh  - Ryzen 9 5900x - MSI x570 Unify - Zotac RTX 3080 AMP HOLO - 32GB Trident Z Neo 3600 CL16 -  EVO 960 M.2 250GB / EVO 940 250GB / MX100 512GB /  Crucial P1 2TB / WD Blue 3D Nand 2TB 
Sound: Saxx AS30 DSP - Beyer Dynamic Custom One Pro 
TV: Nvidia Shield 2019 Pro- Adalight 114x LEDs - Sony 65XG9505 - Kodi / Emby - Yamaha RX-V683 - Heco Victa 700/101/251a + Dynavoice Magic FX-4
Server: i3 Skylake - 8GB - OMV4 - 22TB Storage
Reply
#38
(2019-07-27, 12:52)Hitcher Wrote: @sualfred I think you missed this as well.

python:
plugin://script.embuary.helper/?info=getbydbid&dbid=1624&type=movie

should be

python:
plugin://script.embuary.helper/?info=getbydbid&dbid=$INFO[ListItem.DBID]&type=movie
Would it work  if I replace type=movie with type=tvshow?
Reply
#39
yep
Main: Lancool II Mesh  - Ryzen 9 5900x - MSI x570 Unify - Zotac RTX 3080 AMP HOLO - 32GB Trident Z Neo 3600 CL16 -  EVO 960 M.2 250GB / EVO 940 250GB / MX100 512GB /  Crucial P1 2TB / WD Blue 3D Nand 2TB 
Sound: Saxx AS30 DSP - Beyer Dynamic Custom One Pro 
TV: Nvidia Shield 2019 Pro- Adalight 114x LEDs - Sony 65XG9505 - Kodi / Emby - Yamaha RX-V683 - Heco Victa 700/101/251a + Dynavoice Magic FX-4
Server: i3 Skylake - 8GB - OMV4 - 22TB Storage
Reply
#40
We've just implemented the Rotten Tomatoes rating to be synced from Emby to Kodi to test it how well this method works:



As long as ListItem.Rating(foo) is not being fixed for Kodi, this is a good working alternative.
Main: Lancool II Mesh  - Ryzen 9 5900x - MSI x570 Unify - Zotac RTX 3080 AMP HOLO - 32GB Trident Z Neo 3600 CL16 -  EVO 960 M.2 250GB / EVO 940 250GB / MX100 512GB /  Crucial P1 2TB / WD Blue 3D Nand 2TB 
Sound: Saxx AS30 DSP - Beyer Dynamic Custom One Pro 
TV: Nvidia Shield 2019 Pro- Adalight 114x LEDs - Sony 65XG9505 - Kodi / Emby - Yamaha RX-V683 - Heco Victa 700/101/251a + Dynavoice Magic FX-4
Server: i3 Skylake - 8GB - OMV4 - 22TB Storage
Reply
#41
@sualfred, I’ve started to use the jump to letter feature of your script, it’s great and fast with my 6700 movie collection, so thanks ! I have received a question about placing the selected item, once you choose a letter, at the top of the list. Any ideas on how I could do that? I realize this is more of a skinning question than a script question. Thanks for your help.

Also, I noticed that the jump to letter does not work on paths like recently added, or any playlist.  I tried this with Embuary as well, and the jump to letter does not show either in recently added movies, or in any movie playlist.  Is this something you can fix?

Regards,

Bart
Reply
#42
Not possible. But you can achieve something similar with ListItem.SortLetter. Just place it before the list begins.

Edit:
And nope. It only works with a ascending/descending A-Z sorting. I hide it in the other cases. Take a look at my implementation example: https://github.com/sualfred/script.embua...-to-letter
Main: Lancool II Mesh  - Ryzen 9 5900x - MSI x570 Unify - Zotac RTX 3080 AMP HOLO - 32GB Trident Z Neo 3600 CL16 -  EVO 960 M.2 250GB / EVO 940 250GB / MX100 512GB /  Crucial P1 2TB / WD Blue 3D Nand 2TB 
Sound: Saxx AS30 DSP - Beyer Dynamic Custom One Pro 
TV: Nvidia Shield 2019 Pro- Adalight 114x LEDs - Sony 65XG9505 - Kodi / Emby - Yamaha RX-V683 - Heco Victa 700/101/251a + Dynavoice Magic FX-4
Server: i3 Skylake - 8GB - OMV4 - 22TB Storage
Reply
#43
@sualfred 
If i understand correctly i can now make visible the rotten tomatoes rating outside DialogVideoInfo.
The normal kodi internal rating InfoLabel? (nothing to do with the SkinHelper webservice InfoLabel)
Is it also possible for all other kodi supported extended ratings?

ListItem.Ratings(tomatometerallcritics)
ListItem.Votes(tomatometerallcritics)
ListItem.Ratings(tomatometerallaudience)
ListItem.Votes(tomatometerallaudience)
ListItem.Ratings(metacritic)
ListItem.Votes(metacritic)
ListItem.Ratings(imdb)
ListItem.Votes(imdb)
ListItem.Ratings(themoviedb)
ListItem.Votes(themoviedb)
ListItem.Ratings(metacritic)
ListItem.Votes(metacritic)
ListItem.Ratings(anidb)
ListItem.Votes(anidb)
Reply
#44
It's not limited to Rotten ratings. All possible and available ratings of the library will be filled to the getbydbid hidden list. But to prevent mistakes: I only return what the scraper has added to the database.
Main: Lancool II Mesh  - Ryzen 9 5900x - MSI x570 Unify - Zotac RTX 3080 AMP HOLO - 32GB Trident Z Neo 3600 CL16 -  EVO 960 M.2 250GB / EVO 940 250GB / MX100 512GB /  Crucial P1 2TB / WD Blue 3D Nand 2TB 
Sound: Saxx AS30 DSP - Beyer Dynamic Custom One Pro 
TV: Nvidia Shield 2019 Pro- Adalight 114x LEDs - Sony 65XG9505 - Kodi / Emby - Yamaha RX-V683 - Heco Victa 700/101/251a + Dynavoice Magic FX-4
Server: i3 Skylake - 8GB - OMV4 - 22TB Storage
Reply
#45
(2019-07-28, 17:21)sualfred Wrote: Not possible. But you can achieve something similar with ListItem.SortLetter. Just place it before the list begins.

Edit:
And nope. It only works with a ascending/descending A-Z sorting. I hide it in the other cases. Take a look at my implementation example: https://github.com/sualfred/script.embua...-to-letter
@sualfred , thanks! I am not sure how to go about using SortLetter.  Any code I could take a look at? Thanks.

Regards,

Bart
Reply
  • 1
  • 2
  • 3(current)
  • 4
  • 5
  • 28

Logout Mark Read Team Forum Stats Members Help
script.embuary.helper - a skin helper service / widgets alternative3