User Tools

Site Tools


kodi:kodi-config

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revisionPrevious revision
Next revision
Previous revision
kodi:kodi-config [2022/03/14 22:30] – [Music Video scraper] Wuffkodi:kodi-config [2025/09/18 15:38] (current) Wuff
Line 340: Line 340:
 sudo chmod 755 /etc/rc.local sudo chmod 755 /etc/rc.local
 </code> </code>
 +
 +===== Smart Playlists =====
 +
 +Smart playlists are xsp files stored in '' /userdata/playlists/music''
 +
 +Example
 +<code - 80-90s.xsp>
 +<?xml version="1.0" encoding="UTF-8" standalone="yes" ?>
 +<smartplaylist type="songs">
 +    <name>80-90s</name>
 +    <match>all</match>
 +    <rule field="year" operator="greaterthan">
 +        <value>1979</value>
 +    </rule>
 +    <rule field="year" operator="lessthan">
 +        <value>2000</value>
 +    </rule>
 +    <rule field="time" operator="greaterthan">
 +        <value>01:00</value>
 +    </rule>
 +    <rule field="genre" operator="doesnotcontain">
 +        <value>Acapella</value>
 +        <value>Acid</value>
 +        <value>Acid Jazz</value>
 +        <value>Celtic</value>
 +        <value>Comedy</value>
 +        <value>Dance</value>
 +        <value>Dance-Pop</value>
 +        <value>Dance/Electronic</value>
 +        <value>Dancehall</value>
 +        <value>Deep House</value>
 +        <value>Drum And Bass</value>
 +        <value>Dubstep</value>
 +        <value>Electronic</value>
 +        <value>Electronica</value>
 +        <value>Electropop</value>
 +        <value>Eurodance</value>
 +        <value>Happy Hardcore</value>
 +        <value>Hard Trance</value>
 +        <value>Jazz</value>
 +        <value>Neue Deutsche Welle</value>
 +        <value>Opera</value>
 +        <value>Progressive House</value>
 +        <value>Progressive Metal</value>
 +        <value>Progressive Rock</value>
 +        <value>Psychedelic Rock</value>
 +        <value>Rave</value>
 +        <value>Reggae</value>
 +        <value>Reggaeton</value>
 +        <value>Schlager</value>
 +        <value>Ska</value>
 +        <value>Techno</value>
 +        <value>Thrash Metal</value>
 +        <value>Trance</value>
 +        <value>Vocal</value>
 +        <value>World/Jazz</value>
 +    </rule>
 +    <rule field="title" operator="doesnotcontain">
 +        <value>christmas</value>
 +    </rule>
 +    <rule field="title" operator="doesnotcontain">
 +        <value>xmas</value>
 +    </rule>
 +    <rule field="path" operator="doesnotcontain">
 +        <value>christmas</value>
 +    </rule>
 +    <rule field="path" operator="doesnotcontain">
 +        <value>xmas</value>
 +    </rule>
 +    <limit>100</limit>
 +    <order direction="ascending">random</order>
 +</smartplaylist>
 +</code>
 +
 +
 +===== Keyboard shortcuts =====
 +https://kodi.wiki/view/Keymap
 +
 +.kodi/userdata/keymaps/keyboard.xml
 +<code>
 +    <keymap>
 +      <global>
 +        <keyboard>
 +          <1>ReloadSkin()</1>
 +        </keyboard>
 +      </global>
 +    </keymap> 
 +</code>
 +
 +===== Clock in music =====
 +
 +{{:kodi:kodi-music-vis-clock.jpg?nolink&400|}}
 +
 +.kodi/addons/skin.estuary.modv2/xml/MusicVisualization.xml
 +Add before the last %%</controls>%% at end
 +<code>
 +<!-- Start - Clock in Music Vis -->
 +        <control type="image">
 +            <left>0</left>
 +            <top>0</top>
 +            <width>110%</width>
 +            <height>160</height>
 +            <texture colordiffuse="$VAR[Bars_Opacity]">frame/osdfade.png</texture>
 +            <animation effect="fade" start="100" end="0" time="300" condition="Window.Next(screencalibration)">WindowClose</animation>
 +            <visible>!Player.ShowInfo</visible>
 +        </control>
 +        <control type="grouplist">
 +            <top>0</top>
 +            <align>right</align>
 +            <right>20</right>
 +            <height>200</height>
 +            <orientation>horizontal</orientation>
 +            <width>1270</width>
 +            <itemgap>10</itemgap>
 +            <visible>!Window.IsVisible(extendedprogressdialog) + !Window.IsActive(fullscreenvideo)</visible>
 +            <animation effect="fade" time="150">VisibleChange</animation>
 +            <visible>!Player.ShowInfo</visible>
 +            <control type="group">
 +                <width>600</width>
 +                <animation effect="fade" time="200">VisibleChange</animation>
 +                <control type="grouplist">
 +                    <left>-75</left>
 +                    <orientation>horizontal</orientation>
 +                    <height>38</height>
 +                    <top>14</top>
 +                    <align>right</align>
 +                    <width>660</width>
 +                    <itemgap>5</itemgap>
 +                    <usecontrolcoords>true</usecontrolcoords>
 +                    <control type="image">
 +                        <top>7</top>
 +                        <width>1</width>
 +                        <height>23</height>
 +                        <texture />
 +                        <visible>Player.HasAudio + !Player.Paused</visible>
 +                    </control>
 +                    <control type="image">
 +                        <top>4</top>
 +                        <width>32</width>
 +                        <height>32</height>
 +                        <aspectratio>keep</aspectratio>
 +                        <texture colordiffuse="$VAR[SkinColorVar]">$VAR[NowPlayingIconVar]</texture>
 +                        <visible>![Player.HasAudio + !Player.Paused]</visible>
 +                    </control>
 +                    <control type="label">
 +                        <label>$INFO[Player.Title]</label>
 +                        <font>font27</font>
 +                        <shadowcolor>$VAR[ShadowColorVar]</shadowcolor>
 +                        <height>35</height>
 +                        <width min="1" max="555">auto</width>
 +                        <scroll>true</scroll>
 +                    </control>
 +                </control>
 +                <control type="label" id="7700">
 +                    <label>$VAR[NowPlayingSublabelVar]</label>
 +                    <left>5</left>
 +                    <top>48</top>
 +                    <font>font12</font>
 +                    <textcolor>grey</textcolor>
 +                    <shadowcolor>$VAR[ShadowColorVar]</shadowcolor>
 +                    <height>25</height>
 +                    <width>580</width>
 +                    <align>right</align>
 +                    <scroll>true</scroll>
 +                </control>
 +            </control>
 +            <control type="label">
 +                <animation effect="fade" start="100" end="0" time="300" condition="Window.Next(screencalibration)">WindowClose</animation>
 +                <animation effect="slide" end="0,-10" time="0" condition="String.IsEqual(Skin.Font,Arial)">Conditional</animation>
 +                <font>font_clock</font>
 +                <shadowcolor>$VAR[ShadowColorVar]</shadowcolor>
 +                <height>200</height>
 +                <right>203</right>
 +                <width>auto</width>
 +                <label>[B]$INFO[System.Time][/B]</label>
 +                <visible>!Player.ShowInfo</visible>
 +            </control>
 +        </control>
 +<!-- End - Clock in Music Vis -->
 +</code>
 +
 +===== Screenshot =====
 +
 +Stored in Screenshot folder configured in debug settings: https://kodi.wiki/view/Settings/System/Logging#Screenshot_folder
 +
 +Keyboard shortcut Ctrl-s or remote command:
 +<code>
 +kodi-send --action="TakeScreenshot"
 +</code>
 +
 +===== Estuary Mod 2 NG adjustments =====
 +
 +Auto focus first menu item in skin settings:
 +<code>
 +sed -i.bak 's/<defaultcontrol always="true">9000<\/defaultcontrol>/<defaultcontrol always="true">9000<\/defaultcontrol>/' ~/.kodi/addons/skin.estuary.modv2/xml/SkinSettings.xml
 +</code>
 +
 +
 +Exclude in-progress movies from unwatched list:
 +<code>
 +sed -i.bak '/<\/rule>/a\ \ \ \ <rule field="inprogress" operator="false" \/>' ~/.kodi/addons/skin.estuary.modv2/playlists/unwatched_movies.xsp
 +</code>
 +
 +Reduce font size of CPU usage on Hardware screen for 12 core system
 +<code>
 +sed -i.bak '1269s/font14/font12/' ~/.kodi/addons/skin.estuary.modv2/xml/Home.xml
 +</code>
 +
 +Add option to close Video OSD immediately when resuming:
 +<code>
 +cd ~/.kodi/addons/skin.estuary.modv2
 +
 +
 +sed -i.bak 's/<onclick condition="String.IsEqual(Skin.String(autoclose_osd),31578)">Skin.SetString(autoclose_osd,31580)<\/onclick>/<onclick condition="String.IsEqual(Skin.String(autoclose_osd),31579)">Skin.SetString(autoclose_osd,31580)<\/onclick>/' xml/SkinSettings.xml
 +
 +sed -i '/<onclick condition="String.IsEqual(Skin.String(autoclose_osd),31579)">Skin.SetString(autoclose_osd,31580)<\/onclick>/a\ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ <onclick condition="String.IsEqual(Skin.String(autoclose_osd),31578)">Skin.SetString(autoclose_osd,31579)<\/onclick>' xml/SkinSettings.xml
 +
 +sed -i 's/!String.IsEqual(Skin.String(autoclose_osd),31578) + /!String.IsEqual(Skin.String(autoclose_osd),31578) + !String.IsEqual(Skin.String(autoclose_osd),31579) + /' xml/SkinSettings.xml
 +
 +sed -i.bak '/Skin.String(autoclose_osd),31578)">\$LOCALIZE\[31578\]<\/value>/a\ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ <value condition="String.IsEqual(Skin.String(autoclose_osd),31579)">$LOCALIZE[31579]<\/value>' xml/Variables.xml
 +
 +sed -i.bak "/msgctxt \"#31579\"/imsgctxt \"#31579\"\nmsgid \"0 seconds\"\nmsgstr \"\"\n\n" language/resource.language.en_gb/strings.po
 +
 +# other closing times defined in xml/Custom_1110_CloseVideoOSD.xml
 +</code>
 +
 +Move next episodes to watch to top. Install embuary helper addon (through skin settings)
 +in Home.xml move this:
 +<code>
 +                                <include content="WidgetNextWatchEpisodes" condition="System.AddonIsEnabled(script.embuary.helper) + Library.HasContent(tvshows) + !Skin.HasSetting(hide_nextepisodes) + Skin.HasSetting(HomeBanner)">
 +                                        <param name="content_path" value="plugin://script.embuary.helper?info=getnextup"/>
 +                                        <param name="widget_header" value="$LOCALIZE[31212]"/>
 +                                        <param name="widget_header_focus" value="$INFO[Container(6700).ListItem.TVShowTitle, | , - ]$INFO[Container(6700).ListItem.Season,,x]$INFO[Container(6700).ListItem.Episode,,. ]$INFO[Container(6700).ListItem.Title]$INFO[Container(6700).ListItem.Year, (,)]"/>
 +                                        <param name="browse" value="never"/>
 +                                        <param name="widget_target" value="videos"/>
 +                                        <param name="list_id" value="6700"/>
 +                                </include>
 +                                <include content="WidgetNextWatchEpisodesBanner" condition="System.AddonIsEnabled(script.embuary.helper) + Library.HasContent(tvshows) + !Skin.HasSetting(hide_nextepisodes) + !Skin.HasSetting(HomeBanner)">
 +                                        <param name="content_path" value="plugin://script.embuary.helper?info=getnextup"/>
 +                                        <param name="widget_header" value="$LOCALIZE[31212]"/>
 +                                        <param name="widget_header_focus" value="$INFO[Container(67001).ListItem.TVShowTitle, | , - ]$INFO[Container(67001).ListItem.Season,,x]$INFO[Container(67001).ListItem.Episode,,. ]$INFO[Container(67001).ListItem.Title]$INFO[Container(67001).ListItem.Year, (,)]"/>
 +                                        <param name="widget_target" value="videos"/>
 +                                        <param name="browse" value="never"/>
 +                                        <param name="list_id" value="67001"/>
 +                                </include>
 +</code>
 +
 +just under:
 +<code>
 +                                <include content="WidgetListCategoriesSmall" condition="Library.HasContent(tvshows) + !Skin.HasSetting(hide_tvshowscategory)">
 +                                        <param name="widget_header" value="$LOCALIZE[31148]"/>
 +                                        <param name="list_id" value="69001"/>
 +                                        <param name="visible" value="Skin.HasSetting(UseSmallerCategories)" />
 +                                </include>
 +</code>
 +
kodi/kodi-config.1647297034.txt.gz · Last modified: (external edit)