Can I edit advanced settings XML with LibreElec? (redefine "<recentlyaddeditems>")

  • I'd like to increase my recently added items to about 50 instead of 25.


    I know there's a lot of stuff we can't mess with on this, my advancedsettings is only this


    <?xml version="1.0" encoding="utf-8"?>

    <advancedsettings>

    <cputempcommand>/usr/bin/cputemp</cputempcommand>

    <gputempcommand>/usr/bin/gputemp</gputempcommand>

    <showexitbutton>false</showexitbutton>

    <remotedelay>1</remotedelay>

    <samba>

    <clienttimeout>30</clienttimeout>

    </samba>

    <fanartres>720</fanartres>

    <imageres>540</imageres>

    </advancedsettings>




    and it's located in


    /usr/share/kodi/system



    What do I add, if I can edit it?


    <recentlyaddeditems>35</recentlyaddeditems>



    or

    <videolibrary>

    <recentlyaddeditems>35</recentlyaddeditems>

    </videolibrary>


    ?



    Code
    1. videolibrary


    Code
    1. <recentlyaddeditems>35</recentlyaddeditems>
  • What about the existing one, is that being parsed? Should I edit the existing one?


    (thanks for reply!)



    Also what should it say, if I do a new one?

    Exactly this?


    XML
    1. <?xml version="1.0" encoding="utf-8"?>
    2. <advancedsettings>
    3. <videolibrary>
    4. <recentlyaddeditems>35</recentlyaddeditems>
    5. </videolibrary>
    6. </advancedsettings>
  • You can't edit the default advanced settings (short of re-compiling).

    What happens (I think I've got this right) is that kodi looks first in system, then in the masterprofile, then in the profile being used (if different). So if there are 3 different settings for eg recentlyaddeditems the last one read will be used.

    Your new file looks good to me - if it doesn't seem to be working enable debug logging, restart and the log will show whether it's being read correctly.

  • Very comprehensive response, I'll also confirm and report back - thanks


    EDIT:

    You're definitely correct.


    "[ File 'advancedsettings.xml' is unwritable ]" in the stock folder, so I'll make a new one - thanks

    Oh yeah, I assume it doesn't parse them 'together' right? Like it won't combine file 1,2,3 - it'll just read one of the files?