Skip to content

Sample advancedsettings.xml

classicjazz edited this page Jul 11, 2017 · 13 revisions

Updated for SPMC 17

Overview

The following sample advancedsettings.xml showcases a number of advanced SPMC capabilities.

You should only use the settings appropriate for your needs. All of these settings are optional! Some of these settings assume you have a high-powered CPU and fast network (GigE or Wireless AC).

Sample settings include:

  • hiding the splash screen
  • disabling the double back on home to minimize
  • using UHD (4K) resolution jacket art (thumbnails) and wallpaper (only valuable if also running GUI in 4K resolution) and improved image scaling algorithm for image resizing/caching
  • auto-removing a video from "in progress" after it's 90% complete
  • hiding references to DVDs
  • enabling high quality scalers for higher quality video output
  • using regular expressions to hide certain files (e.g. Synology NAS indexing files) from SPMC (only valuable if you need to hide specific files)
  • using advanced networking settings for a larger local buffer
  • using multi-room video playback (including SQL settings and resume points)
  • tweaking certain UX settings such as "all items" and "empty series"
  • automatically cleaning the library after every library update
  • silently ignoring scanner errors

SPMC Settings

Create a text file called advancedsettings.xml and place it in your userdata folder.

Replace the host, user and pass field sample information below with your personal configuration.


<advancedsettings>
   <splash>no</splash>
   <disableminimize>true</disableminimize>
   <fanartres>2160</fanartres>
   <imageres>2160</imageres>
   <imagescalingalgorithm>lanczos</imagescalingalgorithm>
   <playcountminimumpercent>90</playcountminimumpercent>
   <nodvdrom>true</nodvdrom>
	<video>
	    <enablehighqualityhwscalers>true</enablehighqualityhwscalers>
		<excludefromscan> <!-- Excludes Synology index files from scan  -->
			<regexp>@eaDir</regexp>
			<regexp>@EADIR</regexp>
		</excludefromscan>
		<excludefromlisting> <!-- Excludes Synology index files from listing  -->
			<regexp>@eaDir</regexp>
			<regexp>@EADIR</regexp>
		</excludefromlisting>
	</video>
	<audio>
		<excludefromscan> <!-- Excludes Synology index files from scan  -->
			<regexp>@eaDir</regexp>
			<regexp>@EADIR</regexp>
		</excludefromscan>
		<excludefromlisting> <!-- Excludes Synology index files from listing  -->
			<regexp>@eaDir</regexp>
			<regexp>@EADIR</regexp>
		</excludefromlisting>
	</audio>
	<cache> <!-- new settings for v17 -->
	    <memorysize>278921216</memorysize>  <!-- uses about 800MB or RAM overall -->
	    <buffermode>1</buffermode>  <!-- Buffer all filesystems, both internet and local  -->
	    <readfactor>20</readfactor> <!-- increase the fill-rate of the cache (assumes GigE / Wireless AC connection -->
	</cache>
    <videodatabase>
        <type>mysql</type>
        <host>xxxx</host>
        <port>3306</port>
        <user>yyyy</user>
        <pass>zzzz</pass>
    </videodatabase> 
    <musicdatabase>
        <type>mysql</type>
        <host>xxxx</host>
        <port>3306</port>
        <user>yyyy</user>
        <pass>zzzz</pass>
    </musicdatabase>
	<videolibrary>
		<importwatchedstate>true</importwatchedstate>
		<importresumepoint>true</importresumepoint>
  		<cleanonupdate>true</cleanonupdate> <!-- Also clean library during library update -->
		<hideallitems>true</hideallitems> <!-- removes the "*All" items from the video library -->
   		<hideemptyseries>true</hideemptyseries>  <!-- hide empty series in the video library -->
	</videolibrary>
	<videoscanner>
   		<ignoreerrors>true</ignoreerrors> <!-- Silently ignore errors while scanning videos. -->
	</videoscanner>
</advancedsettings>