Skip to content

Instantly share code, notes, and snippets.

@df-a
Last active November 2, 2020 20:20
Show Gist options
  • Save df-a/b9482e74388f945409bd6b0588ab3743 to your computer and use it in GitHub Desktop.
Save df-a/b9482e74388f945409bd6b0588ab3743 to your computer and use it in GitHub Desktop.
Kodi for Xbox One Setup and Configuration (Working on Leia)
<!-- This goes in the profile directory. If you need to find out where it is, install the "indigo" addon and then check the logs -->
<advancedsettings version="1.0">
<video>
<excludefromscan>
<regexp>[-\._ ](extrafanart|sample|trailer|extrathumbs)[-\._ ]</regexp>
</excludefromscan>
<excludefromlisting>
<regexp>[-._ \\/](extrafanart|sample|trailer|extrathumbs)[-._ \\/]</regexp>
</excludefromlisting>
<!-- Extras: Section Start -->
<excludefromscan action="append">
<regexp>/extras/</regexp>
<regexp>[\\/]extras[\\/]</regexp>
<regexp>/featurettes/</regexp>
<regexp>[\\/]featurettes[\\/]</regexp>
</excludefromscan>
<excludetvshowsfromscan action="append">
<regexp>/extras/</regexp>
<regexp>[\\/]extras[\\/]</regexp>
<regexp>/featurettes/</regexp>
<regexp>[\\/]featurettes[\\/]</regexp>
</excludetvshowsfromscan>
<!-- Extras: Section End -->
</video>
<videolibrary>
<allitemsonbottom>false</allitemsonbottom> <!-- sorts the "*All" items at the bottom of the list when in Ascending order -->
<cleanonupdate>false</cleanonupdate> <!-- default set to false to prevent Kodi from removing items from the database while updating. -->
<usefasthash>true</usefasthash> <!-- defaults to true. Set to false in order to skip hashing based on the folders modification time. -->
<recentlyaddeditems>35</recentlyaddeditems> <!-- number of recently added items. Defaults to 25 -->
<itemseparator> / </itemseparator> <!-- separator used for multiple artists/genres in tags. Note, this is *space* *slash* *space* -->
<exportautothumbs>false</exportautothumbs> <!-- export auto-generated thumbs. Defaults to false -->
<importwatchedstate>false</importwatchedstate> <!-- import previously exported playdate and playcount from .nfo files. Defaults to false -->
<importresumepoint>false</importresumepoint> <!-- import previously exported resume point from .nfo files. Defaults to false -->
<dateadded>1</dateadded> <!-- 0 results in using the current datetime when adding a video;
1 (default) results in prefering to use the files mtime (if it's valid) and only using the file's ctime if the mtime isn't valid;
2 results in using the newer datetime of the file's mtime and ctime -->
<!-- Additional artwork to add for TV shows -->
<tvshowextraart>
<arttype>characterart</arttype>
<arttype>clearart</arttype>
<arttype>clearlogo</arttype>
<arttype>landscape</arttype>
<arttype>keyart</arttype>
</tvshowextraart>
<!-- Additional artwork to add for TV show seasons -->
<tvseasonextraart>
<arttype>landscape</arttype>
</tvseasonextraart>
<!-- Additional artwork to add for TV show episodes -->
<episodeextraart>
<arttype>fanart</arttype>
</episodeextraart>
<!-- Additional artwork to add for movies -->
<movieextraart>
<arttype>banner</arttype>
<arttype>clearart</arttype>
<arttype>clearlogo</arttype>
<arttype>discart</arttype>
<arttype>landscape</arttype>
<arttype>keyart</arttype>
</movieextraart>
<!-- Additional artwork to add for movie sets / collections -->
<moviesetextraart>
<arttype>banner</arttype>
<arttype>clearart</arttype>
<arttype>clearlogo</arttype>
<arttype>discart</arttype>
<arttype>landscape</arttype>
<arttype>keyart</arttype>
</moviesetextraart>
<!-- Additional artwork to add for musicvideos -->
<musicvideoextraart>
<arttype>banner</arttype>
<arttype>clearart</arttype>
<arttype>clearlogo</arttype>
<arttype>discart</arttype>
<arttype>landscape</arttype>
</musicvideoextraart>
<allitemsonbottom>false</allitemsonbottom> <!-- sorts the "*All" items at the bottom of the list when in Ascending order -->
<cleanonupdate>true</cleanonupdate> <!-- default set to false to prevent Kodi from removing items from the database while updating. -->
<usefasthash>true</usefasthash> <!-- defaults to true. Set to false in order to skip hashing based on the folders modification time. -->
<recentlyaddeditems>35</recentlyaddeditems> <!-- number of recently added items. Defaults to 25 -->
<itemseparator> / </itemseparator> <!-- separator used for multiple artists/genres in tags. Note, this is *space* *slash* *space* -->
<exportautothumbs>false</exportautothumbs> <!-- export auto-generated thumbs. Defaults to false -->
<importwatchedstate>false</importwatchedstate> <!-- import previously exported playdate and playcount from .nfo files. Defaults to false -->
<importresumepoint>false</importresumepoint> <!-- import previously exported resume point from .nfo files. Defaults to false -->
<dateadded>1</dateadded> <!-- 0 results in using the current datetime when adding a video;
1 (default) results in prefering to use the files mtime (if it's valid) and only using the file's ctime if the mtime isn't valid;
2 results in using the newer datetime of the file's mtime and ctime -->
<!-- Additional artwork to add for TV shows -->
<tvshowextraart>
<arttype>characterart</arttype>
<arttype>clearart</arttype>
<arttype>clearlogo</arttype>
<arttype>landscape</arttype>
<arttype>keyart</arttype>
</tvshowextraart>
<!-- Additional artwork to add for TV show seasons -->
<tvseasonextraart>
<arttype>landscape</arttype>
</tvseasonextraart>
<!-- Additional artwork to add for TV show episodes -->
<episodeextraart>
<arttype>fanart</arttype>
</episodeextraart>
<!-- Additional artwork to add for movies -->
<movieextraart>
<arttype>banner</arttype>
<arttype>clearart</arttype>
<arttype>clearlogo</arttype>
<arttype>discart</arttype>
<arttype>landscape</arttype>
<arttype>keyart</arttype>
</movieextraart>
<!-- Additional artwork to add for movie sets / collections -->
<moviesetextraart>
<arttype>banner</arttype>
<arttype>clearart</arttype>
<arttype>clearlogo</arttype>
<arttype>discart</arttype>
<arttype>landscape</arttype>
<arttype>keyart</arttype>
</moviesetextraart>
<!-- Additional artwork to add for musicvideos -->
<musicvideoextraart>
<arttype>banner</arttype>
<arttype>clearart</arttype>
<arttype>clearlogo</arttype>
<arttype>discart</arttype>
<arttype>landscape</arttype>
</musicvideoextraart>
</videolibrary>
</advancedsettings>

Make AdvancedSettings.xml on pc , then rename it to AdvancedSettings.mp3, accept about file extensions. Copy to USB, plug into xbox and use file manager to copy AdvancedSettings.mp3 to the correct location. Then use file manager to rename it back to AdvancedSettings.xml

Where to put it?
Have a look into the log file, there you'll see to which real path special://profile is mapped. The advancedsettings.xml is loaded from that directory.

How to access the log file?
Install "Indigo" addon.

SOLVED:  Go into MOVIES, select ADD at the bottom, when the main pane comes up select the empty name box at the top (Not the side options).

Here type

win-lib://removable/D/folder name  

("folder name" being the name of the folder on your external drive with the movies in)

The name at the bottom of the box will be the same name as your movie folder, click OK

Then another box will appear. Here tell it that it's a movie folder, click on "film is in separate folders"  (if they are)

Click OK

Then it will scan and update your library.

Do the same for TV Shows and you are in business!

the right path is :

win-lib://removable/D://

(with the double // ) !!! Haven't tested it with spaces in folder names, best avoid until tested.
Examples:
In the root of the connected drive there is a folder Media which contains two subfolders, Movies and Shows:
win-lib://removable/D://Media/Movies
win-lib://removable/D://Media/Shows

To see why these paths are assigned like this, try going in the Kodie File Manager and access the external storage.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment