Add-on:Skin Widgets: Difference between revisions

From Official Kodi Wiki
Jump to navigation Jump to search
mNo edit summary
m (Addon-Bot repo category update)
Tag: Manual revert
 
(110 intermediate revisions by 7 users not shown)
Line 1: Line 1:
<!-- See http://wiki.xbmc.org/index.php?title=Template:Addon and http://wiki.xbmc.org/index.php?title=Help:Add-on_page for help editing this page -->
{{Addon  
{{Addon  
| Name = Skin Widgets
|Name=Skin Widgets
| provider-name = Martijn
|provider-name=Martijn, phil65
| ID = service.skin.widgets
|ID=service.skin.widgets
| latest-version = 0.0.1
|latest-version=0.0.33
| extension point = xbmc.service
|extension point=xbmc.service
| provides =  
|provides=
| Platform = All
|Summary=Skin widgets
| broken =  
|Description=Skin widgets
| icon url =  
|Platform=all
| repo = Frodo
|Language=
| zip =  
|License=GNU GENERAL PUBLIC LICENSE. Version 2, June 1991
| Summary = Skin widgets
|Forum=http://forum.xbmc.org/showthread.php?tid=142389
| Description = Skin widgets
|Website=
}}
|Source=https://github.com/XBMC-Addons/service.skin.widgets
|Email=
|broken=
|icon url=http://mirrors.kodi.tv/addons/leia/service.skin.widgets/icon.png}}


== Movies ==
This addon provides skin with an array of labels they can use for displaying in their skins.
The addon will be run as a service on user "login" and will be stopped on user "logout".


=== Random infolabels ===
== Setting ==


* Window(Home).Property(*)
* Enable recommended
* Enable randomitems
:* Only unplayed
:* Randomize time (minutes)
:* Use season folders


Number of labels is hardcoded at 20


== Dependency ==
Add this to your ''addon.xml'' to make it install along with your skin.
  <requires>
    <import addon="xbmc.gui" version="3.00"/>
    <import addon="service.skin.widgets" version="0.0.2"/>
  </requires>
Note: Please check on what minimum version you need and change it accordingly
== Infolabels ==
=== Random items ===
Link below contains the InfoLabels used for the Randomitems service
[[Add-on:Skin_Widgets/RandomItems]]
=== Recommended ===
Link below contains the InfoLabels used for the Recommended service
[[Add-on:Skin_Widgets/Recommended]]
=== Recent items ===
Link below contains the InfoLabels used for the RecentItems service
[[Add-on:Skin_Widgets/RecentItems]]
=== General ===
Use: Window(Home).Property(*)


{| class="wikitable" border="1"
{| class="wikitable" border="1"
|+ '''Available labels'''
|+ '''Available labels'''
! Property: Movies !! Description
! Property: General !! Description
|-
|-
| WatchList_Movie.%d.Label || movie title
| SkinWidgets_Running || addon running 'true/false'
|-
|-
| WatchList_Movie.%d.Year || year of release
| SkinWidgets_Recommended || addon setting 'true/false'
|-
|-
| WatchList_Movie.%d.Genre || movie genre
| SkinWidgets_RandomItems || addon setting 'true/false'
|-
|-
| WatchList_Movie.%d.Studio || movie studio
| SkinWidgets_RecentItems || addon setting 'true/false'
|-
|-
| WatchList_Movie.%d.Plot || movie plot
|}
|-
 
| WatchList_Movie.%d.PlotOutline || movie plotoutline
 
|-
{| class="wikitable" border="1"
| WatchList_Movie.%d.Tagline || movie tagline
|+ '''Available triggers'''
|-
! Property: General !! Description
| WatchList_Movie.%d.Runtime || duration of the movie
|-
| WatchList_Movie.%d.Rating || movie rating
|-
| WatchList_Movie.%d.Fanart || movie fanart
|-
| WatchList_Movie.%d.Thumb || movie thumbnail
|-
| WatchList_Movie.%d.Path || movie filename and path
|-
! Property: Episodes !! Description
|-
| WatchList_Episode.%d.Label ||episode title
|-
| WatchList_Episode.%d.Episode || episode number
|-
| WatchList_Episode.%d.Season || season number
|-
| WatchList_Episode.%d.EpisodeNo || season/episode number (sxxexx)
|-
| WatchList_Episode.%d.Plot ||episode plot
|-
| WatchList_Episode.%d.TVShowTitle || tv show title
|-
|-
| WatchList_Episode.%d.Path || episode filename and path
| SetProperty(SkinWidgets_RandomItems_Update,true) || Trigger randomitems update. Script resets the value back to false and resets running randomize timer.
|-
|-
| WatchList_Episode.%d.Rating || episode rating
|-
| WatchList_Episode.%d.Thumb ||episode thumbnail
|-
| WatchList_Episode.%d.SeasonThumb || season thumbnail
|-
| WatchList_Episode.%d.TvshowThumb  || tv show thumbnail
|-
| WatchList_Episode.%d.Fanart || tv show fanart
|-
| WatchList_Episode.%d.IsResumable || indicates if it's a partially watched episode (True/False)
|-
! Property: Albums !! Description
|-
| WatchList_Episode.%d.Label ||name of the album
|-
| WatchList_Episode.%d.Artist || album artist
|-
| WatchList_Episode.%d.Genre || album genre
|-
| WatchList_Episode.%d.Year || year of release
|-
| WatchList_Episode.%d.Album_Label || recordlabel
|-
| WatchList_Episode.%d.Album_Description || album review
|-
| WatchList_Episode.%d.Rating || rating of the album
|-
| WatchList_Episode.%d.Thumb || album thumbnail
|-
| WatchList_Episode.%d.Fanart || artist fanart
|-
| WatchList_Episode.%d.Path || can be used to play the album
|-
! Property: General !! Description
|-
| WatchList_Running || used by the script internally to check if it's already running
|}
|}


 
[[Category:Add-ons with license tag]]
Code example to play album:
[[Category:Add-ons with source tag]]
    <onclick>$INFO[Window(Home).Property(WatchList_Album.%d.Path)]</onclick>
[[Category:All add-ons]]
 
[[Category:Service add-ons]]
 
[[Category:Gotham add-on repository]]
[[Category:Frodo add-on repository]]
[[Category:Helix add-on repository]]
[[Category:Isengard add-on repository]]
[[Category:Jarvis add-on repository]]
[[Category:Krypton add-on repository]]
[[Category:Leia add-on repository]]

Latest revision as of 04:24, 17 October 2021

Skin Widgets
icon.png

See this add-on on the kodi.tv showcase

Author: Martijn, phil65

Type: Services
Repo:

License: GPL v2.0
Source: Source code
Summary: Skin widgets
Home icon grey.png   ▶ Add-ons ▶ Skin Widgets
Attention talk.png Need help with this add-on? See here.

Skin widgets

Installing

This add-on is installed from the Add-on browser located in Kodi as follows:

  1. Settings
  2. Add-ons
  3. Install from repository
  4. Services
  5. Skin Widgets
  6. Install

This addon provides skin with an array of labels they can use for displaying in their skins. The addon will be run as a service on user "login" and will be stopped on user "logout".

Setting

  • Enable recommended
  • Enable randomitems
  • Only unplayed
  • Randomize time (minutes)
  • Use season folders

Number of labels is hardcoded at 20

Dependency

Add this to your addon.xml to make it install along with your skin.

 <requires>
   <import addon="xbmc.gui" version="3.00"/>
   <import addon="service.skin.widgets" version="0.0.2"/>
 </requires>

Note: Please check on what minimum version you need and change it accordingly

Infolabels

Random items

Link below contains the InfoLabels used for the Randomitems service

Add-on:Skin_Widgets/RandomItems


Recommended

Link below contains the InfoLabels used for the Recommended service

Add-on:Skin_Widgets/Recommended


Recent items

Link below contains the InfoLabels used for the RecentItems service

Add-on:Skin_Widgets/RecentItems

General

Use: Window(Home).Property(*)

Available labels
Property: General Description
SkinWidgets_Running addon running 'true/false'
SkinWidgets_Recommended addon setting 'true/false'
SkinWidgets_RandomItems addon setting 'true/false'
SkinWidgets_RecentItems addon setting 'true/false'


Available triggers
Property: General Description
SetProperty(SkinWidgets_RandomItems_Update,true) Trigger randomitems update. Script resets the value back to false and resets running randomize timer.