some People want to trigger this more often as you can set in subsonic.
i write a short windows script to trigger this action.
i used a special wget version which can handle self signed certificates if you use SSL.
- Code: Select all
:::::::::::::::::::::
:: Rescan Subsonic ::
:::::::::::::::::::::
:: rescan Subsonic MediaFolders
:: edit username/password/serverlink to your need
set username=admin
set password=admin
set serverlink=http://127.0.0.1
:::::::::::::::::::::
set wgetsettings=--spider --no-check-certificate --cookies=on --keep-session-cookies --save-cookies=%temp%\cookie.txt
wget %wgetsettings% --user-agent=Mozilla "%serverlink%/login.view?user=%username%&password=%password%"
wget %wgetsettings% --load-cookies=%temp%\cookie.txt --referer="%serverlink%" "%serverlink%/musicFolderSettings.view?scanNow"
best regards