Path issue on VideoInfoScanner

  • Does anyone know where/how i can resolve this? On boot VidoeoInfoScanner tries to process my TV Shows folder with this result:
    07:32:19 T:139935260600064 NOTICE: VideoInfoScanner: Starting scan ..
    07:32:19 T:139935260600064 WARNING: Process directory '/var/media/TOSHIBA EXT/TV Shows/' does not exist - skipping scan.

    But the folder does exist and this appears to be a problem with spaces in the folder names. From the command line interface, I can tab out the path, ie:
    LibreELEC:~ # ls /var/media/TOSHIBA\ EXT/TV\ Shows/

    and of course if tried this, it fails:
    LibreELEC:~ # ls /var/media/TOSHIBA EXT/TV Shows/
    ls: /var/media/TOSHIBA: No such file or directory
    ls: EXT/TV: No such file or directory
    ls: Shows/: No such file or directory

    Can I change the path(s) somewhere in Kodi and add the appropriate escapes?
    [hr]
    Found what works for me and that is to edit /storage/.kodi/userdata/sources.xml, adding escapes to the paths with spaces, eg changing:
    <source>
    <name>TV Shows</name>
    <path pathversion="1">/var/media/TOSHIBA EXT/TV Shows/</path>
    <allowsharing>true</allowsharing>
    </source>

    to:
    <source>
    <name>TV Shows</name>
    <path pathversion="1">/var/media/TOSHIBA\ EXT/TV\ Shows/</path>
    <allowsharing>true</allowsharing>
    </source>

    It's odd that actual TV show names containing spaces appear to be processed, so this might be a linux platform bug - don't have a Windows machine but afaik spaces in paths are never a problem on WIN platform. Also not sure whether it matters that the device being referenced (TOSHIBA\ EXT) is a USB attached external drive formatted as ntfs.

    Edited once, last by utiac (November 12, 2016 at 2:55 PM).