Command line version for media scan

General discussions.

Moderator: moderators

Command line version for media scan

Postby sunayanaa » Sun Oct 07, 2012 2:43 pm

Currently "Scan media folders" can be done using UI.

Is there a command line way to do media scan ??

I would like to do the scan on demand using command line in Unix.

Thanks
sunayanaa
 
Posts: 2
Joined: Sun Oct 07, 2012 2:40 pm

Re: Command line version for media scan

Postby hakko » Sun Oct 07, 2012 3:08 pm

curl?
MusicCabinet developer
hakko
 
Posts: 1416
Joined: Tue Apr 17, 2012 7:05 pm
Location: Sweden

Re: Command line version for media scan

Postby sunayanaa » Tue Oct 09, 2012 6:11 am

The following 2 commands executed together worked for me:

wget --cookies=on --keep-session-cookies --save-cookies=/tmp/cookie.txt --user-agent=Mozilla 'http://my-domain/login.view?user=admin_user&password=admin_password'

wget --referer='http://my-domain' --cookies=on --load-cookies=/tmp/cookie.txt --keep-session-cookies --save-cookies=/tmp/cookie.txt 'http://my-domain/musicFolderSettings.view?scanNow'
sunayanaa
 
Posts: 2
Joined: Sun Oct 07, 2012 2:40 pm

Re: Command line version for media scan

Postby hakko » Tue Oct 09, 2012 6:15 am

Nice! Thanks for sharing.
MusicCabinet developer
hakko
 
Posts: 1416
Joined: Tue Apr 17, 2012 7:05 pm
Location: Sweden


Return to General

Who is online

Users browsing this forum: No registered users and 2 guests