[RELEASE] Add-on Metadata Actors - Skin support

  Thread Rating:
  • 3 Votes - 4.67 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Post Reply
FrostBox Offline
Skilled Python Coder
Posts: 100
Joined: Nov 2005
Reputation: 6
Location: Quebec City
Rainbow  [RELEASE] Add-on Metadata Actors - Skin support
Post: #1
[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...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: 1329848137-screenshot000.png]
[Image: 1329848212-screenshot001.png]
[Image: 1329848242-screenshot002.png]
[Image: 1329848270-screenshot003.png]
[Image: 1329848304-screenshot004.png]

For my bad English, sorry. I am French Canadian.
Admin @ Passion-XBMC.org
(This post was last modified: 2012-04-28 17:12 by FrostBox.)
find quote
FrostBox Offline
Skilled Python Coder
Posts: 100
Joined: Nov 2005
Reputation: 6
Location: Quebec City
Post: #2
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]

For my bad English, sorry. I am French Canadian.
Admin @ Passion-XBMC.org
find quote
mad-max Offline
Posting Freak
Posts: 1,477
Joined: Jul 2010
Reputation: 57
Location: Germany
Post: #3
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!

[Image: obi3o55x.jpg]
[Image: 7c8w3bu8.png]

- - - Tribute to Metallica - - -

If I managed to help you, please click my reputation
find quote
fmronan Offline
Fan
Posts: 600
Joined: Dec 2010
Reputation: 4
Post: #4
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
find quote
ZombieRobot Offline
Fan
Posts: 712
Joined: May 2010
Reputation: 4
Location: Mount Maunganui , New Zealand
Post: #5
cool will take a look
find quote
Eisi2005 Offline
Fan
Posts: 703
Joined: Feb 2011
Reputation: 1
Location: Germany
Post: #6
@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
find quote
mikebzh44 Offline
Posting Freak
Posts: 1,761
Joined: Nov 2011
Reputation: 47
Location: Nantes - France
Post: #7
I have only one word to say : TERRIFIC Nod

Sorry for my english, but, you know, I'm French so ...

find quote
fmronan Offline
Fan
Posts: 600
Joined: Dec 2010
Reputation: 4
Post: #8
Yes it is,
[Image: 1329896824-screenshot238.png]

[Image: 1329896885-screenshot239.png]
just a quick screenshot
find quote
Eisi2005 Offline
Fan
Posts: 703
Joined: Feb 2011
Reputation: 1
Location: Germany
Post: #9
@fmronan

THX for the fast answer.

Greets
Eisi
find quote
french_chris Offline
Junior Member
Posts: 11
Joined: Jan 2012
Reputation: 0
Location: Paris, France.
Post: #10
Great !

I hope this will be implemented in the other skins very soon !
find quote
FrostBox Offline
Skilled Python Coder
Posts: 100
Joined: Nov 2005
Reputation: 6
Location: Quebec City
Post: #11
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 Smile
Code:
0.1.2
- added: [filmography] LibraryHasMovie: Container(150).ListItem.Property(LibraryHasMovie) return 1 or empty, if movie exists in library

[Image: 1329920989-screenshot012.png]

For my bad English, sorry. I am French Canadian.
Admin @ Passion-XBMC.org
find quote
FrostBox Offline
Skilled Python Coder
Posts: 100
Joined: Nov 2005
Reputation: 6
Location: Quebec City
Post: #12
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 Nod

[Image: 1329923656-screenshot013.png]
[Image: 1329923680-screenshot014.png]
[Image: 1329923704-screenshot015.png]
[Image: 1329923727-screenshot016.png]

For my bad English, sorry. I am French Canadian.
Admin @ Passion-XBMC.org
find quote
ezechiel1917 Offline
Aeon Group
Posts: 733
Joined: Jun 2005
Location: Czech Republic
Post: #13
FrostBox Wrote:Done Smile
Code:
0.1.2
- added: [filmography] LibraryHasMovie: Container(150).ListItem.Property(LibraryHasMovie) return 1 or empty, if movie exists in library

[Image: 1329920989-screenshot012.png]

I have to say this is very nice script! Cool

Can you also add label which returns a value if movie has been watched in your library?

XBMCbuntu 13.0 | XBMC PRE-14.0 | VDR + VNSI @ Technotrend CT-3650 CI | Transparency! skin | trakt.tv
find quote
krish_2k4 Offline
Fan
Posts: 619
Joined: Aug 2010
Reputation: 9
Post: #14
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!
(This post was last modified: 2012-02-22 18:31 by krish_2k4.)
find quote
FrostBox Offline
Skilled Python Coder
Posts: 100
Joined: Nov 2005
Reputation: 6
Location: Quebec City
Post: #15
ezechiel1917 Wrote:I have to say this is very nice script! Cool

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/so...ail?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

For my bad English, sorry. I am French Canadian.
Admin @ Passion-XBMC.org
find quote
Post Reply