Skip to content

Instantly share code, notes, and snippets.

@romanr
Created November 21, 2022 14:12
Show Gist options
  • Save romanr/cb1a8f0b183673daf2a1fa2992ec43d5 to your computer and use it in GitHub Desktop.
Save romanr/cb1a8f0b183673daf2a1fa2992ec43d5 to your computer and use it in GitHub Desktop.
Make Kodi (Android) hide @eadir supposed-to-be-hidden folders. This is specific to Synology NAS and NFS sharing.

Make Kodi hide @Eadir supposed-to-be-hidden folders. This is specific to Synology NAS and NFS sharing.

Why NFS nad not SMB? According to tests it's faster and according to everyday use SMB shares may become very slow depending on number of files in folder.

Connect to Android TV that has Kodi installed

~/Library/Android/sdk/platform-tools/adb connect 192.168.your.tv

get file to computer so you can edit it in editor

~/Library/Android/sdk/platform-tools/adb pull /storage/emulated/0/Android/data/org.xbmc.kodi/files/.kodi/userdata/advancedsettings.xml

Edit file. It shouldn't be a lot. This is the file having only configuration for hidden files:

<?xml version="1.0" ?>
<advancedsettings version="1.0">
    <video>
        <excludefromscan>
            <regexp>@eaDir</regexp>
            <regexp>@EADIR</regexp>
        </excludefromscan>
        <excludefromlisting>
            <regexp>@eaDir</regexp>
            <regexp>@EADIR</regexp>
        </excludefromlisting>
    </video>
    <audio>
        <excludefromscan>
            <regexp>@eaDir</regexp>
            <regexp>@EADIR</regexp>
        </excludefromscan>
        <excludefromlisting>
            <regexp>@eaDir</regexp>
            <regexp>@EADIR</regexp>
        </excludefromlisting>
    </audio>
    <network>
        <nfstimeout>10</nfstimeout>
    </network>
    <pictureexcludes>
        <regexp>@eaDir</regexp>
        <regexp>@EADIR</regexp>
    </pictureexcludes>
    <loglevel hide="false" />
</advancedsettings>

Upload it back

~/Library/Android/sdk/platform-tools/adb push advancedsettings.xml /storage/emulated/0/Android/data/org.xbmc.kodi/files/.kodi/userdata/advancedsettings.xml
~/Library/Android/sdk/platform-tools/adb disconnect
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment