XBMC Community Forum
[RELEASE] Add-on Metadata Actors - Skin support - Printable Version

+- XBMC Community Forum (http://forum.xbmc.org)
+-- Forum: Development (/forumdisplay.php?fid=32)
+--- Forum: Skin Development (/forumdisplay.php?fid=12)
+--- Thread: [RELEASE] Add-on Metadata Actors - Skin support (/showthread.php?tid=123578)

Pages: 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17


[RELEASE] Add-on Metadata Actors - Skin support - FrostBox - 2012-02-21 21:36

[Image: icon.png]

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=123578&pid=1089207#pid1089207

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

Download: http://passion-xbmc.org/addons/?Page=View&ID=script.metadata.actors
Sources: http://code.google.com/p/passion-xbmc/source/browse/trunk/addons/eden-pre/script.metadata.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: 1329848137-screenshot000.png]
[Image: 1329848212-screenshot001.png]
[Image: 1329848242-screenshot002.png]
[Image: 1329848270-screenshot003.png]
[Image: 1329848304-screenshot004.png]


- FrostBox - 2012-02-21 21:37

Other screnshots
[Image: 1329848497-screenshot007.png]
[Image: 1329848616-screenshot008.png]

From DialogAlbumInfo.xml
[Image: 1329851350-screenshot009.png]
[Image: 1329851389-screenshot010.png]

[Image: 1329848326-screenshot005.png]
[Image: 1329848368-screenshot006.png]


- mad-max - 2012-02-21 23:05

This is pretty cool...
Will play a bit with it and report back...

BTW: passion xbmc seems to be on fire...a bunch of cool addons released recently...
Respect for that...keep up the good work!


- fmronan - 2012-02-21 23:30

Glass support metadata.actorsNod
with movie


[Image: 1329813332-screenshot200.png]

[Image: 1329813485-screenshot206.png]

with music

[Image: 1329817079-screenshot212.png]

with Movie Set

[Image: 1329819250-screenshot214.png]

[Image: 1329819365-screenshot229.png]

you can try this nice script in it


- ZombieRobot - 2012-02-22 06:04

cool will take a look


- Eisi2005 - 2012-02-22 08:01

@FrostBox

many many THANKS for this nice addon. I could not test it yet, but is there an option in Filmography that the movies from an actor that i have in my movielibrary become an other color ? So that i could see what movies i have with actor ?

@fmronan

Do you have no Filmography ? In the screenshot with Daniel Radcliff the Filmography button is grey ?

Greets
Eisi


- mikebzh44 - 2012-02-22 09:42

I have only one word to say : TERRIFIC Nod


- fmronan - 2012-02-22 09:48

Yes it is,
[Image: 1329896824-screenshot238.png]

[Image: 1329896885-screenshot239.png]
just a quick screenshot


- Eisi2005 - 2012-02-22 10:14

@fmronan

THX for the fast answer.

Greets
Eisi


- french_chris - 2012-02-22 15:24

Great !

I hope this will be implemented in the other skins very soon !