Scan with command line

Artist radio, genre radio & related artists. A Subsonic server for music nerds.

Moderator: moderators

Scan with command line

Postby obcd » Sat Mar 09, 2013 5:48 pm

Hi,

I am trying to reproduce this: viewtopic.php?f=5&t=10414

I have tried without any success the example and I have tried to adapt the example:
wget --cookies=on --keep-session-cookies --save-cookies=/tmp/cookie.txt --user-agent=Mozilla 'http://localhost:4040/login.view?user=MYUSER&password=MYPASSWORD'
wget --referer='http://localhost:4040' --cookies=on --load-cookies=/tmp/cookie.txt --keep-session-cookies --save-cookies=/tmp/cookie.txt 'http://localhost:4040/searchSettings.view?update=full'

What am I doing wrong?
obcd
 
Posts: 40
Joined: Mon Nov 19, 2012 2:42 pm

Re: Scan with command line

Postby hakko » Sat Mar 09, 2013 6:58 pm

My post in that other thread wasn't helpful at all.. I'd use curl but I guess the syntax isn't super obvious.

Code: Select all
curl --data "j_username=XXX&j_password=YYY" http://localhost:4040/j_spring_security_check --cookie-jar /tmp/cookies.txt
curl --cookie /tmp/cookies.txt http://localhost:4040/searchSettings.view?update=full


Hope that makes up for my previous post!
MusicCabinet developer
hakko
 
Posts: 1416
Joined: Tue Apr 17, 2012 7:05 pm
Location: Sweden

Re: Scan with command line

Postby obcd » Sat Mar 09, 2013 8:12 pm

Awesome, thanks!
obcd
 
Posts: 40
Joined: Mon Nov 19, 2012 2:42 pm


Return to MusicCabinet

Who is online

Users browsing this forum: No registered users and 1 guest