View Full Version : remotly update/clear the library
Hi all,
i am searching for an API or WEB Interface etc to "clear" the library (remove orphaned files).
I just found a way to call the update feature via the webinterface..
but isnt there any api or something like that to remotly call that methods via python for example ?
i manage my movie/tv files via ftp, deleting,uploading new files now and then.
i would like to write a small programm to update/clear the lib remotly.
thnx for your held in advance
rwparris2
2008-10-20, 19:48
As far as I can tell, there isn't a way to clear library via python. Someone else might know a way, but it's definitely not obvious in the docs.
You can however turn on <videolibrary><cleanonupdate> in advancedsettings.xml
matt_cyr
2008-10-20, 19:53
call the web interface via python?
ExecBuiltin can trigger update
updatelibrary(music)
updatelibrary(video)
I have no clue on how to do this in python but it should be possible? otherwise its possible via EventServer
rwparris2
2008-10-21, 01:00
Updating the library isn't the problem there is just no clear way to "clean" it remotely or through python without first adding that line I posted to advancedsettings.xml, then everytime you remotely update it, the library will clean itself of all missing files.
You can execute builtins through the httpapi or python.
jmarshall
2008-10-21, 01:14
I suggest adding a param to said function so as to clean if you want. Should be reasonably easy to modify the behaviour I should think - let me know if you want some pointers.
Cheers,
Jonathan
reason for this is ofc that somebody butchered the functionality by adding the cleanonupdate and then setting it to false(!) by default. madness. why should ppl with broken networks set the standards. grrrrrrrr
thnx all for your replies! adding the cleanupdate feature did the job for me.
i was not aware of that setting.
triggering the update via http works now for me as desired