[RELEASE] Add-on Metadata Actors - Skin support - FrostBox - 2012-02-21
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 MovieActors, MovieDirectors 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
- FrostBox - 2012-02-21
Other screnshots
From DialogAlbumInfo.xml
- mad-max - 2012-02-21
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
Glass support metadata.actors
with movie
with music
with Movie Set
you can try this nice script in it
- ZombieRobot - 2012-02-22
cool will take a look
- Eisi2005 - 2012-02-22
@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
I have only one word to say : TERRIFIC
- fmronan - 2012-02-22
Yes it is,
just a quick screenshot
- Eisi2005 - 2012-02-22
@fmronan
THX for the fast answer.
Greets
Eisi
- french_chris - 2012-02-22
Great !
I hope this will be implemented in the other skins very soon !
- FrostBox - 2012-02-22
Eisi2005 Wrote:@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 ?
Done
Code: 0.1.2
- added: [filmography] LibraryHasMovie: Container(150).ListItem.Property(LibraryHasMovie) return 1 or empty, if movie exists in library
- FrostBox - 2012-02-22
french_chris Wrote:Great !
I hope this will be implemented in the other skins very soon !
You can test without skin integration!
Simply Go to add-ons programs et launch metadata actors
- ezechiel1917 - 2012-02-22
FrostBox Wrote:Done
Code: 0.1.2
- added: [filmography] LibraryHasMovie: Container(150).ListItem.Property(LibraryHasMovie) return 1 or empty, if movie exists in library
I have to say this is very nice script!
Can you also add label which returns a value if movie has been watched in your library?
- krish_2k4 - 2012-02-22
Is it possible to select a movie and then have this script suggest/recommend movie with similar actors?
for instance if you select "Goodfellas" it would search the database for actors in Goodfellas who also appear in other movies together? Also to make it more accurate it can list movies with the same actors, directors and genre....Of the top of my head it should be Casino as it has the same director, similar actors such as Joe Pesci and Robert De Niro.
So if you select Godfather, the top results should be Godfather part 2.
im just throwing this out there, don't even know if it is possible!
- FrostBox - 2012-02-22
ezechiel1917 Wrote:I have to say this is very nice script!
Can you also add label which returns a value if movie has been watched in your library?
Done and if you want view diff of source http://code.google.com/p/passion-xbmc/source/detail?r=1050
Code: 0.1.3
- added: [filmography] Playcount of movie: Container(150).ListItem.Property(Playcount) (default is 0)
For exemple: <visible>IntegerGreaterThan(ListItem.Property(PlayCount),0)</visible>
krish_2k4 Wrote:Is it possible to select a movie and then have this script suggest/recommend movie with similar actors?
for instance if you select "Goodfellas" it would search the database for actors in Goodfellas who also appear in other movies together? Also to make it more accurate it can list movies with the same actors, directors and genre....Of the top of my head it should be Casino as it has the same director, similar actors such as Joe Pesci and Robert De Niro.
So if you select Godfather, the top results should be Godfather part 2.
im just throwing this out there, don't even know if it is possible!
It's good idea, but actually it's not possible. maybe later
Frost
|