Add user option for removing recently added content

This commit is contained in:
theDeadMan 2018-07-18 21:56:20 +01:00
parent 8360d3a81a
commit 33fc24101e
8 changed files with 78 additions and 26 deletions

View File

@ -231,6 +231,30 @@
<label>31220</label>
<onclick>Skin.ToggleSetting(disableExtendedFanart)</onclick>
<selected>Skin.HasSetting(disableExtendedFanart)</selected>
</control>
<control type="radiobutton" id="18">
<visible>Container(8000).Hasfocus(1)</visible>
<description>Disable recently added Movies</description>
<width>14-col</width>
<label>31238</label>
<onclick>Skin.ToggleSetting(disableRecentMovies)</onclick>
<selected>Skin.HasSetting(disableRecentMovies)</selected>
</control>
<control type="radiobutton" id="19">
<visible>Container(8000).Hasfocus(1)</visible>
<description>Disable recently added TVShows</description>
<width>14-col</width>
<label>31239</label>
<onclick>Skin.ToggleSetting(disableRecentTVShows)</onclick>
<selected>Skin.HasSetting(disableRecentTVShows)</selected>
</control>
<control type="radiobutton" id="20">
<visible>Container(8000).Hasfocus(1)</visible>
<description>Disable recently added Albums</description>
<width>14-col</width>
<label>31240</label>
<onclick>Skin.ToggleSetting(disableRecentAlbums)</onclick>
<selected>Skin.HasSetting(disableRecentAlbums)</selected>
</control>
</control>
</control>

View File

@ -3,7 +3,7 @@
<!--Album browser-->
<include name="musicalbum">
<control type="group" id="9125">
<visible>$EXP[isMusicAlbum] + !$EXP[isMusicArtistCatalogue]</visible>
<visible>$EXP[isMusicAlbum] + !$EXP[isMusicArtistCatalogue] + !Skin.HasSetting(disableRecentAlbums)</visible>
<animation type="Conditional" condition="!controlgroup(9125).hasfocus">
<effect type="slide" start="0,0" end="0,-200" time="200"/>
<effect type="fade" start="100" end="0" time="200"/>
@ -20,7 +20,7 @@
<texture>special://skin/extras/backgrounds/music.jpg</texture>
<colordiffuse>FF333333</colordiffuse>
<aspectratio aligny="top">scale</aspectratio>
<fadetime>200</fadetime>
<fadetime>300</fadetime>
</control>
<!--quick link selector-->
<control type="list" id="9123">

View File

@ -3,7 +3,7 @@
<include name="movies">
<control type="group">
<control type="group" id="9101">
<visible>$EXP[isMovie] + !string.contains(container.folderpath,playlists)</visible>
<visible>$EXP[isMovie] + !string.contains(container.folderpath,playlists) + !Skin.HasSetting(disableRecentMovies)</visible>
<animation type="Conditional" condition="!controlgroup(9101).hasfocus">
<effect type="slide" start="0,0" end="0,-200" time="200"/>
<effect type="fade" start="100" end="0" time="200"/>
@ -20,6 +20,7 @@
<texture fallback="colors/black.png">$INFO[container(9103).listitem.art(fanart)]</texture>
<colordiffuse>FF333333</colordiffuse>
<aspectratio>scale</aspectratio>
<fadetime>300</fadetime>
</control>
<!--quick link selector-->
<control type="list" id="9102">

View File

@ -3,7 +3,7 @@
<include name="tvshows">
<control type="group">
<control type="group" id="9201">
<visible>$EXP[isTVShow] + !string.contains(container.folderpath,playlists)</visible>
<visible>$EXP[isTVShow] + !string.contains(container.folderpath,playlists) + !Skin.HasSetting(disableRecentTVShows)</visible>
<animation type="Conditional" condition="!controlgroup(9201).hasfocus">
<effect type="slide" start="0,0" end="0,-200" time="200"/>
<effect type="fade" start="100" end="0" time="200"/>
@ -20,6 +20,7 @@
<texture>$INFO[container(9203).listitem.art(fanart)]</texture>
<colordiffuse>FF333333</colordiffuse>
<aspectratio>scale</aspectratio>
<fadetime>300</fadetime>
</control>
<!--quick link selector-->
<control type="list" id="9202">

View File

@ -12,7 +12,7 @@
</extension>
<extension point="xbmc.addon.metadata">
<summary lang="en">A skin for Kodi by theDeadMan</summary>
<description lang="en">Built for the living room, Pellucid is a clean and simple kodi experience designed for maximum usability and minimum fuss. Skin Shortcuts addon support is available for full menu customisation.</description>
<description lang="en">Built for the living room, Pellucid is a clean and simple kodi experience designed for maximum usability and minimum fuss. Skin Shortcuts addon support is available for full menu customisation. With thanks to Marco "Dadebue" Debus for the homescreen photography.</description>
<platform>all</platform>
<license>Creative Commons Attribution-Noncommercial-Share Alike 3.0</license>
<forum>http://forum.kodi.tv/forumdisplay.php?fid=267</forum>

View File

@ -31,10 +31,8 @@
- [COMPLETE] GameOSD.xml
- [COMPLETE] Adjust alignment of home menu items based on item count
- [NEW] Additional wallpapers (Thanks Dadebue)
- [NEW] USER OPTION: Disable recently added content for movies, tvshows and music
- USER OPTION: Disable recently added
- Rework spotify addon presentation
- check controls for new window: MyGames.xml
- Screenshots etc need updating

View File

@ -976,3 +976,15 @@ msgstr ""
msgctxt "#31237"
msgid "Results for"
msgstr ""
msgctxt "#31238"
msgid "Disable recently added section for Movies"
msgstr ""
msgctxt "#31239"
msgid "Disable recently added section for TV Shows"
msgstr ""
msgctxt "#31240"
msgid "Disable recently added section for Albums"
msgstr ""

View File

@ -10,32 +10,43 @@
<condition>system.hasaddon(script.globalsearch)</condition>
<action>::ACTION::</action>
</override>
<override action="ActivateWindow(Videos,videodb://movies/titles/)" group="mainmenu">
<condition>!Skin.HasSetting(disableRecentMovies)</condition>
<action>::ACTION::</action>
<action>control.setfocus(9103,0,absolute)</action>
</override>
<override action="ActivateWindow(Videos,videodb://movies/titles/)" group="mainmenu">
<condition>Skin.HasSetting(disableRecentMovies)</condition>
<action>::ACTION::</action>
</override>
<override action="ActivateWindow(Videos,videodb://movies/titles/)" group="videosubmenu">
<condition>!window.isactive(videos) + !Skin.HasSetting(disableRecentMovies)</condition>
<action>::ACTION::</action>
<action>control.setfocus(9103,0,absolute)</action>
</override>
<override action="ActivateWindow(Videos,videodb://movies/titles/)" group="videosubmenu">
<condition>!window.isactive(videos)</condition>
<action>::ACTION::</action>
<action>control.setfocus(9103,0,absolute)</action>
</override>
<override action="ActivateWindow(Videos,videodb://movies/titles/)" group="videosubmenu">
<condition>window.isactive(videos)</condition>
<condition>window.isactive(videos) + !Skin.HasSetting(disableRecentMovies)</condition>
<action>Container.Update(videodb://movies/titles/)</action>
<action>control.setfocus(9103,0,absolute)</action>
</override>
<override action="ActivateWindow(Videos,videodb://tvshows/titles/)" group="mainmenu">
<condition>!Skin.HasSetting(disableRecentTVShows)</condition>
<action>::ACTION::</action>
<action>control.setfocus(9203,0,absolute)</action>
</override>
<override action="ActivateWindow(Videos,videodb://tvshows/titles/)" group="mainmenu">
<condition>Skin.HasSetting(disableRecentTVShows)</condition>
<action>::ACTION::</action>
</override>
<override action="ActivateWindow(Videos,videodb://tvshows/titles/)" group="videosubmenu">
<condition>!window.isactive(videos) + !Skin.HasSetting(disableRecentTVShows)</condition>
<action>::ACTION::</action>
<action>control.setfocus(9203,0,absolute)</action>
</override>
<override action="ActivateWindow(Videos,videodb://tvshows/titles/)" group="videosubmenu">
<condition>!window.isactive(videos)</condition>
<action>::ACTION::</action>
<action>control.setfocus(9203,0,absolute)</action>
</override>
<override action="ActivateWindow(Videos,videodb://tvshows/titles/)" group="videosubmenu">
<condition>window.isactive(videos)</condition>
<condition>window.isactive(videos) + !Skin.HasSetting(disableRecentTVShows)</condition>
<action>Container.Update(videodb://tvshows/titles/)</action>
<action>control.setfocus(9203,0,absolute)</action>
</override>
@ -50,16 +61,21 @@
</override>
<override action="ActivateWindow(Music,musicdb://albums/)" group="mainmenu">
<condition>!Skin.HasSetting(disableRecentAlbums)</condition>
<action>::ACTION::</action>
<action>control.setfocus(9998,0,absolute)</action>
</override>
<override action="ActivateWindow(Music,musicdb://albums/)" group="mainmenu">
<condition>Skin.HasSetting(disableRecentAlbums)</condition>
<action>::ACTION::</action>
</override>
<override action="ActivateWindow(Music,musicdb://albums/)" group="musicsubmenu">
<condition>!window.isactive(music) + !Skin.HasSetting(disableRecentAlbums)</condition>
<action>::ACTION::</action>
<action>control.setfocus(9998,0,absolute)</action>
</override>
<override action="ActivateWindow(Music,musicdb://albums/)" group="musicsubmenu">
<condition>!window.isactive(music)</condition>
<action>::ACTION::</action>
<action>control.setfocus(9998,0,absolute)</action>
</override>
<override action="ActivateWindow(Music,musicdb://albums/)" group="musicsubmenu">
<condition>window.isactive(music)</condition>
<condition>window.isactive(music) + !Skin.HasSetting(disableRecentAlbums)</condition>
<action>Container.Update(musicdb://albums/)</action>
<action>control.setfocus(9998,0,absolute)</action>
</override>