Home of the Squeezebox™ & Transporter® network music players.

Go Back   Squeezebox : Community : Forums > User Forums > General Discussion
User Name
Password

Reply
 
Thread Tools Search this Thread Display Modes
  #1  
Old 2009-11-06, 04:23
rodlogic rodlogic is offline
Junior Member
 
Join Date: Nov 2006
Posts: 13
rodlogic is on a distinguished road
Cool Scanner.exe command line switches

In previous version I have run a scheduled job to update ny Music Library - are the swirches the same for the 7.4.x releases as they are not easy to find.
The rescan from the control panel fails regularly (as detailed my many people - and no it isn't my Anti-Virus and yes I have excluded scanning of *.my* files)

So if anyone can point me to any documents/threads or just post the switches I would be grateful.

Rodlogic
Reply With Quote
  #2  
Old 2009-11-06, 22:58
JJZolx's Avatar
JJZolx JJZolx is offline
Senior Member
 
Join Date: Apr 2005
Location: Fort Collins, CO
Posts: 6,904
JJZolx is on a distinguished road
Default

Just run scanner.exe with no arguments to see the command line options.

Code:
Usage: scanner [debug options] [--rescan] [--wipe] [--itunes] [--musicip] <path or URL>

Command line options:

        --force        Force a scan, even if we think a scan is already taking place.
        --cleanup      Run a database cleanup job at the end of the scan
        --rescan       Look for new files since the last scan.
        --wipe         Wipe the DB and start from scratch
        --playlists    Only scan files in your playlistdir.
        --itunes       Run the iTunes Importer.
        --musicip      Run the MusicIP Importer.
        --progress     Show a progress bar of the scan.
        --json FILE    Write progress information to a JSON file.
        --prefsdir     Specify alternative preferences directory.
        --priority     set process priority from -20 (high) to 20 (low)
        --logfile      Send all debugging messages to the specified logfile.
        --logdir       Specify folder location for log file
        --logconfig    Specify pre-defined logging configuration file
        --debug        various debug options
        --quiet        keep silent

Examples:

        scanner --rescan /Users/dsully/Music

        scanner http://www.somafm.com/groovesalad.pls
Reply With Quote
  #3  
Old 2009-11-08, 06:21
rodlogic rodlogic is offline
Junior Member
 
Join Date: Nov 2006
Posts: 13
rodlogic is on a distinguished road
Smile

thanks - I had tried that under Windows XP in a command window and it just hung !
Thanks for the reply - I will now print it out !

many thanks
Reply With Quote
  #4  
Old 2009-11-26, 14:48
ITemplate ITemplate is offline
Member
 
Join Date: Sep 2009
Posts: 43
ITemplate is on a distinguished road
Default

Anyone knows what command options is used for the "Clear everything and rescan" option in the SqueezeBox Server control panel?

I have tried this:
Call "C:\Program Files\Squeezebox\server\scanner.exe" --force --wipe --quiet --rescan

But somehow this leaves me with fubar remote control (no music within artist folders). A full rescan from Control Panel solves it though...

Any suggestions on how to mimic that Control Panel option?

--
Reply With Quote
  #5  
Old 2009-11-26, 14:55
JJZolx's Avatar
JJZolx JJZolx is offline
Senior Member
 
Join Date: Apr 2005
Location: Fort Collins, CO
Posts: 6,904
JJZolx is on a distinguished road
Default

Quote:
Originally Posted by ITemplate View Post
Anyone knows what command options is used for the "Clear everything and rescan" option in the SqueezeBox Server control panel?

I have tried this:
Call "C:\Program Files\Squeezebox\server\scanner.exe" --force --wipe --quiet --rescan

But somehow this leaves me with fubar remote control (no music within artist folders). A full rescan from Control Panel solves it though...

Any suggestions on how to mimic that Control Panel option?
Use either --rescan _or_ --wipe, not both. These options correspond with the two choices in the web interface. The help documentation doesn't make that very clear.
Reply With Quote
  #6  
Old 2009-11-26, 15:20
ITemplate ITemplate is offline
Member
 
Join Date: Sep 2009
Posts: 43
ITemplate is on a distinguished road
Default

Quote:
Originally Posted by JJZolx View Post
Use either --rescan _or_ --wipe, not both. These options correspond with the two choices in the web interface. The help documentation doesn't make that very clear.
Yep that did the trick, thanks!
Reply With Quote
  #7  
Old 2009-11-28, 08:21
ITemplate ITemplate is offline
Member
 
Join Date: Sep 2009
Posts: 43
ITemplate is on a distinguished road
Default

Well not quite unfortunately. Now I have this:
Call "C:\Program Files\Squeezebox\server\scanner.exe" --force --wipe --quiet

However it still does some fubar. For example it will show 90% of all artists with empty content. Again, running a full scan from the Control Panel fixes everything. Unfortunately the scanner log from the Control Panel doesnt show the command line arguments used

Any advices?

Edit: A restart of the service seems to have corrected the problem - at least it has run 2 times without fubar. Strange, will report back if the problem re-appears..

Last edited by ITemplate; 2009-11-28 at 10:44.
Reply With Quote
  #8  
Old 2009-12-10, 09:46
ITemplate ITemplate is offline
Member
 
Join Date: Sep 2009
Posts: 43
ITemplate is on a distinguished road
Default

No it doesnt work. Anyone know what command line arguments the Control Panel uses?
Reply With Quote
  #9  
Old 2009-12-10, 10:00
mherger's Avatar
mherger mherger is offline
Babelfish's Best Boy
 
Join Date: Apr 2005
Location: Switzerland
Posts: 16,694
mherger is on a distinguished road
Default Scanner.exe command line switches

> No it doesnt work. Anyone know what command line arguments the Control
> Panel uses?


It's talking to the server, not launching the scanner directly.
Reply With Quote
  #10  
Old 2009-12-10, 10:58
ITemplate ITemplate is offline
Member
 
Join Date: Sep 2009
Posts: 43
ITemplate is on a distinguished road
Default

Quote:
Originally Posted by mherger View Post
> No it doesnt work. Anyone know what command line arguments the Control
> Panel uses?


It's talking to the server, not launching the scanner directly.
No? It creates the same log files...but it could of course explain why it doesnt work as expected. It sucks though, because afaik the scanner command is the only way to update the system from automatic - like after a cd-rip.



--
Reply With Quote
Reply

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT -7. The time now is 20:43.


Powered by vBulletin® Version 3.8.1
Copyright ©2000 - 2010, Jelsoft Enterprises Ltd.