[RELEASE] Add-on Metadata Actors - Skin support
#1
Rainbow 
Image

Hello All,
I wrote an add-on for actors / directors / writers informations and filmography and little more!

All infos provided from themoviedb.org and saved in "special://database/Actors1.db" it's a real db

Statut: PRE-1.0.0 -> http://forum.xbmc.org/showthread.php?tid...pid1089207

Prerequis:
- XBMC Eden
- Python 2.5+
- sqlite3 for python
- json or simplejson for python

Download: http://passion-xbmc.org/addons/?Page=Vie...ata.actors
Sources: http://code.google.com/p/passion-xbmc/so...ata.actors

NOW!
Parameters:
Simply add $INFO
[ListItem.foo]

For example:
Code:
XBMC.RunScript(script.metadata.actors,$INFO
[ListItem.foo])
Launch from Library MovieActors, MovieDirectors or TvShowActors.
Add button in DialogContextMenu.xml in main grouplist.
PHP Code:
<control type="grouplist" id="996">
    <
description>grouplist for context buttons</description>
    ...
    <
control type="button" id="1245">
        <
description>actor/director info button (visible only container is MovieActorsMovieDirectors or TvShowActors)</description>
        ...
        <
label>[Infos$INFO
[ListItem.Label]</label>
        <
onclick>RunScript(script.metadata.actors,$INFO
[ListItem.Label])</onclick>
        <
visible>System.HasAddon(script.metadata.actors) + [SubString(Container.FolderPath,videodb://1/4/) | SubString(Container.FolderPath,videodb://1/5/) | SubString(Container.FolderPath,videodb://2/4/)]</visible>
    
</control>
    ...
</
control
Launch from DialogVideoInfo.xml for actor infos: (create a new button and keep $INFO[Container(50).Listitem.Label] )
PHP Code:
<control type="button" id="????">
    <
description>actor info button</description>
    ...
    <
onclick>RunScript(script.metadata.actors,$INFO[Container(50).Listitem.Label])</onclick>
    <
visible>Control.IsVisible(50) + System.HasAddon(script.metadata.actors)</visible>
</
control
Launch from DialogVideoInfo.xml for director/writer infos:
PHP Code:
<onclick condition="System.HasAddon(script.metadata.actors)">RunScript(script.metadata.actors,$INFO
[ListItem.Director])</onclick>
<
onclick condition="System.HasAddon(script.metadata.actors)">RunScript(script.metadata.actors,$INFO
[ListItem.Writer])</onclick
Special Launch for Artists from DialogAlbumInfo.xml:
PHP Code:
<control type="button" id="15">
    <
description>Filmography</description>
    ...
    <
label>Filmography</label>
    <
onclick>RunScript(script.metadata.actors,$INFO
[Listitem.Artist])</onclick>
    <
visible>container.content(Artists) + System.HasAddon(script.metadata.actors)</visible>
</
control
Available Property for hide DialogVideoInfo.xml / DialogAlbumInfo.xml:
Window.Property(script.metadata.actors.isactive): return 1 or empty

For example:
PHP Code:
<animation effect="slide" start="1100,0" end="0,0" time="400" condition="!StringCompare(Window.Property(script.metadata.actors.isactive),1)">Conditional</animation>
<
animation effect="slide" start="0,0" end="1100,0" time="400" condition="StringCompare(Window.Property(script.metadata.actors.isactive),1)">Conditional</animation
---------------------------------------------------------------------------------------

List of Built In Controls Available In script-Actors-DialogInfo.xml:
Code:
5 ----> button -----> Toggle between Biography and Known Movies
6 ----> button -----> Refresh actor information
8 ----> button -----> Browse your movies of the currently selected actor
10 ---> button -----> Get actor thumbnail
11 ---> button -----> edit (require tmdb account)
20 ---> button -----> Get actor fanart
25 ---> button -----> open add-on settings
50 ---> container --> window actor info
150 --> container --> movies list (acting / directing / writing)
250 --> container --> thumbs list of actor
Labels Available In script-Actors-DialogInfo.xml:
Code:
Labels of the currently selected actor / director / writer / artist
Listitem.Title -------------------> Name
Listitem.Label -------------------> Same as Title
ListItem.Icon --------------------> icon
ListItem.Plot --------------------> Biography
ListItem.Property(Biography) -----> Same as Plot
ListItem.Property(Biooutline) ----> (currently not used)
ListItem.Property(TotalMovies) ---> Total of Known Movies (acting / directing / writing)
ListItem.Property(Birthday) ------> Date of Birthday
ListItem.Property(Age) -----------> Age (30)
ListItem.Property(AgeLong) -------> Age long format (age 30)
ListItem.Property(Deathday) ------> Date of Deathday
ListItem.Property(Deathage) ------> Age of dead (30)
ListItem.Property(DeathageLong) --> Age of dead long format (age 30)
ListItem.Property(PlaceOfBirth) --> Place of birth
ListItem.Property(AlsoKnownAs) ---> Also Known Name
ListItem.Property(Homepage) ------> Link of homepage, you can use onclick for open web browser directly on homepage: RunScript(script.metadata.actors,homepage=$INFO
[ListItem.Property(Homepage)])
ListItem.Property(Adult) ---------> Is Adult Actor (no / yes)
ListItem.Property(Fanart_Image) --> Fanart
ListItem.Property(extrafanart) ---> extrafanart (return empty if not exists)
ListItem.Property(extrathumb) ----> extrathumb (return empty if not exists)

Labels of Known Movies list
Container(150).ListItem.Label ----------------------> Title of movie (format: "year  title [name of role / director / writer / etc]")
Container(150).Listitem.Icon -----------------------> icon of movie
Container(150).ListItem.Property(LibraryHasMovie) --> return 1 or empty, if movie exists in library
Container(150).ListItem.Property(Playcount) --------> Playcount of movie (default is 0)

Labels of thumbs list
Container(250).ListItem.Label -------------------> Image résolution (512x720)
Container(250).Listitem.Icon --------------------> Image
Container(250).ListItem.Property(aspect_ratio) --> Aspect Ratio (0.66)
---------------------------------------------------------------------------------------

** BACKEND METHOD **

For example from MyVideoNav.xml:
PHP Code:
<onload condition="System.HasAddon(script.metadata.actors)">RunScript(script.metadata.actors,backend)</onload
Labels Available from backend in video/music library.
Code:
Window.Property(current.actor.name) ----------> Name
Window.Property(current.actor.biography) -----> Same as Plot
Window.Property(current.actor.biooutline) ----> (currently not used)
Window.Property(current.actor.birthday) ------> Date of Birthday
Window.Property(current.actor.age) -----------> Age (30)
Window.Property(current.actor.agelong) -------> Age long format (age 30)
Window.Property(current.actor.deathday) ------> Date of Deathday
Window.Property(current.actor.deathage) ------> Age of dead (30)
Window.Property(current.actor.deathagelong) --> Age of dead long format (age 30)
Window.Property(current.actor.placeofbirth) --> Place of birth
Window.Property(current.actor.alsoknownas) ---> Also Known Name
Window.Property(current.actor.homepage) ------> Link of homepage, you can use onclick for open web browser directly on homepage: RunScript(script.metadata.actors,homepage=$INFO[Window.Property(current.actor.homepage)])
Window.Property(current.actor.adult) ---------> Is Adult Actor (no / yes)

Window.Property(current.actor.icon) ----------> icon
Window.Property(current.actor.fanart_image) --> Fanart
Window.Property(current.actor.extrafanart) ---> extrafanart (return empty if not exists)
Window.Property(current.actor.extrathumb) ----> extrathumb (return empty if not exists)

Window.Property(current.actor.totalmovies) ---> (currently not used) Total of Known Movies (acting / directing / writing)
For more infos see readme.txt in add-on.

Cheers
Frost

Some screnshots from my custom skin
Image
Image
Image
Image
Image
For my bad English, sorry. I am French Canadian.
Admin @ Passion-XBMC.org
Reply


Messages In This Thread
[RELEASE] Add-on Metadata Actors - Skin support - by FrostBox - 2012-02-21, 21:36
[No subject] - by FrostBox - 2012-02-21, 21:37
[No subject] - by mad-max - 2012-02-21, 23:05
[No subject] - by fmronan - 2012-02-21, 23:30
[No subject] - by ZombieRobot - 2012-02-22, 06:04
[No subject] - by Eisi2005 - 2012-02-22, 08:01
[No subject] - by mikebzh44 - 2012-02-22, 09:42
[No subject] - by fmronan - 2012-02-22, 09:48
[No subject] - by Eisi2005 - 2012-02-22, 10:14
[No subject] - by french_chris - 2012-02-22, 15:24
[No subject] - by FrostBox - 2012-02-22, 17:08
[No subject] - by FrostBox - 2012-02-22, 17:17
[No subject] - by ezechiel1917 - 2012-02-22, 17:55
[No subject] - by krish_2k4 - 2012-02-22, 18:29
[No subject] - by FrostBox - 2012-02-22, 19:40
[No subject] - by Jeroen - 2012-02-22, 19:58
[No subject] - by FrostBox - 2012-02-22, 20:02
[No subject] - by Eisi2005 - 2012-02-22, 21:09
[No subject] - by Eisi2005 - 2012-02-22, 22:19
[No subject] - by fmronan - 2012-02-22, 22:56
[No subject] - by Eisi2005 - 2012-02-22, 23:21
[No subject] - by fmronan - 2012-02-23, 11:38
[No subject] - by Eisi2005 - 2012-02-23, 13:43
[No subject] - by Eisi2005 - 2012-02-23, 13:58
[No subject] - by fmronan - 2012-02-23, 14:18
[No subject] - by Eisi2005 - 2012-02-23, 15:04
[No subject] - by fmronan - 2012-02-23, 15:56
[No subject] - by Eisi2005 - 2012-02-23, 16:58
[No subject] - by fmronan - 2012-02-23, 17:39
[No subject] - by FrostBox - 2012-02-23, 19:17
[No subject] - by Wanilton - 2012-02-23, 19:31
[No subject] - by FrostBox - 2012-02-23, 19:41
[No subject] - by Eisi2005 - 2012-02-23, 20:54
[No subject] - by Wanilton - 2012-02-23, 21:17
[No subject] - by FrostBox - 2012-02-23, 21:31
[No subject] - by Eisi2005 - 2012-02-24, 10:22
[No subject] - by FrostBox - 2012-02-24, 18:40
[No subject] - by Eisi2005 - 2012-02-24, 19:39
[No subject] - by donabi - 2012-02-24, 20:04
[No subject] - by FrostBox - 2012-02-25, 20:01
[No subject] - by Jeroen - 2012-02-26, 10:04
[No subject] - by donabi - 2012-02-26, 17:59
[No subject] - by Wanilton - 2012-02-26, 18:47
[No subject] - by Eisi2005 - 2012-02-26, 22:40
[No subject] - by coolio99 - 2012-02-28, 17:36
[No subject] - by Mudislander - 2012-02-29, 14:56
[No subject] - by Eisi2005 - 2012-02-29, 22:08
[No subject] - by BigNoid - 2012-02-29, 22:20
[No subject] - by Eisi2005 - 2012-02-29, 23:03
[No subject] - by fmronan - 2012-02-29, 23:54
[No subject] - by Eisi2005 - 2012-03-01, 18:45
[No subject] - by Tight_wad - 2012-03-01, 21:16
[No subject] - by CutSickAss - 2012-03-01, 22:30
[No subject] - by CutSickAss - 2012-03-02, 13:43
[No subject] - by Eisi2005 - 2012-03-03, 17:36
[No subject] - by Eisi2005 - 2012-03-03, 22:12
[No subject] - by fmronan - 2012-03-03, 23:34
[No subject] - by Eisi2005 - 2012-03-04, 00:40
[No subject] - by fmronan - 2012-03-04, 00:43
[No subject] - by Eisi2005 - 2012-03-04, 14:01
[No subject] - by fmronan - 2012-03-04, 14:12
[No subject] - by Martijn - 2012-03-04, 14:20
[No subject] - by Eisi2005 - 2012-03-04, 14:27
[No subject] - by CutSickAss - 2012-03-04, 16:42
[No subject] - by fmronan - 2012-03-04, 16:46
[No subject] - by ezechiel1917 - 2012-03-10, 03:10
[No subject] - by Eisi2005 - 2012-03-10, 21:52
[No subject] - by Eisi2005 - 2012-03-11, 11:48
Metadata: Greek Translation - by CutSickAss - 2012-03-17, 20:07


Logout Mark Read Team Forum Stats Members Help
[RELEASE] Add-on Metadata Actors - Skin support3
This forum uses Lukasz Tkacz MyBB addons.