Library cleaning, not working - a recurring theme for me in Kodi, multiple entries.

  • I have R.Pi 4 and latest LibreElec stable.

    I specifically have option set to ALWAYS clean the library after an update.

    I have a folder called //server/incoming

    I also have one called //server/media/movies/

    Now, due to complicated stupid reasons, sometimes, my software isn't importing things from /incoming/ to /movies/ - therefore, I've added incoming as a media source in Kodi.

    When my media is moved from /incoming/ to /movies/ the next scan, should pick up the movie being relocated and notice it's no longer in the old location, so remove that entry


    How can I make Kodi ALWAYS clean the library after each update?

  • AFAIK this is not possible in default Kodi as "Scan to Library" and "Clean Library" are separate functions. Best would be to fix the root issue which is files not being placed into /movies/.

  • Well, I've googled and found this.

    <videolibrary>

    <recentlyaddeditems>45</recentlyaddeditems>

    <cleanonupdate>true</cleanonupdate>

    </videolibrary>


    and I've added it to

    ~/.kodi/userdata/advancedsettings.xml

    So we'll see if this resolved the issue long term (if I manually clean, it seems to fix things, so who knows)

    P.S I appreciate the response but I VERY much disagree that this is a file issue. Kodi should be cleaning up if data is removed. It makes for a messy library.