Permalink
Browse files

more documentary stuff

1 parent 5103ae0 commit a300d7747aeda7c47318cc256488120348cd7b9f @mad-max committed Feb 16, 2012
View
@@ -2,7 +2,7 @@
<defaultcontrol always="true">9000</defaultcontrol>
<onload condition="Window.Previous(startup)+Skin.HasSetting(customstartupfocus)">Control.Move(9000,$INFO[Skin.String(CustomFocusOffset)])</onload>
<onload condition="Skin.HasSetting(watchlist)">RunScript(script.watchlist,movies=true&amp;episodes=true&amp;albums=true&amp;limit=10)</onload>
- <onload>XBMC.RunScript(script.randomandlastitems,limit=3,method=Last,playlist=special://skin/playlists/Doku.xsp,menu=Menu1)</onload>
+ <onload condition="!Skin.HasSetting(HomeMenuNoDocuButton)">XBMC.RunScript(script.randomandlastitems,limit=3,method=Last,playlist=special://skin/playlists/Doku.xsp,menu=Menu1)</onload>
<allowoverlay>no</allowoverlay>
<controls>
<control type="multiimage">
@@ -1115,12 +1115,12 @@
<visible>Skin.HasSetting(HomeMenuNoMoviesButton) + Library.HasContent(Movies)</visible>
</item>
<item id="27">
- <description>HD Movies</description>
+ <description>Dokumentary</description>
<label>Dokus</label>
- <icon>special://skin/backgrounds/hdmovies.jpg</icon>
- <thumb>$INFO[Skin.String(Home_Custom_Back_HD_Folder)]</thumb>
+ <icon>special://skin/backgrounds/documentary.jpg</icon>
+ <thumb>$INFO[Skin.String(Home_Custom_Back_Docu_Folder)]</thumb>
<onclick>XBMC.ActivateWindow(10025,special://skin/playlists/Doku.xsp,return)</onclick>
- <visible>!Skin.HasSetting(HomeMenuNoHDMoviesButton) + Library.HasContent(Movies)</visible>
+ <visible>!Skin.HasSetting(HomeMenuNoDocuButton) + Library.HasContent(Movies)</visible>
</item>
<item id="444">
<description>Custom FAV Five</description>
@@ -306,7 +306,7 @@
<posy>220</posy>
<height>20</height>
<width>540</width>
- <label>40032</label>
+ <label>Neue Dokumentationen</label>
<align>center</align>
<aligny>center</aligny>
<font>font12_title</font>
@@ -532,6 +532,20 @@
<texturenofocus>MenuItemNF.png</texturenofocus>
<enable>Library.HasContent(Movies)</enable>
</control>
+ <control type="radiobutton" id="242">
+ <description>Hide HDMovies Button</description>
+ <width>750</width>
+ <height>40</height>
+ <font>font13</font>
+ <textcolor>grey2</textcolor>
+ <focusedcolor>white</focusedcolor>
+ <label>$LOCALIZE[31111] - Documentary [COLOR=grey3] ($LOCALIZE[20314])[/COLOR]</label>
+ <onclick>Skin.ToggleSetting(HomeMenuNoDocuButton)</onclick>
+ <selected>Skin.HasSetting(HomeMenuNoDocuButton)</selected>
+ <texturefocus>MenuItemFO.png</texturefocus>
+ <texturenofocus>MenuItemNF.png</texturenofocus>
+ <enable>Library.HasContent(Movies)</enable>
+ </control>
<control type="radiobutton" id="223">
<description>Hide TV Shows Button</description>
<width>750</width>
@@ -820,6 +834,13 @@
<onclick>-</onclick>
<icon>special://skin/backgrounds/hdmovies.jpg</icon>
<thumb>$INFO[Skin.String(Home_Custom_Back_HD_Folder)]</thumb>
+ </item>
+ <item id="57">
+ <label>Dokus</label>
+ <label2>Home_Custom_Back_Docu_Folder</label2>
+ <onclick>-</onclick>
+ <icon>special://skin/backgrounds/documentary.jpg</icon>
+ <thumb>$INFO[Skin.String(Home_Custom_Back_Docu_Folder)]</thumb>
</item>
<item id="2">
<label>2</label>
View
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
View
@@ -0,0 +1,6 @@
+<?xml version="1.0" encoding="UTF-8" standalone="yes" ?>
+<smartplaylist type="movies">
+ <name>Dokumentationen</name>
+ <match>all</match>
+ <rule field="genre" operator="contains">umenta</rule>
+</smartplaylist>

7 comments on commit a300d77

Contributor

milesbenson replied Feb 20, 2012

This is a nice one! However, i'd suggest to create a NoDoku.xsp aswell and extend the Movies button functionality with it.

As i'm unable to explain this correctly, please see my edited part (i use it for tvshows) here, i guess you'll see what i mean:

                <item id="11">
                    <label>20343</label>
                    <onclick>ActivateWindow(Videos,TVShowTitles,return)</onclick>
                    <icon>special://skin/backgrounds/videos.jpg</icon>
                    <thumb>$INFO[Skin.String(Home_Custom_Back_TVShow_Folder)]</thumb>
                    <visible>Skin.HasSetting(HomeMenuNoTVShowsButton) + Library.HasContent(TVShows) + Skin.HasSetting(HomeMenuNoDocubutton)</visible>
                </item>
                <item id="11">
                    <label>20343</label>
                    <onclick>XBMC.ActivateWindow(10025,special://skin/playlists/NoDoku.xsp,return)</onclick>
                    <icon>special://skin/backgrounds/videos.jpg</icon>
                    <thumb>$INFO[Skin.String(Home_Custom_Back_TVShow_Folder)]</thumb>
                    <visible>Skin.HasSetting(HomeMenuNoTVShowsButton) + Library.HasContent(TVShows) + !Skin.HasSetting(HomeMenuNoDocubutton)</visible>
                </item>
                <!-- doku --> 
                <item id="12">
                    <label>Dokus</label>
                    <onclick>XBMC.ActivateWindow(10025,special://skin/playlists/Doku.xsp,return)</onclick>
                    <icon>special://skin/backgrounds/documentary.jpg</icon>
                    <thumb>$INFO[Skin.String(Home_Custom_Back_Docu_Folder)]</thumb>
                    <visible>!Skin.HasSetting(HomeMenuNoDocuButton) + Library.HasContent(Movies)</visible>
                </item>

The NoDoku.xsp is same as the Doku.xsp, but contains a "doesnotcontain" instead of "contains"

So with Doku on home enabled, i see my documentarys when clicking on doku button, but NOT in tv-shows. If "hide doku on home" is enabled, the docmentarys are shown in TV-Shows again and the doku button is hidden. It's not perfect as on "hide tv-shows on home" but doku is shown the documentary is still listed in both sections, but i guess it's a push in the right direction ;)

Owner

mad-max replied Feb 20, 2012

Hey Ben,

sorry didn't get the point...what do you mean with tv shows? The script currently supports only movies?!?!
This procedure only is possible if your documentary is categorized as "movie"...

cheers,
mad-max

Contributor

milesbenson replied Feb 20, 2012

Yes i know. I implented this commit but noticed that the Documentary Movies do show up in "Dokus" and also in "Movies". So with a small addition you could hide Docus from Movies when Dokus is shown on Home and bring them back into Movies when Dokus on home is hidden.
If that already is the case than please ignore what i said as then something was wrong with my implentation (rip-off) of this commit.

I've just re-written your commit to tv-shows as i own more tv-show documentaries then movie docus but the behaviour should be the same.

Owner

mad-max replied Feb 20, 2012

Ok, I got the point...
For that reason I have made the possibility to have a recently added widget on one of the custom playlists...
If a user wishes to have it seperated, then he can create a playlist himself, name it movies and he is good to go...
See here:
a34f22f

IMHO this means more flexibility for the users as not every user wants to seperate it...
I know you do, and you know that I do, but this needn't be the majority :-)

BTW: If you're interested in stuff like that, you might watch the branches within the next days...
I decided to create a new branch and rip out some features that I do not use...and will do some minor modifications...just as you proposed...this will be for personal use, but maybe it fits your needs, too...

Owner

mad-max replied Feb 20, 2012

You wrote:
""I've just re-written your commit to tv-shows as i own more tv-show documentaries then movie docus but the behaviour should be the same""

Do you get the recently added populated with tv shows?
As mike said, this is not possible atm

Contributor

milesbenson replied Feb 20, 2012

Aah nice, didnt get that yet, thx. Of course i'll watch your branches but time is pretty rare at the moment. But i'll keep an eye on that.

No i do not use recently added at all as my ATV2 is underpowered and i try to use as less as possible.. But good thought, would not have noticed that either. All the modificiations i do are to fit my girlfriends needs, thats why i am only able to use your skin on my MacBook at the moment. I willl push her soon, i promise ;)

Owner

mad-max replied Feb 20, 2012

""I willl push her soon, i promise ;)""

:-D

Please sign in to comment.