FireFly Media Server › Firefly Media Server Forums › Firefly Media Server › Add-on Software › Rescanning
- This topic has 8 replies, 5 voices, and was last updated 16 years, 7 months ago by dovad.
-
AuthorPosts
-
21/01/2008 at 9:57 PM #2157AnonymousInactive
Hi
Does anyone knoe if there is a way to force firefly to rescan the database without going through the web interface or waiting for firefly to do so itself? (perhaps that could be run as a scheduled task or as a command from another program)?
Thanks
22/01/2008 at 7:29 AM #16011fizzeParticipantYes.
In Linux and Windows it is as simple as using the “wget” program. You just have to have it access to the rescan-button of the webinterface.You can schedul that call by any means you like.
The exact syntax can be found in this very forums.22/01/2008 at 10:37 PM #16012AnonymousInactiveHmm – the problem I have with this is that the button isn’t attached to a URL, it runs the following java function…
new Ajax.Request(‘xml-rpc’,{method:’post’,parameters: ‘method=rescan’,onComplete: Updater.rsStartScan});
My attempts to convert this to a URL have lead me to variances of
http://localhost:9999/xlm-rpc&method=rescan
but none of these actually force the server to rescan.
23/01/2008 at 6:15 AM #16013rpeddeParticipant@macpanda wrote:
Hmm – the problem I have with this is that the button isn’t attached to a URL, it runs the following java function…
new Ajax.Request(‘xml-rpc’,{method:’post’,parameters: ‘method=rescan’,onComplete: Updater.rsStartScan});
My attempts to convert this to a URL have lead me to variances of
http://localhost:9999/xlm-rpc&method=rescan
but none of these actually force the server to rescan.
That should be:
http://localhost:9999/xml-rpc?method=rescan
(or, for a full rescan)
http://localhost:9999/xml-rpc?method=rescan&full=1
If you are doing it from a remote system, you may need to use username and password as well:
http://user:password@localhost:9999?xml-rpc?method=rescan
— Ron
28/03/2008 at 1:23 AM #16014dovadParticipantI’ve replaced “localhost” with the ip address as I am trying to start the scan from a remote host. Should I see the scan running on the web interface when I run the url?
Thanks…
Dave17/05/2008 at 1:20 PM #16015dovadParticipantRon,
I believe you made a small typo in the last example:
http://user:password@localhost:9999?xml-rpc?method=rescan
It should be:
http://user:password@localhost:9999/xml-rpc?method=rescan
A little thing, a question mark where a slash should be.
When I type this into the terminal on my Mac I get the error:
“No such file or directory”
It does work however from the address bar of a web browser. Is there a way to run a rescan from the terminal of a computer other than the one hosting Firefly?
Dave
17/05/2008 at 3:19 PM #16016EVILRipperParticipantYes. The same URL. Just replace “localhost” with the computer’s IP.
Which is probably:
Local: 192.168.1.xxx17/05/2008 at 3:48 PM #16017fizzeParticipant*cough*
You have to use wget with that URL 😉17/05/2008 at 6:21 PM #16018dovadParticipantAh, see all that I learn from hanging out with you guys!
OS X Leopard does not have wget installed by default. Now I’m installing MacPorts and Xcode to be able to install wget. What a story!
Thanks again…
Dave -
AuthorPosts
- The forum ‘Add-on Software’ is closed to new topics and replies.