[RELEASE] MovieSets (Video) Addon - Show Movie Sets Info Sets for Skins / Skinners
#1
Thumbs Up 
Hi,
Add-on Library for showing details of Movie Sets.
You've dreamed of this! And me, I had nightmares for this!
All infos is retrieved from your database. Not scraping website.

Remember:
This addon run in background if window "VideoNav" is Active. On window close, the add-on will close by itself.
I recommend closing the window before leaving XBMC. Because is possible XBMC crash.

Developed and tested only with (XBMC SVN r35717; Windows XP)

Download : http://passion-xbmc.org/addons/?Page=Vie....moviesets
Sources : http://passion-xbmc.googlecode.com/svn/t....moviesets


Minimum required, "button" for launch and "container".
Parameter button XBMC.RunScript(script.moviesets[,containerId,windowId,busy])
Code:
- containerId : [opt] - id 7000 is default
-    windowId : [opt] - id 10025 is default
-        busy : [opt] - (if you want show dialog busy on retrieving info. add "busy" on argument 3 )
Example of use:

MyVideoNav.xml:
PHP Code:
<defaultcontrol always="true">7777</defaultcontrol>
        <!-- 
MINIMAL REQUIRED FOR ADDON MOVIE SETS -->
        <include>
MovieSetsAddonButton7777</include>
        <include>
MovieSetsContainer</include> 
includes.xml:
PHP Code:
<!-- REQUIRED FOR SETUP INFOS OF MOVIE SETS -->
    <include 
name="MovieSetsAddonButton7777">
        <include 
condition="System.HasAddon(script.moviesets)">MovieSetsStartButton</include>
        <
control type="button" id="7777">
            <
description>Don't Run Movie Sets</description>
            <include>MovieSetsBaseButton</include>
            <include condition="System.HasAddon(script.moviesets)">MovieSetsIsAliveCondition</include>
        </control>
    </include>
    <include name="MovieSetsStartButton">
        <!-- XBMC.RunScript(script.moviesets[,containerId,windowId,busy]) -->
        <!-- containerId : [opt] - id 7000 is default -->
        <!--    windowId : [opt] - id 10025 is default -->
        <!--        busy : [opt] - (if you want show dialog busy on retrieving info. add "busy" on argument 3 ) -->
        <control type="button" id="7777">
            <description>Run Movie Sets</description>
            <onfocus>XBMC.RunScript(script.moviesets,,,busy)</onfocus>
            <include>MovieSetsBaseButton</include>
            <visible>IsEmpty(Window(10025).Property(MovieSets.IsAlive))</visible>
        </control>
    </include>
    <include name="MovieSetsIsAliveCondition">
        <visible>!IsEmpty(Window(10025).Property(MovieSets.IsAlive))</visible>
    </include>
    <include name="MovieSetsBaseButton">
        <hitrect x="0" y="0" w="0" h="0" />
        <posx>0</posx>
        <posy>0</posy>
        <width>1</width>
        <height>1</height>
        <onfocus>SetFocus(50)</onfocus>
        <texturenofocus>-</texturenofocus>
        <texturefocus>-</texturefocus>
        <label>-</label>
        <font>-</font>
    </include>

    <!-- REQUIRED CONTAINER, CONTAINS ALL MOVIE SET INFO -->
    <include name="MovieSetsContainer">
        <control type="list" id="7000">
            <description>Container Movie Sets</description>
            <hitrect x="0" y="0" w="0" h="0" />
            <posx>0</posx>
            <posy>0</posy>
            <width>1</width>
            <height>1</height>
            <onleft>50</onleft>
            <onright>50</onright>
            <onup>50</onup>
            <ondown>50</ondown>
            <pagecontrol>-</pagecontrol>
            <itemlayout height="1" width="1" />
            <focusedlayout height="1" width="1" />
            <visible>System.HasAddon(script.moviesets)</visible>
        </control>
    </include> 
MOVIESETS INFOLABELS AND WINDOW PROPERTIES

Legend: (*) if not exists return empty

WINDOW PROPERTIES AVAILABLE:
Code:
- Window([id]).Property(MovieSets.IsAlive) -> [ return true or empty, if addon is running ]
- Window([id]).Property(Content.MovieSets) -> [ return true or empty, if Container.FolderPath is videodb://1/7/ ]
INFOLABELS AVAILABLE:
Code:
- Container(id).ListItem([offset]) ----> [ first item is empty/dummy item ]( eg: Container(7000).ListItem.Label )

   - .Label ---->   [ Title of Set ] -> [ first item : "Movie Sets" ]
   - .Label2 --->   [ idSet ] --------> [ first item : "Total of MovieSets in your db" ]

   - .Icon -----> * [ return cached icon of set, if user has created with xbmc ]
   - .Path ----->   [ ActivateWindow(10025,videodb://1/7/[idSet]/) ]
   - .Title ---->   [ Same as .Label ]
   - .Genre ---->   [ return all genres of movies in set ]
   - .Plot ----->   [ return all plot of movies in set ]
   - .Duration ->   [ return total time in minutes of all movies in set ]
   - .Rating --->   [ return sum of rating divided by total movies in set ]( eg: (5.6 + 7.5) / 2 movies )
   - .Votes ---->   [ return sum of votes for all movie in set ]

   - .Property(HasMovieSets) ---->   [ return true or empty, if item currently selected is movieset ]
   - .Property(WatchedMovies) --->   [ Shows the number of watched movies for the currently selected movieset ]
   - .Property(UnWatchedMovies) ->   [ Shows the number of unwatched movies for the currently selected movieset ]
   - .Property(TotalMovies) ----->   [ Shows the number of total movies for the currently selected movieset ]
   - .Property(ExtraFanart) -----> * [ return first folder "../extrafanart" of movies for the currently selected movieset ]( eg: moviepath/../extrafanart )
   - .Property(Fanart_Image) ----> * [ return first fanart of movieset sorted by sortTitle tag ]

Properties of each movie for the currently selected movieset
base property "movie.ID." Possible ID ( 1 - 10 or more )

   - .Property(movie.ID.Title) ------->   [ return title of ID ]
   - .Property(movie.ID.sortTitle) --->   [ return sort title of ID ] http://wiki.xbmc.org/index.php?title=Movie_Sets#Editing_the_.NFO_file
   - .Property(movie.ID.Filename) ---->   [ return filename of ID ]
   - .Property(movie.ID.Path) -------->   [ return path of ID ]
   - .Property(movie.ID.Plot)--------->   [ return plot of ID ]
   - .Property(movie.ID.Icon) --------> * [ return cached icon of ID ]
   - .Property(movie.ID.Fanart) ------> * [ return cached fanart of ID ]
   - .Property(movie.ID.ExtraFanart) -> * [ return folder "extrafanart" of ID ]( eg: moviepath/extrafanart )
Now Shows Info:
For More ;-) look file: "/script.moviesets/resources/skins/skin.confluence/720p/ViewsMovieSets.xml"
PHP Code:
<label>$INFO[Container(7000).ListItem.Title]</label>
<
label>$INFO[Container(7000).ListItem.Plot]</label>
<
label>$INFO[Container(7000).ListItem.Duration,, $LOCALIZE[12391]]</label>
<
texture>$INFO[Container(7000).ListItem.Icon]</texture>
<
texture>$INFO[Container(7000).ListItem.Property(movie.1.icon)]</texture>
<
texture>$INFO[Container(7000).ListItem.Property(movie.5.icon)]</texture>
<
texture background="true">$INFO[Container(7000).ListItem.Property(Fanart_Image)]</texture>
<
visible>ListItem.IsFolder + !IsEmpty(Container(7000).ListItem.Property(HasMovieSets))</visible
Shows Info Only on "Video - Library -> Movies -> Sets" Listing:
PHP Code:
<visible>!IsEmpty(Window(10025).Property(Content.MovieSets))</visible>
<
visible>StringCompare(Container.FolderPath,videodb://1/7/)</visible>

<control type="list" id="7700">
    <
viewtype label="Saga Info">list</viewtype>
    <
visible>!IsEmpty(Window(10025).Property(Content.MovieSets)) | StringCompare(Container.FolderPath,videodb://1/7/)</visible>
    
...
</
control
Any suggestions are welcome or if I failed to put useful information. Ask me or submit a path.

If you want my mod for Confluence, but not all view as info for saga only list ( Saga Info and Fanart )
copy folder in addon from "script.moviesets/resources/skins/skin.confluence" to "XBMC/addons/skin.confluence"

Cheers And Happy New Year!
Frost

Previews:
List View: "Video - Library -> Movies -> Title"
Image


List View: "Video - Library -> Movies -> Sets"
Image
Image
Image
Image
Image
For my bad English, sorry. I am French Canadian.
Admin @ Passion-XBMC.org
Reply


Messages In This Thread
[RELEASE] MovieSets (Video) Addon - Show Movie Sets Info Sets for Skins / Skinners - by FrostBox - 2010-12-31, 21:43
[No subject] - by ubuntuf4n - 2010-12-31, 22:28
[No subject] - by blacklist - 2010-12-31, 22:43
[No subject] - by igotdvds - 2010-12-31, 23:09
[No subject] - by stoli - 2010-12-31, 23:19
[No subject] - by robweber - 2010-12-31, 23:33
[No subject] - by igotdvds - 2010-12-31, 23:59
[No subject] - by castortray - 2011-01-23, 21:43
[No subject] - by ashe - 2011-01-24, 06:43
[No subject] - by yiarkyiark - 2011-02-09, 18:29
[No subject] - by Japaja - 2011-02-10, 01:31
Not sure how to get this working? - by iDVB - 2011-02-16, 04:22
[No subject] - by mcborzu - 2011-02-16, 05:38
[No subject] - by FrostBox - 2011-02-16, 14:46
[No subject] - by tboooe - 2011-02-17, 01:02
[No subject] - by geearf - 2011-02-19, 10:05
[No subject] - by wintland - 2011-06-19, 23:48
[No subject] - by isamu.dragon - 2011-06-20, 00:16
[No subject] - by gensufz - 2011-09-04, 01:20
[No subject] - by Rygrath - 2011-09-04, 01:39
[No subject] - by shaktoo - 2011-11-17, 16:26
[No subject] - by fmronan - 2011-11-17, 16:34
[No subject] - by butchabay - 2011-12-03, 09:34
[No subject] - by fmronan - 2011-12-03, 12:31
[No subject] - by FrostBox - 2011-12-03, 18:09
[No subject] - by butchabay - 2011-12-03, 20:02
[No subject] - by butchabay - 2011-12-06, 09:23
[No subject] - by fmronan - 2011-12-06, 11:08
[No subject] - by butchabay - 2011-12-06, 14:07
[No subject] - by `Black - 2011-12-06, 14:32
[No subject] - by butchabay - 2011-12-06, 18:40
[No subject] - by fmronan - 2011-12-06, 19:11
[No subject] - by Canozzie - 2011-12-15, 03:33
[No subject] - by butchabay - 2011-12-15, 12:20
[No subject] - by fmronan - 2011-12-15, 14:08
[No subject] - by fmronan - 2011-12-28, 10:58
[No subject] - by statious - 2011-12-29, 09:07
[No subject] - by fmronan - 2011-12-29, 17:01
[No subject] - by statious - 2011-12-29, 18:46
[No subject] - by butchabay - 2011-12-29, 18:50
[No subject] - by fmronan - 2011-12-29, 19:37
[No subject] - by dafonso - 2011-12-30, 14:55
[No subject] - by butchabay - 2012-01-03, 23:09
[No subject] - by butchabay - 2012-01-04, 10:18
[No subject] - by limeblue - 2012-01-04, 13:11
[No subject] - by Martijn - 2012-01-04, 13:46
[No subject] - by butchabay - 2012-01-04, 15:03
[No subject] - by butchabay - 2012-01-04, 15:05
[No subject] - by andzinsan - 2012-01-17, 18:51
[No subject] - by matzer - 2012-01-21, 14:04
[No subject] - by fmronan - 2012-01-21, 15:51
[No subject] - by Mudislander - 2012-01-21, 19:52
[No subject] - by keibertz - 2012-01-24, 03:16
[No subject] - by butchabay - 2012-01-24, 08:49
[No subject] - by fmronan - 2012-01-24, 12:23
[No subject] - by keibertz - 2012-01-24, 12:39
[No subject] - by fmronan - 2012-01-24, 12:56
[No subject] - by matzer - 2012-01-24, 13:16
[No subject] - by keibertz - 2012-01-24, 13:26
[No subject] - by fmronan - 2012-01-24, 14:58
[No subject] - by butchabay - 2012-01-24, 15:34
working - by Mudislander - 2012-01-24, 21:46
[No subject] - by keibertz - 2012-01-28, 17:25
[No subject] - by otcho - 2012-01-28, 18:08
[No subject] - by FrostBox - 2012-01-28, 19:14
[No subject] - by keibertz - 2012-01-28, 19:23
[No subject] - by Wanilton - 2012-02-01, 20:49
[No subject] - by FrostBox - 2012-02-02, 03:27
[No subject] - by johnmerrick - 2012-02-12, 17:47
[No subject] - by piodio - 2012-02-24, 13:20
[No subject] - by fmronan - 2012-02-24, 13:59
[No subject] - by Mudislander - 2012-02-24, 15:34
[No subject] - by piodio - 2012-02-24, 16:58
[No subject] - by Mudislander - 2012-02-24, 17:04
[No subject] - by Martijn - 2012-02-24, 17:45
[No subject] - by FrostBox - 2012-02-24, 18:28
[No subject] - by Mudislander - 2012-02-24, 23:22
[No subject] - by piodio - 2012-02-25, 08:39
[No subject] - by FrostBox - 2012-02-25, 20:07
[No subject] - by BuSHari - 2012-02-27, 01:18
[No subject] - by Deano316 - 2012-02-27, 02:12
[No subject] - by ashlar - 2012-02-27, 20:14
[No subject] - by Eisi2005 - 2012-02-29, 22:10
[No subject] - by Tight_wad - 2012-03-01, 21:18
[No subject] - by Deano316 - 2012-03-02, 17:45
[No subject] - by CutSickAss - 2012-03-03, 14:39
[No subject] - by RavenNL - 2012-03-06, 14:38
Moviesets: Greek Translation - by CutSickAss - 2012-03-17, 19:59
Re - by dedomedooo - 2013-04-01, 21:38
MovieSets error plugin.py - by odonell - 2013-04-21, 15:39
RE: [RELEASE] - by Canozzie - 2013-05-11, 13:29
Logout Mark Read Team Forum Stats Members Help
[RELEASE] MovieSets (Video) Addon - Show Movie Sets Info Sets for Skins / Skinners6